diff options
Diffstat (limited to 'board/cr50/usb_spi.c')
-rw-r--r-- | board/cr50/usb_spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/cr50/usb_spi.c b/board/cr50/usb_spi.c index 4aede92f19..32ef2b00c4 100644 --- a/board/cr50/usb_spi.c +++ b/board/cr50/usb_spi.c @@ -678,7 +678,8 @@ int usb_spi_sha256_start(struct sha256_ctx *ctx) return EC_ERROR_BUSY; } - SHA256_hw_init(ctx); + if (DCRYPTO_hw_sha256_init(ctx) != DCRYPTO_OK) + return EC_ERROR_HW_INTERNAL; return EC_SUCCESS; } |