aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/eltan/security/mboot/mboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/eltan/security/mboot/mboot.c')
-rw-r--r--src/vendorcode/eltan/security/mboot/mboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/eltan/security/mboot/mboot.c b/src/vendorcode/eltan/security/mboot/mboot.c
index c5523a5fd8..4429c1f5a0 100644
--- a/src/vendorcode/eltan/security/mboot/mboot.c
+++ b/src/vendorcode/eltan/security/mboot/mboot.c
@@ -142,8 +142,8 @@ int mboot_hash_extend_log(uint64_t flags, uint8_t *hashData, uint32_t hashDataLe
/* The hash is provided as data */
memcpy(digest->digest.sha256, (void *)hashData, hashDataLen);
} else {
- if (cb_sha_little_endian(VB2_HASH_SHA256, hashData, hashDataLen,
- digest->digest.sha256))
+ if (vb2_digest_buffer(hashData, hashDataLen, VB2_HASH_SHA256, digest->digest.sha256,
+ VB2_SHA256_DIGEST_SIZE))
return TPM_E_IOERROR;
}