Sha256: a2796b41a3283cf464fed4c6bb241847a932b67bc21945ad946a190375c386de

Contents?: true

Size: 332 Bytes

Versions: 15

Compression:

Stored size: 332 Bytes

Contents

#include "api.h"

int crypto_verify_16(const unsigned char *x,const unsigned char *y)
{
  unsigned int differentbits = 0;
#define F(i) differentbits |= x[i] ^ y[i];
  F(0)
  F(1)
  F(2)
  F(3)
  F(4)
  F(5)
  F(6)
  F(7)
  F(8)
  F(9)
  F(10)
  F(11)
  F(12)
  F(13)
  F(14)
  F(15)
  return (1 & ((differentbits - 1) >> 8)) - 1;
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.6 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.4.5 vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c
rbnacl-libsodium-0.4.5a vendor/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.c