diff --git a/src/libsodium/crypto_box/crypto_box.c b/src/libsodium/crypto_box/crypto_box.c index 4edb893c..7ec820a4 100644 --- a/src/libsodium/crypto_box/crypto_box.c +++ b/src/libsodium/crypto_box/crypto_box.c @@ -75,7 +75,7 @@ crypto_box_open_afternm(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) { - return crypto_box_curve25519xsalsa20poly1305_open_afternm(m, c, clen, m, k); + return crypto_box_curve25519xsalsa20poly1305_open_afternm(m, c, clen, n, k); } int