From a9da0d8e6e09f8b7540aa611218ad59cc17e4b04 Mon Sep 17 00:00:00 2001 From: Ricardo Casallas <77841255+rcasallas-silabs@users.noreply.github.com> Date: Wed, 6 Jul 2022 13:48:40 -0400 Subject: [PATCH] EFR32 Device Attestation Credentials provider bugfix. (#20371) --- examples/platform/efr32/EFR32DeviceAttestationCreds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platform/efr32/EFR32DeviceAttestationCreds.cpp b/examples/platform/efr32/EFR32DeviceAttestationCreds.cpp index 8093671b37341f..4f7453b79451ef 100644 --- a/examples/platform/efr32/EFR32DeviceAttestationCreds.cpp +++ b/examples/platform/efr32/EFR32DeviceAttestationCreds.cpp @@ -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);