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

Hash algorithms based on the SKINNY block cipher. More...

#include "aead-common.h"

Go to the source code of this file.

Macros

#define SKINNY_HASH_SIZE   32
 Size of the hash output for SKINNY-tk3-HASH and SKINNY-tk2-HASH.
 

Functions

int skinny_tk3_hash (unsigned char *out, const unsigned char *in, unsigned long long inlen)
 Hashes a block of input data with SKINNY-tk3-HASH to generate a hash value. More...
 
int skinny_tk2_hash (unsigned char *out, const unsigned char *in, unsigned long long inlen)
 Hashes a block of input data with SKINNY-tk2-HASH to generate a hash value. More...
 

Variables

aead_hash_algorithm_t const skinny_tk3_hash_algorithm
 Meta-information block for the SKINNY-tk3-HASH algorithm.
 
aead_hash_algorithm_t const skinny_tk2_hash_algorithm
 Meta-information block for the SKINNY-tk2-HASH algorithm.
 

Detailed Description

Hash algorithms based on the SKINNY block cipher.

The SKINNY-AEAD family includes two hash algorithms:

References: https://sites.google.com/site/skinnycipher/home

Function Documentation

int skinny_tk2_hash ( unsigned char *  out,
const unsigned char *  in,
unsigned long long  inlen 
)

Hashes a block of input data with SKINNY-tk2-HASH to generate a hash value.

Parameters
outBuffer to receive the hash output which must be at least SKINNY_HASH_SIZE bytes in length.
inPoints to the input data to be hashed.
inlenLength of the input data in bytes.
Returns
Returns zero on success or -1 if there was an error in the parameters.
int skinny_tk3_hash ( unsigned char *  out,
const unsigned char *  in,
unsigned long long  inlen 
)

Hashes a block of input data with SKINNY-tk3-HASH to generate a hash value.

Parameters
outBuffer to receive the hash output which must be at least SKINNY_HASH_SIZE bytes in length.
inPoints to the input data to be hashed.
inlenLength of the input data in bytes.
Returns
Returns zero on success or -1 if there was an error in the parameters.