Sha256: 749e728f50c0f453ab3c8157ccdb8745ce556bc61eccca4f0e79a51fa25c5cba

Contents?: true

Size: 475 Bytes

Versions: 20

Compression:

Stored size: 475 Bytes

Contents

#include "crypto_shorthash.h"

size_t
crypto_shorthash_bytes(void)
{
    return crypto_shorthash_BYTES;
}

size_t
crypto_shorthash_keybytes(void)
{
    return crypto_shorthash_KEYBYTES;
}

const char *
crypto_shorthash_primitive(void)
{
    return crypto_shorthash_PRIMITIVE;
}

int
crypto_shorthash(unsigned char *out, const unsigned char *in,
                 unsigned long long inlen, const unsigned char *k)
{
    return crypto_shorthash_siphash24(out, in, inlen, k);
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.11 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.8 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.7 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.6 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.4.5 vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c
rbnacl-libsodium-0.4.5a vendor/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.c