Go to the documentation of this file.
31 #ifndef _SAMV71_CRYPTO_HASH_H
32 #define _SAMV71_CRYPTO_HASH_H
38 #ifndef SAMV71_CRYPTO_HASH_SUPPORT
39 #define SAMV71_CRYPTO_HASH_SUPPORT DISABLED
40 #elif (SAMV71_CRYPTO_HASH_SUPPORT != ENABLED && SAMV71_CRYPTO_HASH_SUPPORT != DISABLED)
41 #error SAMV71_CRYPTO_HASH_SUPPORT parameter is not valid
45 #ifndef SAMV71_ICM_BUFFER_SIZE
46 #define SAMV71_ICM_BUFFER_SIZE 1024
47 #elif (SAMV71_ICM_BUFFER_SIZE < 64)
48 #error SAMV71_ICM_BUFFER_SIZE parameter is not valid
52 #ifndef SAMV71_ICM_RAM_SECTION
53 #define SAMV71_ICM_RAM_SECTION ".ram_no_cache"
57 #define ICM_ALGO_SHA1 0
58 #define ICM_ALGO_SHA256 1
59 #define ICM_ALGO_SHA224 4
62 #define ICM_RCFG_MRPROT 0x3F000000
63 #define ICM_RCFG_ALGO 0x00007000
64 #define ICM_RCFG_ALGO_SHA1 0x00000000
65 #define ICM_RCFG_ALGO_SHA256 0x00001000
66 #define ICM_RCFG_ALGO_SHA224 0x00004000
67 #define ICM_RCFG_PROCDLY 0x00000400
68 #define ICM_RCFG_SUIEN 0x00000200
69 #define ICM_RCFG_ECIEN 0x00000100
70 #define ICM_RCFG_WCIEN 0x00000080
71 #define ICM_RCFG_BEIEN 0x00000040
72 #define ICM_RCFG_DMIEN 0x00000020
73 #define ICM_RCFG_RHIEN 0x00000010
74 #define ICM_RCFG_EOM 0x00000004
75 #define ICM_RCFG_WRAP 0x00000002
76 #define ICM_RCFG_CDWBN 0x00000001
uint32_t rnext
ICM region next address.
uint32_t rctrl
ICM region control.
uint32_t raddr
ICM region start address.
uint32_t rcfg
ICM region configuration.
General definitions for cryptographic algorithms.