Sha256: 05d587ab1ef437e058ecf8fe66e94c238e457789551869c9e26c3638b10d8475

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

#include "api.h"
#include "crypto_verify_64.h"

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c