diff --git a/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h b/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h index 9b782d3c..79c4f4c2 100644 --- a/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h +++ b/src/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h @@ -53,16 +53,6 @@ int crypto_secretstream_xchacha20poly1305_init_push unsigned char out[crypto_secretstream_xchacha20poly1305_INITBYTES], const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]); -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_pull - (crypto_secretstream_xchacha20poly1305_state *state, - const unsigned char in[crypto_secretstream_xchacha20poly1305_INITBYTES], - const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_rekey - (crypto_secretstream_xchacha20poly1305_state *state); - SODIUM_EXPORT int crypto_secretstream_xchacha20poly1305_push (crypto_secretstream_xchacha20poly1305_state *state, @@ -70,6 +60,12 @@ int crypto_secretstream_xchacha20poly1305_push const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, unsigned char tag); +SODIUM_EXPORT +int crypto_secretstream_xchacha20poly1305_init_pull + (crypto_secretstream_xchacha20poly1305_state *state, + const unsigned char in[crypto_secretstream_xchacha20poly1305_INITBYTES], + const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]); + SODIUM_EXPORT int crypto_secretstream_xchacha20poly1305_pull (crypto_secretstream_xchacha20poly1305_state *state, @@ -77,6 +73,10 @@ int crypto_secretstream_xchacha20poly1305_pull const unsigned char *in, unsigned long long inlen, const unsigned char *ad, unsigned long long adlen); +SODIUM_EXPORT +void crypto_secretstream_xchacha20poly1305_rekey + (crypto_secretstream_xchacha20poly1305_state *state); + #ifdef __cplusplus } #endif