libosmogsm 1.11.0.26-c59d.202505152026
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 | |
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) | |
void | aes_encrypt_deinit (void *ctx) |
aes_encrypt_deinit - Deinitialize AES encryption @ctx: Context pointer from aes_encrypt_init() | |
AES (Rijndael) cipher - encrypt.
Modifications to public domain implementation:
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 len, and rijndaelEncrypt().
Referenced by aes_128_encrypt_block().
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().
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().