MPHELL
5.0.0
|
Declaration of aes 256 functions using AES NI instructions. More...
#include <string.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | aes_256_ni_key_expansion (const uint8_t *key, __m128i *key_schedule) |
Calculate the round keys from a user key. More... | |
void | aes256_enc (__m128i *key_schedule, const uint8_t *plaintext, uint8_t *ciphertext) |
256 bits AES cipher using AES NI instructions More... | |
void | aes_256_ni_cipher (uint8_t *encrypted_data, const uint8_t *key, const uint8_t *data_in) |
256 bits AES cipher using AES NI instructions More... | |
Declaration of aes 256 functions using AES NI instructions.
Definition in file mphell-aes-ni-256.h.
void aes256_enc | ( | __m128i * | key_schedule, |
const uint8_t * | plaintext, | ||
uint8_t * | ciphertext | ||
) |
256 bits AES cipher using AES NI instructions
key_schedule | Round keys for AES256, use aes_256_ni_key_expansion to get it. |
plaintext | Source plaintext 128 bits |
ciphertext | Destination ciphertext |
void aes_256_ni_cipher | ( | uint8_t * | encrypted_data, |
const uint8_t * | key, | ||
const uint8_t * | data_in | ||
) |
256 bits AES cipher using AES NI instructions
encrypted_data | Resulting data (cipher text) |
key | Cipher key 256 bits |
data_in | Source plaintext 128 bits |
void aes_256_ni_key_expansion | ( | const uint8_t * | key, |
__m128i * | key_schedule | ||
) |
Calculate the round keys from a user key.
key | Source user key |
key_schedule | Destination round keys for AES256 |