Sha256: d4222d79237967032a01d73773d1f8e607da4345b7ee2f6562c14cf01a08e697

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

#include "crypto_stream.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

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/crypto_stream/aes128ctr/portable/stream.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/crypto_stream/aes128ctr/portable/stream.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/crypto_stream/aes128ctr/portable/stream.c