Microchip® Advanced Software Framework

stb_armcrypto.h File Reference

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 chip 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 chip reset.

Re-inits key and state after a sleep or TRX reset.

This function is void for ATxmega since the key must be re-initialized before every block encryption anyway.

Referenced by stb_ccm_secure().