| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros | Enumerations
CRYPTO Exported Constants
Standard Driver » CRYPTO Driver

## Macros
#define | PRNG_KEY_SIZE_64
#define | PRNG_KEY_SIZE_128
#define | PRNG_KEY_SIZE_192
#define | PRNG_KEY_SIZE_256
#define | PRNG_SEED_CONT
#define | PRNG_SEED_RELOAD
#define | AES_KEY_SIZE_128
#define | AES_KEY_SIZE_192
#define | AES_KEY_SIZE_256
#define | AES_MODE_ECB
#define | AES_MODE_CBC
#define | AES_MODE_CFB
#define | AES_MODE_OFB
#define | AES_MODE_CTR
#define | AES_MODE_CBC_CS1
#define | AES_MODE_CBC_CS2
#define | AES_MODE_CBC_CS3
#define | AES_NO_SWAP
#define | AES_OUT_SWAP
#define | AES_IN_SWAP
#define | AES_IN_OUT_SWAP
#define | DES_MODE_ECB
#define | DES_MODE_CBC
#define | DES_MODE_CFB
#define | DES_MODE_OFB
#define | DES_MODE_CTR
#define | TDES_MODE_ECB
#define | TDES_MODE_CBC
#define | TDES_MODE_CFB
#define | TDES_MODE_OFB
#define | TDES_MODE_CTR
#define | TDES_NO_SWAP
#define | TDES_WHL_SWAP
#define | TDES_OUT_SWAP
#define | TDES_OUT_WHL_SWAP
#define | TDES_IN_SWAP
#define | TDES_IN_WHL_SWAP
#define | TDES_IN_OUT_SWAP
#define | TDES_IN_OUT_WHL_SWAP
#define | SHA_MODE_SHA1
#define | SHA_MODE_SHA224
#define | SHA_MODE_SHA256
#define | SHA_MODE_SHA384
#define | SHA_MODE_SHA512
#define | SHA_NO_SWAP
#define | SHA_OUT_SWAP
#define | SHA_IN_SWAP
#define | SHA_IN_OUT_SWAP
#define | CRYPTO_DMA_FIRST
#define | CRYPTO_DMA_ONE_SHOT
#define | CRYPTO_DMA_CONTINUE
#define | CRYPTO_DMA_LAST

## Enumerations
enum | E_ECC_CURVE { CURVE_P_192, CURVE_P_224, CURVE_P_256, CURVE_P_384, CURVE_P_521, CURVE_K_163, CURVE_K_233, CURVE_K_283, CURVE_K_409, CURVE_K_571, CURVE_B_163, CURVE_B_233, CURVE_B_283, CURVE_B_409, CURVE_B_571, CURVE_KO_192, CURVE_KO_224, CURVE_KO_256, CURVE_BP_256, CURVE_BP_384, CURVE_BP_512, CURVE_UNDEF }

## Detailed Description

## Macro Definition Documentation

## ◆ AES_IN_OUT_SWAP

#define AES_IN_OUT_SWAP

AES swap both input and output data

Definition at line 54 of file crypto.h.

## ◆ AES_IN_SWAP

#define AES_IN_SWAP

AES swap input data

Definition at line 53 of file crypto.h.

## ◆ AES_KEY_SIZE_128

#define AES_KEY_SIZE_128

AES select 128-bit key length

Definition at line 38 of file crypto.h.

## ◆ AES_KEY_SIZE_192

#define AES_KEY_SIZE_192

AES select 192-bit key length

Definition at line 39 of file crypto.h.

## ◆ AES_KEY_SIZE_256

#define AES_KEY_SIZE_256

AES select 256-bit key length

Definition at line 40 of file crypto.h.

## ◆ AES_MODE_CBC

#define AES_MODE_CBC

AES select CBC mode

Definition at line 43 of file crypto.h.

## ◆ AES_MODE_CBC_CS1

#define AES_MODE_CBC_CS1

AES select CBC CS1 mode

Definition at line 47 of file crypto.h.

## ◆ AES_MODE_CBC_CS2

#define AES_MODE_CBC_CS2

AES select CBC CS2 mode

Definition at line 48 of file crypto.h.

## ◆ AES_MODE_CBC_CS3

#define AES_MODE_CBC_CS3

AES select CBC CS3 mode

Definition at line 49 of file crypto.h.

## ◆ AES_MODE_CFB

#define AES_MODE_CFB

AES select CFB mode

Definition at line 44 of file crypto.h.

## ◆ AES_MODE_CTR

#define AES_MODE_CTR

AES select CTR mode

Definition at line 46 of file crypto.h.

## ◆ AES_MODE_ECB

#define AES_MODE_ECB

AES select ECB mode

Definition at line 42 of file crypto.h.

## ◆ AES_MODE_OFB

#define AES_MODE_OFB

AES select OFB mode

Definition at line 45 of file crypto.h.

## ◆ AES_NO_SWAP

#define AES_NO_SWAP

AES do not swap input and output data

Definition at line 51 of file crypto.h.

## ◆ AES_OUT_SWAP

#define AES_OUT_SWAP

AES swap output data

Definition at line 52 of file crypto.h.

## ◆ CRYPTO_DMA_CONTINUE

#define CRYPTO_DMA_CONTINUE

Do continuous encrypt/decrypt in DMA cascade

Definition at line 89 of file crypto.h.

## ◆ CRYPTO_DMA_FIRST

#define CRYPTO_DMA_FIRST

Do first encrypt/decrypt in DMA cascade

Definition at line 87 of file crypto.h.

## ◆ CRYPTO_DMA_LAST

#define CRYPTO_DMA_LAST

Do last encrypt/decrypt in DMA cascade

Definition at line 90 of file crypto.h.

## ◆ CRYPTO_DMA_ONE_SHOT

#define CRYPTO_DMA_ONE_SHOT

Do one shot encrypt/decrypt with DMA

Definition at line 88 of file crypto.h.

## ◆ DES_MODE_CBC

#define DES_MODE_CBC

DES select CBC mode

Definition at line 57 of file crypto.h.

## ◆ DES_MODE_CFB

#define DES_MODE_CFB

DES select CFB mode

Definition at line 58 of file crypto.h.

## ◆ DES_MODE_CTR

#define DES_MODE_CTR

DES select CTR mode

Definition at line 60 of file crypto.h.

## ◆ DES_MODE_ECB

#define DES_MODE_ECB

DES select ECB mode

Definition at line 56 of file crypto.h.

## ◆ DES_MODE_OFB

#define DES_MODE_OFB

DES select OFB mode

Definition at line 59 of file crypto.h.

## ◆ PRNG_KEY_SIZE_128

#define PRNG_KEY_SIZE_128

Select to generate 128-bit random key

Definition at line 31 of file crypto.h.

## ◆ PRNG_KEY_SIZE_192

#define PRNG_KEY_SIZE_192

Select to generate 192-bit random key

Definition at line 32 of file crypto.h.

## ◆ PRNG_KEY_SIZE_256

#define PRNG_KEY_SIZE_256

Select to generate 256-bit random key

Definition at line 33 of file crypto.h.

## ◆ PRNG_KEY_SIZE_64

#define PRNG_KEY_SIZE_64

Select to generate 64-bit random key

Definition at line 30 of file crypto.h.

## ◆ PRNG_SEED_CONT

#define PRNG_SEED_CONT

PRNG using current seed

Definition at line 35 of file crypto.h.

## ◆ PRNG_SEED_RELOAD

#define PRNG_SEED_RELOAD

PRNG reload new seed

Definition at line 36 of file crypto.h.

## ◆ SHA_IN_OUT_SWAP

#define SHA_IN_OUT_SWAP

SHA swap both input and output data

Definition at line 85 of file crypto.h.

## ◆ SHA_IN_SWAP

#define SHA_IN_SWAP

SHA swap input data

Definition at line 84 of file crypto.h.

## ◆ SHA_MODE_SHA1

#define SHA_MODE_SHA1

SHA select SHA-1 160-bit

Definition at line 76 of file crypto.h.

## ◆ SHA_MODE_SHA224

#define SHA_MODE_SHA224

SHA select SHA-224 224-bit

Definition at line 77 of file crypto.h.

## ◆ SHA_MODE_SHA256

#define SHA_MODE_SHA256

SHA select SHA-256 256-bit

Definition at line 78 of file crypto.h.

## ◆ SHA_MODE_SHA384

#define SHA_MODE_SHA384

SHA select SHA-384 384-bit

Definition at line 79 of file crypto.h.

## ◆ SHA_MODE_SHA512

#define SHA_MODE_SHA512

SHA select SHA-512 512-bit

Definition at line 80 of file crypto.h.

## ◆ SHA_NO_SWAP

#define SHA_NO_SWAP

SHA do not swap input and output data

Definition at line 82 of file crypto.h.

## ◆ SHA_OUT_SWAP

#define SHA_OUT_SWAP

SHA swap output data

Definition at line 83 of file crypto.h.

## ◆ TDES_IN_OUT_SWAP

#define TDES_IN_OUT_SWAP

TDES swap both input and output data

Definition at line 73 of file crypto.h.

## ◆ TDES_IN_OUT_WHL_SWAP

#define TDES_IN_OUT_WHL_SWAP

TDES swap input, output and high-low word

Definition at line 74 of file crypto.h.

## ◆ TDES_IN_SWAP

#define TDES_IN_SWAP

TDES swap input data

Definition at line 71 of file crypto.h.

## ◆ TDES_IN_WHL_SWAP

#define TDES_IN_WHL_SWAP

TDES swap input data and high-low word

Definition at line 72 of file crypto.h.

## ◆ TDES_MODE_CBC

#define TDES_MODE_CBC

TDES select CBC mode

Definition at line 62 of file crypto.h.

## ◆ TDES_MODE_CFB

#define TDES_MODE_CFB

TDES select CFB mode

Definition at line 63 of file crypto.h.

## ◆ TDES_MODE_CTR

#define TDES_MODE_CTR

TDES select CTR mode

Definition at line 65 of file crypto.h.

## ◆ TDES_MODE_ECB

#define TDES_MODE_ECB

TDES select ECB mode

Definition at line 61 of file crypto.h.

## ◆ TDES_MODE_OFB

#define TDES_MODE_OFB

TDES select OFB mode

Definition at line 64 of file crypto.h.

## ◆ TDES_NO_SWAP

#define TDES_NO_SWAP

TDES do not swap data

Definition at line 67 of file crypto.h.

## ◆ TDES_OUT_SWAP

#define TDES_OUT_SWAP

TDES swap output data

Definition at line 69 of file crypto.h.

## ◆ TDES_OUT_WHL_SWAP

#define TDES_OUT_WHL_SWAP

TDES swap output data and high-low word

Definition at line 70 of file crypto.h.

## ◆ TDES_WHL_SWAP

#define TDES_WHL_SWAP

TDES swap high-low word

Definition at line 68 of file crypto.h.

## Enumeration Type Documentation

## ◆ E_ECC_CURVE

enum E_ECC_CURVE

Enumerator
CURVE_P_192 | ECC curveECC curve P-192
CURVE_P_224 | ECC curve P-224
CURVE_P_256 | ECC curve P-256
CURVE_P_384 | ECC curve P-384
CURVE_P_521 | ECC curve P-521
CURVE_K_163 | ECC curve K-163
CURVE_K_233 | ECC curve K-233
CURVE_K_283 | ECC curve K-283
CURVE_K_409 | ECC curve K-409
CURVE_K_571 | ECC curve K-571
CURVE_B_163 | ECC curve B-163
CURVE_B_233 | ECC curve B-233
CURVE_B_283 | ECC curve B-283
CURVE_B_409 | ECC curve B-409
CURVE_B_571 | ECC curve K-571
CURVE_KO_192 | ECC 192-bits "Koblitz" curve
CURVE_KO_224 | ECC 224-bits "Koblitz" curve
CURVE_KO_256 | ECC 256-bits "Koblitz" curve
CURVE_BP_256 | ECC Brainpool 256-bits curve
CURVE_BP_384 | ECC Brainpool 256-bits curve
CURVE_BP_512 | ECC Brainpool 256-bits curve
CURVE_UNDEF | Invalid curve

Definition at line 92 of file crypto.h.