|
MAGMA
Cryptographic Library
|
#include "modes/ctr.h"
Functions | |
| MagmaResult | magma_encrypt_ctr (const unsigned char keys[ITER_KEYS_COUNT][ITER_KEY_LEN], const unsigned char iv[CTR_IV_LENGTH], const unsigned char *input, unsigned char *output, const size_t length) |
| MagmaResult | magma_decrypt_ctr (const unsigned char keys[ITER_KEYS_COUNT][ITER_KEY_LEN], const unsigned char iv[CTR_IV_LENGTH], const unsigned char *input, unsigned char *output, const size_t length) |
| MagmaResult magma_decrypt_ctr | ( | const unsigned char | keys[ITER_KEYS_COUNT][ITER_KEY_LEN], |
| const unsigned char | iv[CTR_IV_LENGTH], | ||
| const unsigned char * | input, | ||
| unsigned char * | output, | ||
| const size_t | length ) |
| keys | Expanded iteration keys. |
| iv | Pointer to the IV (initialization vector). |
| input | Pointer to the input data. |
| output | Pointer to the output data. |
| length | Length of the input data in bytes. |
| MagmaResult magma_encrypt_ctr | ( | const unsigned char | keys[ITER_KEYS_COUNT][ITER_KEY_LEN], |
| const unsigned char | iv[CTR_IV_LENGTH], | ||
| const unsigned char * | input, | ||
| unsigned char * | output, | ||
| const size_t | length ) |
| keys | Expanded iteration keys. |
| iv | Pointer to the IV (initialization vector). |
| input | Pointer to the input data. |
| output | Pointer to the output data. |
| length | Length of the input data in bytes. |