Declarations for security tool box required for ARM crypto engine.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "pal.h"
Macros | |
#define | AES_BLOCKSIZE (16) |
Size of AES blocks. More... | |
#define | AES_DIR_DECRYPT (1) |
Defines AES direction as decryption. More... | |
#define | AES_DIR_ENCRYPT (0) |
Defines AES direction as encryption. More... | |
#define | AES_KEYSIZE (16) |
Size of AES key. More... | |
Functions | |
void | sal_aes_restart (void) |
Re-inits key and state after a sleep or TRX reset. More... | |
#define AES_BLOCKSIZE (16) |
Size of AES blocks.
#define AES_DIR_DECRYPT (1) |
Defines AES direction as decryption.
#define AES_DIR_ENCRYPT (0) |
Defines AES direction as encryption.
#define AES_KEYSIZE (16) |
Size of AES key.
void sal_aes_restart | ( | void | ) |
Re-inits key and state after a sleep or TRX reset.
This function re-initializes the AES key and the state of the AES engine after TRX sleep or reset. The contents of AES register AES_CON is restored, the next AES operation started with sal_aes_exec() will be executed correctly.
References AES_BLOCKSIZE, AES_DIR_ENCRYPT, dec_key, enc_key, last_dir, mode_byte, RG_AES_CTRL, RG_AES_KEY, and trx_reg_write.
Referenced by stb_ccm_secure().