|
MAGMA
Cryptographic Library
|
#include "modes/ecb.h"
Functions | |
| MagmaResult | magma_encrypt_ecb (const unsigned char keys[ITER_KEYS_COUNT][ITER_KEY_LEN], const unsigned char *input, unsigned char *output, const size_t length) |
| Encrypts data using the ECB (Electronic Codebook) mode of operation. | |
| MagmaResult | magma_decrypt_ecb (const unsigned char keys[ITER_KEYS_COUNT][ITER_KEY_LEN], const unsigned char *input, unsigned char *output, const size_t length) |
| Decrypts data using the ECB (Electronic Codebook) mode of operation. | |
| MagmaResult magma_decrypt_ecb | ( | const unsigned char | keys[ITER_KEYS_COUNT][ITER_KEY_LEN], |
| const unsigned char * | input, | ||
| unsigned char * | output, | ||
| const size_t | length ) |
Decrypts data using the ECB (Electronic Codebook) mode of operation.
| keys | Expanded iteration keys. |
| input | Pointer to the input data. |
| output | Pointer to the output data. |
| length | Length of the input data in bytes. Must be a multiple of MAGMA_BLOCK_SIZE. |
| MagmaResult magma_encrypt_ecb | ( | const unsigned char | keys[ITER_KEYS_COUNT][ITER_KEY_LEN], |
| const unsigned char * | input, | ||
| unsigned char * | output, | ||
| const size_t | length ) |
Encrypts data using the ECB (Electronic Codebook) mode of operation.
| keys | Expanded iteration keys. |
| input | Pointer to the input data. |
| output | Pointer to the output data. |
| length | Length of the input data in bytes. Must be a multiple of MAGMA_BLOCK_SIZE. |