diff options
Diffstat (limited to 'chip/host/dcrypto/app_cipher.c')
-rw-r--r-- | chip/host/dcrypto/app_cipher.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chip/host/dcrypto/app_cipher.c b/chip/host/dcrypto/app_cipher.c index a3ce4e3184..6ce25b6199 100644 --- a/chip/host/dcrypto/app_cipher.c +++ b/chip/host/dcrypto/app_cipher.c @@ -15,7 +15,7 @@ void app_compute_hash(const void *p_buf, size_t num_bytes, void *p_hash, * Use the built in dcrypto engine to generate the sha1 hash of the * buffer. */ - SHA256_hw_hash(p_buf, num_bytes, &digest); + DCRYPTO_SHA256_hash(p_buf, num_bytes, digest.b8); memcpy(p_hash, digest.b8, MIN(hash_len, sizeof(digest))); @@ -46,3 +46,8 @@ int crypto_enabled(void) { return 1; } + +bool fips_crypto_allowed(void) +{ + return true; +} |