Skip to content

Commit 81d8750

Browse files
Cyrille Pitchenherbertx
authored andcommitted
crypto: atmel-sha - add support to hmac(shaX)
This patch adds support to the hmac(shaX) algorithms. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 69303cf commit 81d8750

File tree

2 files changed

+601
-1
lines changed

2 files changed

+601
-1
lines changed

drivers/crypto/atmel-sha-regs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define SHA_MR_ALGO_SHA384 (2 << 8)
2727
#define SHA_MR_ALGO_SHA512 (3 << 8)
2828
#define SHA_MR_ALGO_SHA224 (4 << 8)
29+
#define SHA_MR_HMAC (1 << 11)
2930
#define SHA_MR_DUALBUFF (1 << 16)
3031

3132
#define SHA_IER 0x10
@@ -42,6 +43,9 @@
4243
#define SHA_ISR_URAT_MR (0x2 << 12)
4344
#define SHA_ISR_URAT_WO (0x5 << 12)
4445

46+
#define SHA_MSR 0x20
47+
#define SHA_BCR 0x30
48+
4549
#define SHA_HW_VERSION 0xFC
4650

4751
#define SHA_TPR 0x108

0 commit comments

Comments
 (0)