Sha256: 599404e9bcb8d84832c79b45df7ef258183cceb7ad5d732ade48997b79a7711e

Contents?: true

Size: 1.66 KB

Versions: 15

Compression:

Stored size: 1.66 KB

Contents

#ifndef crypto_secretbox_xsalsa20poly1305_H
#define crypto_secretbox_xsalsa20poly1305_H

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

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

#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U
SODIUM_EXPORT
size_t crypto_secretbox_xsalsa20poly1305_keybytes(void);

#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U
SODIUM_EXPORT
size_t crypto_secretbox_xsalsa20poly1305_noncebytes(void);

#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES 32U
SODIUM_EXPORT
size_t crypto_secretbox_xsalsa20poly1305_zerobytes(void);

#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U
SODIUM_EXPORT
size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes(void);

#define crypto_secretbox_xsalsa20poly1305_MACBYTES \
    (crypto_secretbox_xsalsa20poly1305_ZEROBYTES - \
     crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES)
SODIUM_EXPORT
size_t crypto_secretbox_xsalsa20poly1305_macbytes(void);

SODIUM_EXPORT
int crypto_secretbox_xsalsa20poly1305(unsigned char *c,
                                      const unsigned char *m,
                                      unsigned long long mlen,
                                      const unsigned char *n,
                                      const unsigned char *k);

SODIUM_EXPORT
int crypto_secretbox_xsalsa20poly1305_open(unsigned char *m,
                                           const unsigned char *c,
                                           unsigned long long clen,
                                           const unsigned char *n,
                                           const unsigned char *k);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

15 entries across 15 versions & 1 rubygems

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