Sha256: 429f004321c7db7188094fbf41d5d10d43543a75d00e0f755902feba88cd3c41

Contents?: true

Size: 1.84 KB

Versions: 17

Compression:

Stored size: 1.84 KB

Contents

#ifndef crypto_stream_aes128ctr_H
#define crypto_stream_aes128ctr_H

/*
 *  WARNING: This is just a stream cipher. It is NOT authenticated encryption.
 *  While it provides some protection against eavesdropping, it does NOT
 *  provide any security against active attacks.
 *  Unless you know what you're doing, what you are looking for is probably
 *  the crypto_box functions.
 */

#include <stddef.h>
#include "export.h"

#ifdef __cplusplus
# if __GNUC__
#  pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

#define crypto_stream_aes128ctr_KEYBYTES 16U
SODIUM_EXPORT
size_t crypto_stream_aes128ctr_keybytes(void);

#define crypto_stream_aes128ctr_NONCEBYTES 16U
SODIUM_EXPORT
size_t crypto_stream_aes128ctr_noncebytes(void);

#define crypto_stream_aes128ctr_BEFORENMBYTES 1408U
SODIUM_EXPORT
size_t crypto_stream_aes128ctr_beforenmbytes(void);

SODIUM_EXPORT
int crypto_stream_aes128ctr(unsigned char *out, unsigned long long outlen,
                            const unsigned char *n, const unsigned char *k);

SODIUM_EXPORT
int crypto_stream_aes128ctr_xor(unsigned char *out, const unsigned char *in,
                                unsigned long long inlen, const unsigned char *n,
                                const unsigned char *k);

SODIUM_EXPORT
int crypto_stream_aes128ctr_beforenm(unsigned char *c, const unsigned char *k);

SODIUM_EXPORT
int crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
                                    const unsigned char *nonce, const unsigned char *c);

SODIUM_EXPORT
int crypto_stream_aes128ctr_xor_afternm(unsigned char *out, const unsigned char *in,
                                        unsigned long long len,
                                        const unsigned char *nonce,
                                        const unsigned char *c);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.8 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.7 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.6 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes128ctr.h