31#ifndef LIBOPENCM3_CRYPTO_H
32#define LIBOPENCM3_CRYPTO_H
48#define CRYP_CSGCMCCMR(i) MMIO32(CRYP_BASE + 0x50 + (i) * 4)
51#define CRYP_CSGCMR(i) MMIO32(CRYP_BASE + 0x70 + (i) * 4)
58#define CRYP_CR_GCM_CMPH_SHIFT 16
59#define CRYP_CR_GCM_CMPH (3 << CRYP_CR_GCM_CMPH_SHIFT)
60#define CRYP_CR_GCM_CMPH_INIT (0 << CRYP_CR_GCM_CMPH_SHIFT)
61#define CRYP_CR_GCM_CMPH_HEADER (1 << CRYP_CR_GCM_CMPH_SHIFT)
62#define CRYP_CR_GCM_CMPH_PAYLOAD (2 << CRYP_CR_GCM_CMPH_SHIFT)
63#define CRYP_CR_GCM_CMPH_FINAL (3 << CRYP_CR_GCM_CMPH_SHIFT)
66#define CRYP_CR_ALGOMODE3 (1 << 19)
void crypto_context_swap(uint32_t *buf)
Swap context.
void crypto_set_mac_algorithm(enum crypto_mode_mac mode)
Set the MAC algorithm.
#define CRYP_CR_ALGOMODE3
#define CRYP_CR_ALGOMODE_TDES_CBC
#define CRYP_CR_ALGOMODE_TDES_ECB