aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/pq-crypto/sike_r3/sikep434r3_fips202.h
blob: 9dd237a4911989fe22e60a66475e69be934e8c3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/********************************************************************************************
* SHA3-derived function SHAKE
*
* Based on the public domain implementation in crypto_hash/keccakc512/simple/
* from http://bench.cr.yp.to/supercop.html by Ronny Van Keer
* and the public domain "TweetFips202" implementation from https://twitter.com/tweetfips202
* by Gilles Van Assche, Daniel J. Bernstein, and Peter Schwabe
*
* See NIST Special Publication 800-185 for more information:
* http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-185.pdf
*
*********************************************************************************************/

#pragma once

#include <stdint.h>
#include "sikep434r3.h"

#define SHAKE128_RATE 168
#define SHAKE256_RATE 136

#define shake256 S2N_SIKE_P434_R3_NAMESPACE(shake256)
void shake256(unsigned char *output, unsigned long long outlen, const unsigned char *input,  unsigned long long inlen);