Skip to content
Snippets Groups Projects
Commit ce099c65 authored by Mathias Tausig's avatar Mathias Tausig
Browse files

hashes:sha3: Remove unused functions from Keccak code

Remove unused SHAKE functions
Removed unused SHA3-224
parent 91a473a8
No related branches found
No related tags found
No related merge requests found
......@@ -88,31 +88,6 @@ static void Keccak(unsigned int rate, unsigned int capacity, const unsigned char
unsigned long long int inputByteLen, unsigned char delimitedSuffix, unsigned char *output,
unsigned long long int outputByteLen);
/**
* Function to compute SHAKE128 on the input message with any output length.
*/
void FIPS202_SHAKE128(const unsigned char *input, unsigned int inputByteLen, unsigned char *output, int outputByteLen)
{
Keccak(1344, 256, input, inputByteLen, 0x1F, output, outputByteLen);
}
/**
* Function to compute SHAKE256 on the input message with any output length.
*/
void FIPS202_SHAKE256(const unsigned char *input, unsigned int inputByteLen, unsigned char *output, int outputByteLen)
{
Keccak(1088, 512, input, inputByteLen, 0x1F, output, outputByteLen);
}
/**
* Function to compute SHA3-224 on the input message. The output length is fixed to 28 bytes.
*/
void FIPS202_SHA3_224(const unsigned char *input, unsigned int inputByteLen, unsigned char *output)
{
Keccak(1152, 448, input, inputByteLen, 0x06, output, 28);
}
/**
* Function to compute SHA3-256 on the input message. The output length is fixed to 32 bytes.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment