Go to the documentation of this file.
31 #ifndef _APM32F4XX_CRYPTO_CIPHER_H
32 #define _APM32F4XX_CRYPTO_CIPHER_H
38 #ifndef APM32F4XX_CRYPTO_CIPHER_SUPPORT
39 #define APM32F4XX_CRYPTO_CIPHER_SUPPORT DISABLED
40 #elif (APM32F4XX_CRYPTO_CIPHER_SUPPORT != ENABLED && APM32F4XX_CRYPTO_CIPHER_SUPPORT != DISABLED)
41 #error APM32F4XX_CRYPTO_CIPHER_SUPPORT parameter is not valid
45 #define CRYP_CTRL_CRYPEN 0x00008000
46 #define CRYP_CTRL_FFLUSH 0x00004000
47 #define CRYP_CTRL_KSIZESEL 0x00000300
48 #define CRYP_CTRL_KSIZESEL_128B 0x00000000
49 #define CRYP_CTRL_KSIZESEL_192B 0x00000100
50 #define CRYP_CTRL_KSIZESEL_256B 0x00000200
51 #define CRYP_CTRL_DTSEL 0x000000C0
52 #define CRYP_CTRL_DTSEL_32B 0x00000000
53 #define CRYP_CTRL_DTSEL_16B 0x00000040
54 #define CRYP_CTRL_DTSEL_8B 0x00000080
55 #define CRYP_CTRL_DTSEL_1B 0x000000C0
56 #define CRYP_CTRL_ALGOMSEL 0x00000038
57 #define CRYP_CTRL_ALGOMSEL_TDES_ECB 0x00000000
58 #define CRYP_CTRL_ALGOMSEL_TDES_CBC 0x00000008
59 #define CRYP_CTRL_ALGOMSEL_DES_ECB 0x00000010
60 #define CRYP_CTRL_ALGOMSEL_DES_CBC 0x00000018
61 #define CRYP_CTRL_ALGOMSEL_AES_ECB 0x00000020
62 #define CRYP_CTRL_ALGOMSEL_AES_CBC 0x00000028
63 #define CRYP_CTRL_ALGOMSEL_AES_CTR 0x00000030
64 #define CRYP_CTRL_ALGOMSEL_AES_KEY 0x00000038
65 #define CRYP_CTRL_ALGODIRSEL 0x00000004
68 #define CRYP_STS_BUSY 0x00000010
69 #define CRYP_STS_OFFULL 0x00000008
70 #define CRYP_STS_OFEMPT 0x00000004
71 #define CRYP_STS_IFFULL 0x00000002
72 #define CRYP_STS_IFEMPT 0x00000001
error_t crypInit(void)
CRYP module initialization.
General definitions for cryptographic algorithms.