Sha256: 584f6c0be4764114826dbcf1100d9fcb2be48cffe65e64f59a2798103d04195a

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

#include "crypto_verify_32.h"
#include "crypto_auth.h"

int crypto_auth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
{
  unsigned char correct[32];
  crypto_auth(correct,in,inlen,k);
  return crypto_verify_32(h,correct);
}

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/crypto_auth/hmacsha256/ref/verify.c
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/crypto_auth/hmacsha512256/ref/verify.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/crypto_auth/hmacsha256/ref/verify.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/crypto_auth/hmacsha512256/ref/verify.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/crypto_auth/hmacsha256/ref/verify.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/crypto_auth/hmacsha512256/ref/verify.c