summaryrefslogtreecommitdiff
path: root/board/cr50/tpm2/rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cr50/tpm2/rsa.c')
-rw-r--r--board/cr50/tpm2/rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cr50/tpm2/rsa.c b/board/cr50/tpm2/rsa.c
index caed71e57a..367272d93c 100644
--- a/board/cr50/tpm2/rsa.c
+++ b/board/cr50/tpm2/rsa.c
@@ -399,7 +399,7 @@ CRYPT_RESULT _cpri__GenerateKeyRSA(
if (DCRYPTO_hw_hmac_sha256_init(&hmac, seed->buffer,
seed->size) != DCRYPTO_OK)
- return CRYPT_FAIL;
+ return CRYPT_NO_RESULT;
HMAC_SHA256_update(&hmac, "RSA", 4);
memcpy(local_seed.t.buffer, HMAC_SHA256_final(&hmac),
local_seed.t.size);