Sha256: c60d963935a2b2e4dc15d3139263e718e68b4d0d0aace5ab5ec7bc5f1bf3f393

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

#include "crypto_stream_chacha20.h"
#include "ref/api.h"

size_t
crypto_stream_chacha20_keybytes(void) {
    return crypto_stream_chacha20_KEYBYTES;
}

size_t
crypto_stream_chacha20_noncebytes(void) {
    return crypto_stream_chacha20_NONCEBYTES;
}

int
crypto_stream_chacha20(unsigned char *c, unsigned long long clen,
                       const unsigned char *n, const unsigned char *k)
{
    return crypto_stream_chacha20_ref(c, clen, n, k);
}

int
crypto_stream_chacha20_xor_ic(unsigned char *c, const unsigned char *m,
                              unsigned long long mlen,
                              const unsigned char *n, uint64_t ic,
                              const unsigned char *k)
{
    return crypto_stream_chacha20_ref_xor_ic(c, m, mlen, n, ic, k);
}

int
crypto_stream_chacha20_xor(unsigned char *c, const unsigned char *m,
                           unsigned long long mlen, const unsigned char *n,
                           const unsigned char *k)
{
    return crypto_stream_chacha20_ref_xor_ic(c, m, mlen, n, 0U, k);
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c