Pyjamask block cipher.
More...
#include "internal-util.h"
Go to the source code of this file.
|
void | pyjamask_128_setup_key (pyjamask_128_key_schedule_t *ks, const unsigned char *key) |
| Sets up the key schedule for the Pyjamask-128 block cipher. More...
|
|
void | pyjamask_96_setup_key (pyjamask_96_key_schedule_t *ks, const unsigned char *key) |
| Sets up the key schedule for the Pyjamask-96 block cipher. More...
|
|
void | pyjamask_128_encrypt (const pyjamask_128_key_schedule_t *ks, unsigned char *output, const unsigned char *input) |
| Encrypts a 128-bit block with Pyjamask-128. More...
|
|
void | pyjamask_128_decrypt (const pyjamask_128_key_schedule_t *ks, unsigned char *output, const unsigned char *input) |
| Decrypts a 128-bit block with Pyjamask-128. More...
|
|
void | pyjamask_96_encrypt (const pyjamask_96_key_schedule_t *ks, unsigned char *output, const unsigned char *input) |
| Encrypts a 96-bit block with Pyjamask-96. More...
|
|
void | pyjamask_96_decrypt (const pyjamask_96_key_schedule_t *ks, unsigned char *output, const unsigned char *input) |
| Decrypts a 96-bit block with Pyjamask-96. More...
|
|
Decrypts a 128-bit block with Pyjamask-128.
- Parameters
-
ks | Points to the key schedule. |
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 decryption.
- See Also
- pyjamask_128_encrypt()
Encrypts a 128-bit block with Pyjamask-128.
- Parameters
-
ks | Points to the key schedule. |
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.
- See Also
- pyjamask_128_decrypt()
Sets up the key schedule for the Pyjamask-128 block cipher.
- Parameters
-
ks | The key schedule on output. |
key | The 16 bytes of the key on input. |
Decrypts a 96-bit block with Pyjamask-96.
- Parameters
-
ks | Points to the key schedule. |
output | Output buffer which must be at least 12 bytes in length. |
input | Input buffer which must be at least 12 bytes in length. |
The input and output buffers can be the same buffer for in-place decryption.
- See Also
- pyjamask_96_encrypt()
Encrypts a 96-bit block with Pyjamask-96.
- Parameters
-
ks | Points to the key schedule. |
output | Output buffer which must be at least 12 bytes in length. |
input | Input buffer which must be at least 12 bytes in length. |
The input and output buffers can be the same buffer for in-place encryption.
- See Also
- pyjamask_96_decrypt()
Sets up the key schedule for the Pyjamask-96 block cipher.
- Parameters
-
ks | The key schedule on output. |
key | The 16 bytes of the key on input. |