Sha256: 8e44da85967315c922b3582f485a2482b06d6f1752ff9169bc7b7d87afca30bf

Contents?: true

Size: 769 Bytes

Versions: 5

Compression:

Stored size: 769 Bytes

Contents

#include "crypto_stream_aes128ctr.h"

int crypto_stream_aes128ctr(
        unsigned char *out,
        unsigned long long outlen,
        const unsigned char *n,
        const unsigned char *k
        )
{
    unsigned char d[crypto_stream_aes128ctr_BEFORENMBYTES];
    crypto_stream_aes128ctr_beforenm(d, k);
    crypto_stream_aes128ctr_afternm(out, outlen, n, d);
    return 0;
}

int crypto_stream_aes128ctr_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_aes128ctr_BEFORENMBYTES];
    crypto_stream_aes128ctr_beforenm(d, k);
    crypto_stream_aes128ctr_xor_afternm(out, in, inlen, n, d);
    return 0;
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.11 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.8 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c
rbnacl-libsodium-1.0.7 vendor/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.c