|
libosmogsm 1.11.0.52-28973f
Osmocom GSM library
|
AES (Rijndael) cipher - encrypt. More...
Macros | |
| #define | ROUND(i, d, s) |
Functions | |
| static void | rijndaelEncrypt (const u32 rk[], const u8 pt[16], u8 ct[16]) |
| void * | aes_encrypt_init (const u8 *key, size_t len) |
| aes_encrypt_init - Initialize AES for encryption @key: Encryption key @len: Key length in bytes (usually 16, i.e., 128 bits) Returns: Pointer to context data or NULL on failure More... | |
| void | aes_encrypt (void *ctx, const u8 *plain, u8 *crypt) |
| aes_encrypt - Encrypt one AES block @ctx: Context pointer from aes_encrypt_init() @plain: Plaintext data to be encrypted (16 bytes) @crypt: Buffer for the encrypted data (16 bytes) More... | |
| void | aes_encrypt_deinit (void *ctx) |
| aes_encrypt_deinit - Deinitialize AES encryption @ctx: Context pointer from aes_encrypt_init() More... | |
AES (Rijndael) cipher - encrypt.
Modifications to public domain implementation:
| #define ROUND | ( | i, | |
| d, | |||
| s | |||
| ) |
aes_encrypt - Encrypt one AES block @ctx: Context pointer from aes_encrypt_init() @plain: Plaintext data to be encrypted (16 bytes) @crypt: Buffer for the encrypted data (16 bytes)
References rijndaelEncrypt().
Referenced by aes_128_encrypt_block().
| void aes_encrypt_deinit | ( | void * | ctx | ) |
aes_encrypt_deinit - Deinitialize AES encryption @ctx: Context pointer from aes_encrypt_init()
References AES_PRIV_SIZE, os_free, and os_memset.
Referenced by aes_128_encrypt_block().
| void * aes_encrypt_init | ( | const u8 * | key, |
| size_t | len | ||
| ) |
aes_encrypt_init - Initialize AES for encryption @key: Encryption key @len: Key length in bytes (usually 16, i.e., 128 bits) Returns: Pointer to context data or NULL on failure
References AES_PRIV_SIZE, len, os_malloc, and rijndaelKeySetupEnc().
Referenced by aes_128_encrypt_block().