Reference implementations of PQC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
818 B

  1. #ifndef FIPS202_H
  2. #define FIPS202_H
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. #define SHAKE128_RATE 168
  6. #define SHAKE256_RATE 136
  7. #define SHA3_256_RATE 136
  8. #define SHA3_512_RATE 72
  9. void shake128_absorb(uint64_t *s, const uint8_t *input, size_t inlen);
  10. void shake128_squeezeblocks(uint8_t *output, size_t nblocks, uint64_t *s);
  11. void shake256_absorb(uint64_t *s, const uint8_t *input, size_t inlen);
  12. void shake256_squeezeblocks(uint8_t *output, size_t nblocks, uint64_t *s);
  13. void shake128(uint8_t *output, size_t outlen,
  14. const uint8_t *input, size_t inlen);
  15. void shake256(uint8_t *output, size_t outlen,
  16. const uint8_t *input, size_t inlen);
  17. void sha3_256(uint8_t *output, const uint8_t *input, size_t inlen);
  18. void sha3_512(uint8_t *output, const uint8_t *input, size_t inlen);
  19. #endif