1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 20:45:17 -07:00

Deprecate low-level non-easy crypto boxes as well

This commit is contained in:
Frank Denis 2020-05-10 20:32:42 +02:00
parent 5bb0cdc616
commit bf2238bbc4

View File

@ -69,7 +69,8 @@ size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes(void);
(crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES + \ (crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES + \
crypto_box_curve25519xsalsa20poly1305_MACBYTES) crypto_box_curve25519xsalsa20poly1305_MACBYTES)
SODIUM_EXPORT SODIUM_EXPORT
size_t crypto_box_curve25519xsalsa20poly1305_zerobytes(void); size_t crypto_box_curve25519xsalsa20poly1305_zerobytes(void)
__attribute__ ((deprecated));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_box_curve25519xsalsa20poly1305(unsigned char *c, int crypto_box_curve25519xsalsa20poly1305(unsigned char *c,
@ -78,7 +79,7 @@ int crypto_box_curve25519xsalsa20poly1305(unsigned char *c,
const unsigned char *n, const unsigned char *n,
const unsigned char *pk, const unsigned char *pk,
const unsigned char *sk) const unsigned char *sk)
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); __attribute__ ((deprecated)) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6)));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_box_curve25519xsalsa20poly1305_open(unsigned char *m, int crypto_box_curve25519xsalsa20poly1305_open(unsigned char *m,
@ -87,7 +88,7 @@ int crypto_box_curve25519xsalsa20poly1305_open(unsigned char *m,
const unsigned char *n, const unsigned char *n,
const unsigned char *pk, const unsigned char *pk,
const unsigned char *sk) const unsigned char *sk)
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); __attribute__ ((deprecated)) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6)));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *c, int crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *c,
@ -95,7 +96,7 @@ int crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *c,
unsigned long long mlen, unsigned long long mlen,
const unsigned char *n, const unsigned char *n,
const unsigned char *k) const unsigned char *k)
__attribute__ ((nonnull(1, 4, 5))); __attribute__ ((deprecated)) __attribute__ ((nonnull(1, 4, 5)));
SODIUM_EXPORT SODIUM_EXPORT
int crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *m, int crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *m,
@ -103,7 +104,7 @@ int crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *m,
unsigned long long clen, unsigned long long clen,
const unsigned char *n, const unsigned char *n,
const unsigned char *k) const unsigned char *k)
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); __attribute__ ((deprecated)) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5)));
#ifdef __cplusplus #ifdef __cplusplus
} }