Lightweight Cryptography Primitives
|
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. | |
Hash algorithms based on the SKINNY block cipher.
The SKINNY-AEAD family includes two hash algorithms:
References: https://sites.google.com/site/skinnycipher/home
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.
out | Buffer to receive the hash output which must be at least SKINNY_HASH_SIZE bytes in length. |
in | Points to the input data to be hashed. |
inlen | Length of the input data in bytes. |
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.
out | Buffer to receive the hash output which must be at least SKINNY_HASH_SIZE bytes in length. |
in | Points to the input data to be hashed. |
inlen | Length of the input data in bytes. |