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

Masked version of the sLiSCP-light permutation. More...

#include "internal-masking.h"

Go to the source code of this file.

Functions

void sliscp_light192_permute_masked (mask_uint32_t block[8])
 Performs the masked sLiSCP-light permutation on a 192-bit block. More...
 
void sliscp_light192_reduce_masked (mask_uint32_t block[8])
 Reduces masked 32-bit words into 24-bit words for sLiSCP-light-192. More...
 
void sliscp_light192_mask (mask_uint32_t output[8], const unsigned char input[24])
 Converts an unmasked sLiSCP-light-192 state into a masked state. More...
 
void sliscp_light192_unmask (unsigned char output[24], const mask_uint32_t input[8])
 Converts a masked sLiSCP-light-192 state into an unmasked state. More...
 
void sliscp_light256_permute_masked (mask_uint32_t block[8], unsigned rounds)
 Performs the masked sLiSCP-light permutation on a 256-bit block. More...
 
void sliscp_light256_mask (mask_uint32_t output[8], const unsigned char input[32])
 Converts an unmasked sLiSCP-light-256 state into a masked state. More...
 
void sliscp_light256_unmask (unsigned char output[32], const mask_uint32_t input[8])
 Converts a masked sLiSCP-light-256 state into an unmasked state. More...
 
void sliscp_light320_permute_masked (mask_uint32_t block[10])
 Performs the masked sLiSCP-light permutation on a 320-bit block. More...
 
void sliscp_light320_mask (mask_uint32_t output[10], const unsigned char input[40])
 Converts an unmasked sLiSCP-light-320 state into a masked state. More...
 
void sliscp_light320_unmask (unsigned char output[40], const mask_uint32_t input[10])
 Converts a masked sLiSCP-light-320 state into an unmasked state. More...
 

Detailed Description

Masked version of the sLiSCP-light permutation.

Function Documentation

void sliscp_light192_mask ( mask_uint32_t  output[8],
const unsigned char  input[24] 
)

Converts an unmasked sLiSCP-light-192 state into a masked state.

Parameters
outputThe output masked state in host byte order.
inputThe input unmasked state, in big-endian byte order.
void sliscp_light192_permute_masked ( mask_uint32_t  block[8])

Performs the masked sLiSCP-light permutation on a 192-bit block.

Parameters
blockPoints to the block to be permuted in host byte order.
void sliscp_light192_reduce_masked ( mask_uint32_t  block[8])

Reduces masked 32-bit words into 24-bit words for sLiSCP-light-192.

Parameters
blockPoints to the block to be reduced.
void sliscp_light192_unmask ( unsigned char  output[24],
const mask_uint32_t  input[8] 
)

Converts a masked sLiSCP-light-192 state into an unmasked state.

Parameters
outputThe output unmasked state, in big-endian byte order.
inputThe input masked state in host byte order.
void sliscp_light256_mask ( mask_uint32_t  output[8],
const unsigned char  input[32] 
)

Converts an unmasked sLiSCP-light-256 state into a masked state.

Parameters
outputThe output masked state in host byte order.
inputThe input unmasked state, in big-endian byte order.
void sliscp_light256_permute_masked ( mask_uint32_t  block[8],
unsigned  rounds 
)

Performs the masked sLiSCP-light permutation on a 256-bit block.

Parameters
blockPoints to the block to be permuted in host byte order.
roundsNumber of rounds to be performed, usually 9 or 18.
void sliscp_light256_unmask ( unsigned char  output[32],
const mask_uint32_t  input[8] 
)

Converts a masked sLiSCP-light-256 state into an unmasked state.

Parameters
outputThe output unmasked state, in big-endian byte order.
inputThe input masked state in host byte order.
void sliscp_light320_mask ( mask_uint32_t  output[10],
const unsigned char  input[40] 
)

Converts an unmasked sLiSCP-light-320 state into a masked state.

Parameters
outputThe output masked state in host byte order.
inputThe input unmasked state, in big-endian byte order.
void sliscp_light320_permute_masked ( mask_uint32_t  block[10])

Performs the masked sLiSCP-light permutation on a 320-bit block.

Parameters
blockPoints to the block to be permuted in host byte order.
void sliscp_light320_unmask ( unsigned char  output[40],
const mask_uint32_t  input[10] 
)

Converts a masked sLiSCP-light-320 state into an unmasked state.

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