Declarations for security tool box required for ARM crypto engine.
Copyright (c) 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.
Referenced by compute_mic(), encrypt_pldmic(), encrypt_with_padding(), sal_aes_read(), sal_aes_restart(), sal_aes_setup(), sal_aes_wrrd(), and stb_ccm_secure().
#define AES_DIR_DECRYPT (1) |
Defines AES direction as decryption.
Referenced by PHY_DecryptReq(), and sal_aes_setup().
#define AES_DIR_ENCRYPT (0) |
Defines AES direction as encryption.
Referenced by compute_mic(), encrypt_pldmic(), PHY_EncryptReq(), PHY_EncryptReqCBC(), sal_aes_restart(), sal_aes_setup(), and stb_ccm_secure().
#define AES_KEYSIZE (16) |
Size of AES key.
Referenced by sal_aes_restart(), sal_aes_setup(), and stb_ccm_secure().
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 registers AES_CON and AES_CON_MIRROR are restored, the next AES operation started with sal_aes_wrrd() will be executed correctly. However, the contents of SRAM buffers is destroyed, in general. When using sal_aes_wrrd(), call sal_aes_read() to get the result of the last AES operation BEFORE you put the transceiver unit to sleep state!