onetimeauth_poly1305.h 1016 B

123456789101112131415161718192021
  1. #ifndef onetimeauth_poly1305_H
  2. #define onetimeauth_poly1305_H
  3. #include "crypto_onetimeauth_poly1305.h"
  4. typedef struct crypto_onetimeauth_poly1305_implementation {
  5. int (*onetimeauth)(unsigned char *out, const unsigned char *in,
  6. unsigned long long inlen, const unsigned char *k);
  7. int (*onetimeauth_verify)(const unsigned char *h, const unsigned char *in,
  8. unsigned long long inlen, const unsigned char *k);
  9. int (*onetimeauth_init)(crypto_onetimeauth_poly1305_state *state,
  10. const unsigned char * key);
  11. int (*onetimeauth_update)(crypto_onetimeauth_poly1305_state *state,
  12. const unsigned char * in,
  13. unsigned long long inlen);
  14. int (*onetimeauth_final)(crypto_onetimeauth_poly1305_state *state,
  15. unsigned char * out);
  16. } crypto_onetimeauth_poly1305_implementation;
  17. #endif