Lightweight Cryptography Primitives
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
internal-tinyjambu.h File Reference

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...
 

Detailed Description

Internal implementation of the TinyJAMBU permutation.

Macro Definition Documentation

#define TINYJAMBU_ROUNDS (   steps)    ((steps) / 128)

Converts a number of steps into a number of rounds, where each round consists of 128 steps.

Parameters
stepsThe number of steps to perform; 384, 1024, 1152, or 1280.
Returns
The number of rounds corresponding to steps.

Function Documentation

void tiny_jambu_permutation_128 ( uint32_t  state[TINY_JAMBU_STATE_SIZE],
const uint32_t *  key,
unsigned  rounds 
)

Perform the TinyJAMBU-128 permutation.

Parameters
stateTinyJAMBU-128 state to be permuted.
keyPoints to the 4 key words.
roundsThe 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.

Parameters
stateTinyJAMBU-192 state to be permuted.
keyPoints to the 6 key words.
roundsThe 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.

Parameters
stateTinyJAMBU-256 state to be permuted.
keyPoints to the 8 key words.
roundsThe number of rounds to perform.