rfc7539.h 351 B

12345678910
  1. #ifndef RFC7539_H
  2. #define RFC7539_H
  3. #include "chacha20poly1305.h"
  4. void rfc7539_init(chacha20poly1305_ctx* ctx, const uint8_t key[32], const uint8_t nonce[12]);
  5. void rfc7539_auth(chacha20poly1305_ctx* ctx, const uint8_t* in, size_t n);
  6. void rfc7539_finish(chacha20poly1305_ctx* ctx, int64_t alen, int64_t plen, uint8_t mac[16]);
  7. #endif // RFC7539_H