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 Feb 12, 2024
1 parent 7ccec40 commit 1037260
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 1037260

Please sign in to comment.