Reference implementations of PQC
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
1.4 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_inc_ctx_release(shake128incctx *state);
  11. void cshake128_inc_ctx_clone(shake128incctx *dest, const shake128incctx *src);
  12. 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);
  13. void cshake256_inc_init(shake256incctx *state, const uint8_t *name, size_t namelen, const uint8_t *cstm, size_t cstmlen);
  14. void cshake256_inc_absorb(shake256incctx *state, const uint8_t *input, size_t inlen);
  15. void cshake256_inc_finalize(shake256incctx *state);
  16. void cshake256_inc_squeeze(uint8_t *output, size_t outlen, shake256incctx *state);
  17. void cshake256_inc_ctx_release(shake256incctx *state);
  18. void cshake256_inc_ctx_clone(shake256incctx *dest, const shake256incctx *src);
  19. 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);
  20. #endif