37#define CRYP_CR_ALGOMODE_MASK ((1 << 19) | CRYP_CR_ALGOMODE)
61 for (i = 0; i < 4; i++) {
79 for (i = 0; i < 4; i++) {
102 mode &= ~CRYP_CR_ALGOMODE_MASK;
154 uint32_t rd = 0, wr = 0;
157 while (rd != length) {
void crypto_set_algorithm(enum crypto_mode mode)
Set the algorithm for Encryption/decryption.
void crypto_set_iv(uint64_t iv[])
Set Initialization Vector.
void crypto_start(void)
Enable the cryptographic controller and start processing.
uint32_t crypto_process_block(uint32_t *inp, uint32_t *outp, uint32_t length)
Start of encryption or decryption on data buffers.
void crypto_set_key(enum crypto_keysize keysize, uint64_t key[])
Set key value to the controller.
void crypto_stop(void)
Disable the cryptographic controller and stop processing.
void crypto_set_datatype(enum crypto_datatype datatype)
Set the order of the data to be crypted.
void crypto_wait_busy(void)
Wait, if the Controller is busy.
#define CRYP_CR_ALGOMODE_AES_PREP
#define CRYP_CR_KEYSIZE_SHIFT
#define CRYP_CR_DATATYPE_SHIFT
#define CRYP_DOUT
CRYP Data Output Register (CRYP_DOUT)