Skip to content

Commit

Permalink
crypto: atmel-sha - add support to hmac(shaX)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrille Pitchen authored and Herbert Xu committed Feb 3, 2017
1 parent 69303cf commit 81d8750
Show file tree
Hide file tree
Showing 2 changed files with 601 additions and 1 deletion.
4 changes: 4 additions & 0 deletions drivers/crypto/atmel-sha-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define SHA_MR_ALGO_SHA384 (2 << 8)
#define SHA_MR_ALGO_SHA512 (3 << 8)
#define SHA_MR_ALGO_SHA224 (4 << 8)
#define SHA_MR_HMAC (1 << 11)
#define SHA_MR_DUALBUFF (1 << 16)

#define SHA_IER 0x10
Expand All @@ -42,6 +43,9 @@
#define SHA_ISR_URAT_MR (0x2 << 12)
#define SHA_ISR_URAT_WO (0x5 << 12)

#define SHA_MSR 0x20
#define SHA_BCR 0x30

#define SHA_HW_VERSION 0xFC

#define SHA_TPR 0x108
Expand Down
Loading

0 comments on commit 81d8750

Please sign in to comment.