diff options
Diffstat (limited to 'board/cr50/tpm2/rsa.c')
-rw-r--r-- | board/cr50/tpm2/rsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/cr50/tpm2/rsa.c b/board/cr50/tpm2/rsa.c index 70e14fba97..9d15d66823 100644 --- a/board/cr50/tpm2/rsa.c +++ b/board/cr50/tpm2/rsa.c @@ -396,11 +396,11 @@ CRYPT_RESULT _cpri__GenerateKeyRSA( } else #endif { - LITE_HMAC_CTX hmac; + struct hmac_sha256_ctx hmac; - DCRYPTO_HMAC_SHA256_init(&hmac, seed->buffer, seed->size); - HASH_update(&hmac.hash, "RSA", 4); - memcpy(local_seed.t.buffer, DCRYPTO_HMAC_final(&hmac), + HMAC_SHA256_hw_init(&hmac, seed->buffer, seed->size); + HMAC_SHA256_update(&hmac, "RSA", 4); + memcpy(local_seed.t.buffer, HMAC_SHA256_hw_final(&hmac), local_seed.t.size); } |