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

Masked version of the GIMLI-24 permutation. More...

#include "internal-masking.h"

Go to the source code of this file.

Functions

void gimli24_permute_masked (mask_uint32_t state[12])
 Permutes the masked GIMLI-24 state. More...
 
void gimli24_mask (mask_uint32_t output[12], const uint32_t input[12])
 Converts an unmasked GIMLI-24 state into a masked state. More...
 
void gimli24_unmask (uint32_t output[12], const mask_uint32_t input[12])
 Converts a masked GIMLI-24 state into an unmasked state. More...
 

Detailed Description

Masked version of the GIMLI-24 permutation.

Note: This implementation is experimental.

References: https://gimli.cr.yp.to/

Function Documentation

void gimli24_mask ( mask_uint32_t  output[12],
const uint32_t  input[12] 
)

Converts an unmasked GIMLI-24 state into a masked state.

Parameters
outputThe output masked state in host byte order.
inputThe input unmasked state, in little-endian byte order.
void gimli24_permute_masked ( mask_uint32_t  state[12])

Permutes the masked GIMLI-24 state.

Parameters
stateThe masked GIMLI-24 state to be permuted.

The input and output state are in host byte order.

Note
It is assumed that aead_random_init() has already been called.
void gimli24_unmask ( uint32_t  output[12],
const mask_uint32_t  input[12] 
)

Converts a masked GIMLI-24 state into an unmasked state.

Parameters
outputThe output unmasked state, in little-endian byte order.
inputThe input masked state in host byte order.