Skip to content

Commit

Permalink
EFR32 Device Attestation Credentials provider bugfix. (#20371)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasallas-silabs authored and pull[bot] committed Jul 13, 2023
1 parent 851d5ac commit 4497042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/platform/efr32/EFR32DeviceAttestationCreds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class DeviceAttestationCredsEFR32 : public DeviceAttestationCredentialsProvider
uint8_t signature[64] = { 0 };
size_t signature_size = sizeof(signature);

psa_status_t err = psa_sign_hash(key_id, PSA_ALG_ECDSA(PSA_ALG_SHA_256), digest_to_sign.data(), digest_to_sign.size(),
signature, signature_size, &signature_size);
psa_status_t err = psa_sign_message(key_id, PSA_ALG_ECDSA(PSA_ALG_SHA_256), digest_to_sign.data(), digest_to_sign.size(),
signature, signature_size, &signature_size);
VerifyOrReturnError(!err, CHIP_ERROR_INTERNAL);

return CopySpanToMutableSpan(ByteSpan(signature, signature_size), out_buffer);
Expand Down

0 comments on commit 4497042

Please sign in to comment.