chacha20_ietf_ext.h 632 B

12345678910111213141516
  1. #ifndef chacha20_ietf_ext_H
  2. #define chacha20_ietf_ext_H
  3. #include <stdint.h>
  4. /* The ietf_ext variant allows the internal counter to overflow into the IV */
  5. int crypto_stream_chacha20_ietf_ext(unsigned char *c, unsigned long long clen,
  6. const unsigned char *n, const unsigned char *k);
  7. int crypto_stream_chacha20_ietf_ext_xor_ic(unsigned char *c, const unsigned char *m,
  8. unsigned long long mlen,
  9. const unsigned char *n, uint32_t ic,
  10. const unsigned char *k);
  11. #endif