![]() |
ebs-cryptolib
0.2.0
Cryptography libraries repacked for convenience from AVR Crypto Lib
|
#include <stdint.h>#include "aes.h"#include "aes_keyschedule.h"#include "aes_sbox.h"#include <string.h>#include <platform/romem.h>Go to the source code of this file.
Macros | |
| #define | aes_rc_T_p ROMEM_TABLE_P(rc_tab) |
Functions | |
| void | aes_init (const void *key, uint16_t keysize_b, aes_genctx_t *ctx) |
| initialize the keyschedule More... | |
| void | aes128_init (const void *key, aes128_ctx_t *ctx) |
| initialize the keyschedule for 128 bit key More... | |
| void | aes192_init (const void *key, aes192_ctx_t *ctx) |
| initialize the keyschedule for 192 bit key More... | |
| void | aes256_init (const void *key, aes256_ctx_t *ctx) |
| initialize the keyschedule for 256 bit key More... | |
Variables | |
| const uint8_t rc_tab[] | ROMEM |
| void aes128_init | ( | const void * | key, |
| aes128_ctx_t * | ctx | ||
| ) |
initialize the keyschedule for 128 bit key
This function computes the keyschedule from a given 128 bit key and stores it in the context variable
| key | pointer to the key material |
| ctx | pointer to the context where the keyschedule should be stored |
Definition at line 88 of file aes_keyschedule.c.
References aes_init().
| void aes192_init | ( | const void * | key, |
| aes192_ctx_t * | ctx | ||
| ) |
initialize the keyschedule for 192 bit key
This function computes the keyschedule from a given 192 bit key and stores it in the context variable
| key | pointer to the key material |
| ctx | pointer to the context where the keyschedule should be stored |
Definition at line 93 of file aes_keyschedule.c.
References aes_init().
| void aes256_init | ( | const void * | key, |
| aes256_ctx_t * | ctx | ||
| ) |
initialize the keyschedule for 256 bit key
This function computes the keyschedule from a given 256 bit key and stores it in the context variable
| key | pointer to the key material |
| ctx | pointer to the context where the keyschedule should be stored |
Definition at line 98 of file aes_keyschedule.c.
References aes_init().
| void aes_init | ( | const void * | key, |
| uint16_t | keysize_b, | ||
| aes_genctx_t * | ctx | ||
| ) |
initialize the keyschedule
This function computes the keyschedule from a given key with a given length and stores it in the context variable
| key | pointer to the key material |
| keysize_b | length of the key in bits (valid are 128, 192 and 256) |
| ctx | pointer to the context where the keyschedule should be stored |
Definition at line 52 of file aes_keyschedule.c.
Referenced by aes128_init(), aes192_init(), and aes256_init().
| const uint8_t rc_tab [] ROMEM |
Definition at line 48 of file aes_keyschedule.c.