after.c 563 B

12345678910111213141516171819202122
  1. #include "crypto_secretbox_xsalsa20poly1305.h"
  2. #include "crypto_box.h"
  3. int crypto_box_curve25519xsalsa20poly1305_ref_afternm(
  4. unsigned char *c,
  5. const unsigned char *m,unsigned long long mlen,
  6. const unsigned char *n,
  7. const unsigned char *k
  8. )
  9. {
  10. return crypto_secretbox_xsalsa20poly1305(c,m,mlen,n,k);
  11. }
  12. int crypto_box_curve25519xsalsa20poly1305_ref_open_afternm(
  13. unsigned char *m,
  14. const unsigned char *c,unsigned long long clen,
  15. const unsigned char *n,
  16. const unsigned char *k
  17. )
  18. {
  19. return crypto_secretbox_xsalsa20poly1305_open(m,c,clen,n,k);
  20. }