Commit 81d8750b authored by Cyrille Pitchen's avatar Cyrille Pitchen Committed by Herbert Xu

crypto: atmel-sha - add support to hmac(shaX)

This patch adds support to the hmac(shaX) algorithms.
Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 69303cf0
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#define SHA_MR_ALGO_SHA384 (2 << 8) #define SHA_MR_ALGO_SHA384 (2 << 8)
#define SHA_MR_ALGO_SHA512 (3 << 8) #define SHA_MR_ALGO_SHA512 (3 << 8)
#define SHA_MR_ALGO_SHA224 (4 << 8) #define SHA_MR_ALGO_SHA224 (4 << 8)
#define SHA_MR_HMAC (1 << 11)
#define SHA_MR_DUALBUFF (1 << 16) #define SHA_MR_DUALBUFF (1 << 16)
#define SHA_IER 0x10 #define SHA_IER 0x10
...@@ -42,6 +43,9 @@ ...@@ -42,6 +43,9 @@
#define SHA_ISR_URAT_MR (0x2 << 12) #define SHA_ISR_URAT_MR (0x2 << 12)
#define SHA_ISR_URAT_WO (0x5 << 12) #define SHA_ISR_URAT_WO (0x5 << 12)
#define SHA_MSR 0x20
#define SHA_BCR 0x30
#define SHA_HW_VERSION 0xFC #define SHA_HW_VERSION 0xFC
#define SHA_TPR 0x108 #define SHA_TPR 0x108
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment