Reference implementations of PQC
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

24 righe
1.1 KiB

  1. #ifndef SP800_185_H
  2. #define SP800_185_H
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. #include "fips202.h"
  6. void cshake128_inc_init(shake128incctx *state, const uint8_t *name, size_t namelen, const uint8_t *cstm, size_t cstmlen);
  7. void cshake128_inc_absorb(shake128incctx *state, const uint8_t *input, size_t inlen);
  8. void cshake128_inc_finalize(shake128incctx *state);
  9. void cshake128_inc_squeeze(uint8_t *output, size_t outlen, shake128incctx *state);
  10. void cshake128(uint8_t *output, size_t outlen, const uint8_t *name, size_t namelen, const uint8_t *cstm, size_t cstmlen, const uint8_t *input, size_t inlen);
  11. void cshake256_inc_init(shake256incctx *state, const uint8_t *name, size_t namelen, const uint8_t *cstm, size_t cstmlen);
  12. void cshake256_inc_absorb(shake256incctx *state, const uint8_t *input, size_t inlen);
  13. void cshake256_inc_finalize(shake256incctx *state);
  14. void cshake256_inc_squeeze(uint8_t *output, size_t outlen, shake256incctx *state);
  15. void cshake256(uint8_t *output, size_t outlen, const uint8_t *name, size_t namelen, const uint8_t* cstm, size_t cstmlen, const uint8_t *input, size_t inlen);
  16. #endif