Lightweight Cryptography Primitives
|
Internal implementation of the TinyJAMBU permutation. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | TINY_JAMBU_STATE_SIZE 4 |
Size of the TinyJAMBU state in 32-bit words. | |
#define | TINYJAMBU_ROUNDS(steps) ((steps) / 128) |
Converts a number of steps into a number of rounds, where each round consists of 128 steps. More... | |
Functions | |
void | tiny_jambu_permutation_128 (uint32_t state[TINY_JAMBU_STATE_SIZE], const uint32_t *key, unsigned rounds) |
Perform the TinyJAMBU-128 permutation. More... | |
void | tiny_jambu_permutation_192 (uint32_t state[TINY_JAMBU_STATE_SIZE], const uint32_t *key, unsigned rounds) |
Perform the TinyJAMBU-192 permutation. More... | |
void | tiny_jambu_permutation_256 (uint32_t state[TINY_JAMBU_STATE_SIZE], const uint32_t *key, unsigned rounds) |
Perform the TinyJAMBU-256 permutation. More... | |
Internal implementation of the TinyJAMBU permutation.
#define TINYJAMBU_ROUNDS | ( | steps | ) | ((steps) / 128) |
Converts a number of steps into a number of rounds, where each round consists of 128 steps.
steps | The number of steps to perform; 384, 1024, 1152, or 1280. |
void tiny_jambu_permutation_128 | ( | uint32_t | state[TINY_JAMBU_STATE_SIZE], |
const uint32_t * | key, | ||
unsigned | rounds | ||
) |
Perform the TinyJAMBU-128 permutation.
state | TinyJAMBU-128 state to be permuted. |
key | Points to the 4 key words. |
rounds | The number of rounds to perform. |
void tiny_jambu_permutation_192 | ( | uint32_t | state[TINY_JAMBU_STATE_SIZE], |
const uint32_t * | key, | ||
unsigned | rounds | ||
) |
Perform the TinyJAMBU-192 permutation.
state | TinyJAMBU-192 state to be permuted. |
key | Points to the 6 key words. |
rounds | The number of rounds to perform. |
void tiny_jambu_permutation_256 | ( | uint32_t | state[TINY_JAMBU_STATE_SIZE], |
const uint32_t * | key, | ||
unsigned | rounds | ||
) |
Perform the TinyJAMBU-256 permutation.
state | TinyJAMBU-256 state to be permuted. |
key | Points to the 8 key words. |
rounds | The number of rounds to perform. |