Sha256: 7bf99c26c289bf37eee5bc4e79b15b57d2b36fa370b0ef1ab989df9bf66c55a1

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

#include "api.h"
#include "crypto_onetimeauth_poly1305_53.h"
#include "crypto_verify_16.h"

int crypto_onetimeauth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
{
  unsigned char correct[16];
  crypto_onetimeauth(correct,in,inlen,k);
  return crypto_verify_16(h,correct);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rbnacl-libsodium-0.4.5 vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/verify_poly1305_53.c
rbnacl-libsodium-0.4.5a vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/53/verify_poly1305_53.c