Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/include/sodium/ |
Upload File : |
#ifndef crypto_secretstream_xchacha20poly1305_H #define crypto_secretstream_xchacha20poly1305_H #include <stddef.h> #include "crypto_aead_xchacha20poly1305.h" #include "crypto_stream_chacha20.h" #include "export.h" #ifdef __cplusplus # ifdef __GNUC__ # pragma GCC diagnostic ignored "-Wlong-long" # endif extern "C" { #endif #define crypto_secretstream_xchacha20poly1305_ABYTES \ (1U + crypto_aead_xchacha20poly1305_ietf_ABYTES) SODIUM_EXPORT size_t crypto_secretstream_xchacha20poly1305_abytes(void); #define crypto_secretstream_xchacha20poly1305_HEADERBYTES \ crypto_aead_xchacha20poly1305_ietf_NPUBBYTES SODIUM_EXPORT size_t crypto_secretstream_xchacha20poly1305_headerbytes(void); #define crypto_secretstream_xchacha20poly1305_KEYBYTES \ crypto_aead_xchacha20poly1305_ietf_KEYBYTES SODIUM_EXPORT size_t crypto_secretstream_xchacha20poly1305_keybytes(void); #define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \ SODIUM_MIN(SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \ (64ULL * ((1ULL << 32) - 2ULL))) SODIUM_EXPORT size_t crypto_secretstream_xchacha20poly1305_messagebytes_max(void); #define crypto_secretstream_xchacha20poly1305_TAG_MESSAGE 0x00 SODIUM_EXPORT unsigned char crypto_secretstream_xchacha20poly1305_tag_message(void); #define crypto_secretstream_xchacha20poly1305_TAG_PUSH 0x01 SODIUM_EXPORT unsigned char crypto_secretstream_xchacha20poly1305_tag_push(void); #define crypto_secretstream_xchacha20poly1305_TAG_REKEY 0x02 SODIUM_EXPORT unsigned char crypto_secretstream_xchacha20poly1305_tag_rekey(void); #define crypto_secretstream_xchacha20poly1305_TAG_FINAL \ (crypto_secretstream_xchacha20poly1305_TAG_PUSH | \ crypto_secretstream_xchacha20poly1305_TAG_REKEY) SODIUM_EXPORT unsigned char crypto_secretstream_xchacha20poly1305_tag_final(void); typedef struct crypto_secretstream_xchacha20poly1305_state { unsigned char k[crypto_stream_chacha20_ietf_KEYBYTES]; unsigned char nonce[crypto_stream_chacha20_ietf_NONCEBYTES]; unsigned char _pad[8]; } crypto_secretstream_xchacha20poly1305_state; SODIUM_EXPORT size_t crypto_secretstream_xchacha20poly1305_statebytes(void); SODIUM_EXPORT void crypto_secretstream_xchacha20poly1305_keygen (unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_secretstream_xchacha20poly1305_init_push (crypto_secretstream_xchacha20poly1305_state *state, unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_secretstream_xchacha20poly1305_push (crypto_secretstream_xchacha20poly1305_state *state, unsigned char *c, unsigned long long *clen_p, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, unsigned char tag) __attribute__ ((nonnull(1))); SODIUM_EXPORT int crypto_secretstream_xchacha20poly1305_init_pull (crypto_secretstream_xchacha20poly1305_state *state, const unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_secretstream_xchacha20poly1305_pull (crypto_secretstream_xchacha20poly1305_state *state, unsigned char *m, unsigned long long *mlen_p, unsigned char *tag_p, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen) __attribute__ ((nonnull(1))); SODIUM_EXPORT void crypto_secretstream_xchacha20poly1305_rekey (crypto_secretstream_xchacha20poly1305_state *state); #ifdef __cplusplus } #endif #endif