Sha256: a85b02cf3f2aa6b4c95a15e69a5af682825b3ffe0a90130e01e46ab2bb5cb752

Contents?: true

Size: 668 Bytes

Versions: 15

Compression:

Stored size: 668 Bytes

Contents

#include "api.h"

int crypto_stream(
        unsigned char *out,
        unsigned long long outlen,
        const unsigned char *n,
        const unsigned char *k
        )
{
    unsigned char d[crypto_stream_BEFORENMBYTES];
    crypto_stream_beforenm(d, k);
    crypto_stream_afternm(out, outlen, n, d);
    return 0;
}

int crypto_stream_xor(
        unsigned char *out,
        const unsigned char *in,
        unsigned long long inlen,
        const unsigned char *n,
        const unsigned char *k
        )
{
    unsigned char d[crypto_stream_BEFORENMBYTES];
    crypto_stream_beforenm(d, k);
    crypto_stream_xor_afternm(out, in, inlen, n, d);
    return 0;
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.6 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.4.5 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-0.4.5a vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c