diff --git a/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c b/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c index a3936a79..509c81ed 100644 --- a/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c +++ b/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c @@ -2,14 +2,15 @@ #include "utils.h" int -crypto_box_curve25519xsalsa20poly1305(unsigned char *c, const unsigned char *m, +crypto_box_curve25519xsalsa20poly1305(unsigned char *c, + const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) { - int ret; unsigned char k[crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES]; + int ret; if (crypto_box_curve25519xsalsa20poly1305_beforenm(k, pk, sk) != 0) { return -1; @@ -21,12 +22,15 @@ crypto_box_curve25519xsalsa20poly1305(unsigned char *c, const unsigned char *m, } int -crypto_box_curve25519xsalsa20poly1305_open( - unsigned char *m, const unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *pk, const unsigned char *sk) +crypto_box_curve25519xsalsa20poly1305_open(unsigned char *m, + const unsigned char *c, + unsigned long long clen, + const unsigned char *n, + const unsigned char *pk, + const unsigned char *sk) { - int ret; unsigned char k[crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES]; + int ret; if (crypto_box_curve25519xsalsa20poly1305_beforenm(k, pk, sk) != 0) { return -1;