|
Lightweight Cryptography Primitives
|
CHAM block cipher. More...
Go to the source code of this file.
Functions | |
| void | cham128_128_encrypt (const unsigned char *key, unsigned char *output, const unsigned char *input) |
| Encrypts a 128-bit block with CHAM-128-128. More... | |
| void | cham64_128_encrypt (const unsigned char *key, unsigned char *output, const unsigned char *input) |
| Encrypts a 64-bit block with CHAM-64-128. More... | |
CHAM block cipher.
| void cham128_128_encrypt | ( | const unsigned char * | key, |
| unsigned char * | output, | ||
| const unsigned char * | input | ||
| ) |
Encrypts a 128-bit block with CHAM-128-128.
| key | Points to the 16 bytes of the key. |
| output | Output buffer which must be at least 16 bytes in length. |
| input | Input buffer which must be at least 16 bytes in length. |
The input and output buffers can be the same buffer for in-place encryption.
| void cham64_128_encrypt | ( | const unsigned char * | key, |
| unsigned char * | output, | ||
| const unsigned char * | input | ||
| ) |
Encrypts a 64-bit block with CHAM-64-128.
| key | Points to the 16 bytes of the key. |
| output | Output buffer which must be at least 8 bytes in length. |
| input | Input buffer which must be at least 8 bytes in length. |
The input and output buffers can be the same buffer for in-place encryption.
1.8.6