Sha256: 4d2c7b66183e11e55c58bd6562aa3325c653192f952eb86d23e42d2db6d0d91f

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

#include <stddef.h>
#include <stdint.h>

#include "crypto_verify_32.h"

int
crypto_verify_32(const unsigned char *x, const unsigned char *y)
{
    uint_fast16_t d = 0U;
    int           i;

    for (i = 0; i < 32; i++) {
        d |= x[i] ^ y[i];
    }
    return (1 & ((d - 1) >> 8)) - 1;
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.11 vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c
rbnacl-libsodium-1.0.8 vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c
rbnacl-libsodium-1.0.7 vendor/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.c