Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/sodium
File: crypto_aead_chacha20poly1305.h
#ifndef crypto_aead_chacha20poly1305_H
[0] Fix | Delete
#define crypto_aead_chacha20poly1305_H
[1] Fix | Delete
[2] Fix | Delete
#include <stddef.h>
[3] Fix | Delete
#include "export.h"
[4] Fix | Delete
[5] Fix | Delete
#ifdef __cplusplus
[6] Fix | Delete
# ifdef __GNUC__
[7] Fix | Delete
# pragma GCC diagnostic ignored "-Wlong-long"
[8] Fix | Delete
# endif
[9] Fix | Delete
extern "C" {
[10] Fix | Delete
#endif
[11] Fix | Delete
[12] Fix | Delete
/* -- IETF ChaCha20-Poly1305 construction with a 96-bit nonce and a 32-bit internal counter -- */
[13] Fix | Delete
[14] Fix | Delete
#define crypto_aead_chacha20poly1305_ietf_KEYBYTES 32U
[15] Fix | Delete
SODIUM_EXPORT
[16] Fix | Delete
size_t crypto_aead_chacha20poly1305_ietf_keybytes(void);
[17] Fix | Delete
[18] Fix | Delete
#define crypto_aead_chacha20poly1305_ietf_NSECBYTES 0U
[19] Fix | Delete
SODIUM_EXPORT
[20] Fix | Delete
size_t crypto_aead_chacha20poly1305_ietf_nsecbytes(void);
[21] Fix | Delete
[22] Fix | Delete
#define crypto_aead_chacha20poly1305_ietf_NPUBBYTES 12U
[23] Fix | Delete
[24] Fix | Delete
SODIUM_EXPORT
[25] Fix | Delete
size_t crypto_aead_chacha20poly1305_ietf_npubbytes(void);
[26] Fix | Delete
[27] Fix | Delete
#define crypto_aead_chacha20poly1305_ietf_ABYTES 16U
[28] Fix | Delete
SODIUM_EXPORT
[29] Fix | Delete
size_t crypto_aead_chacha20poly1305_ietf_abytes(void);
[30] Fix | Delete
[31] Fix | Delete
#define crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX \
[32] Fix | Delete
SODIUM_MIN(SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ietf_ABYTES, \
[33] Fix | Delete
(64ULL * ((1ULL << 32) - 1ULL)))
[34] Fix | Delete
SODIUM_EXPORT
[35] Fix | Delete
size_t crypto_aead_chacha20poly1305_ietf_messagebytes_max(void);
[36] Fix | Delete
[37] Fix | Delete
SODIUM_EXPORT
[38] Fix | Delete
int crypto_aead_chacha20poly1305_ietf_encrypt(unsigned char *c,
[39] Fix | Delete
unsigned long long *clen_p,
[40] Fix | Delete
const unsigned char *m,
[41] Fix | Delete
unsigned long long mlen,
[42] Fix | Delete
const unsigned char *ad,
[43] Fix | Delete
unsigned long long adlen,
[44] Fix | Delete
const unsigned char *nsec,
[45] Fix | Delete
const unsigned char *npub,
[46] Fix | Delete
const unsigned char *k)
[47] Fix | Delete
__attribute__ ((nonnull(1, 8, 9)));
[48] Fix | Delete
[49] Fix | Delete
SODIUM_EXPORT
[50] Fix | Delete
int crypto_aead_chacha20poly1305_ietf_decrypt(unsigned char *m,
[51] Fix | Delete
unsigned long long *mlen_p,
[52] Fix | Delete
unsigned char *nsec,
[53] Fix | Delete
const unsigned char *c,
[54] Fix | Delete
unsigned long long clen,
[55] Fix | Delete
const unsigned char *ad,
[56] Fix | Delete
unsigned long long adlen,
[57] Fix | Delete
const unsigned char *npub,
[58] Fix | Delete
const unsigned char *k)
[59] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9)));
[60] Fix | Delete
[61] Fix | Delete
SODIUM_EXPORT
[62] Fix | Delete
int crypto_aead_chacha20poly1305_ietf_encrypt_detached(unsigned char *c,
[63] Fix | Delete
unsigned char *mac,
[64] Fix | Delete
unsigned long long *maclen_p,
[65] Fix | Delete
const unsigned char *m,
[66] Fix | Delete
unsigned long long mlen,
[67] Fix | Delete
const unsigned char *ad,
[68] Fix | Delete
unsigned long long adlen,
[69] Fix | Delete
const unsigned char *nsec,
[70] Fix | Delete
const unsigned char *npub,
[71] Fix | Delete
const unsigned char *k)
[72] Fix | Delete
__attribute__ ((nonnull(1, 2, 9, 10)));
[73] Fix | Delete
[74] Fix | Delete
SODIUM_EXPORT
[75] Fix | Delete
int crypto_aead_chacha20poly1305_ietf_decrypt_detached(unsigned char *m,
[76] Fix | Delete
unsigned char *nsec,
[77] Fix | Delete
const unsigned char *c,
[78] Fix | Delete
unsigned long long clen,
[79] Fix | Delete
const unsigned char *mac,
[80] Fix | Delete
const unsigned char *ad,
[81] Fix | Delete
unsigned long long adlen,
[82] Fix | Delete
const unsigned char *npub,
[83] Fix | Delete
const unsigned char *k)
[84] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9)));
[85] Fix | Delete
[86] Fix | Delete
SODIUM_EXPORT
[87] Fix | Delete
void crypto_aead_chacha20poly1305_ietf_keygen(unsigned char k[crypto_aead_chacha20poly1305_ietf_KEYBYTES])
[88] Fix | Delete
__attribute__ ((nonnull));
[89] Fix | Delete
[90] Fix | Delete
/* -- Original ChaCha20-Poly1305 construction with a 64-bit nonce and a 64-bit internal counter -- */
[91] Fix | Delete
[92] Fix | Delete
#define crypto_aead_chacha20poly1305_KEYBYTES 32U
[93] Fix | Delete
SODIUM_EXPORT
[94] Fix | Delete
size_t crypto_aead_chacha20poly1305_keybytes(void);
[95] Fix | Delete
[96] Fix | Delete
#define crypto_aead_chacha20poly1305_NSECBYTES 0U
[97] Fix | Delete
SODIUM_EXPORT
[98] Fix | Delete
size_t crypto_aead_chacha20poly1305_nsecbytes(void);
[99] Fix | Delete
[100] Fix | Delete
#define crypto_aead_chacha20poly1305_NPUBBYTES 8U
[101] Fix | Delete
SODIUM_EXPORT
[102] Fix | Delete
size_t crypto_aead_chacha20poly1305_npubbytes(void);
[103] Fix | Delete
[104] Fix | Delete
#define crypto_aead_chacha20poly1305_ABYTES 16U
[105] Fix | Delete
SODIUM_EXPORT
[106] Fix | Delete
size_t crypto_aead_chacha20poly1305_abytes(void);
[107] Fix | Delete
[108] Fix | Delete
#define crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX \
[109] Fix | Delete
(SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ABYTES)
[110] Fix | Delete
SODIUM_EXPORT
[111] Fix | Delete
size_t crypto_aead_chacha20poly1305_messagebytes_max(void);
[112] Fix | Delete
[113] Fix | Delete
SODIUM_EXPORT
[114] Fix | Delete
int crypto_aead_chacha20poly1305_encrypt(unsigned char *c,
[115] Fix | Delete
unsigned long long *clen_p,
[116] Fix | Delete
const unsigned char *m,
[117] Fix | Delete
unsigned long long mlen,
[118] Fix | Delete
const unsigned char *ad,
[119] Fix | Delete
unsigned long long adlen,
[120] Fix | Delete
const unsigned char *nsec,
[121] Fix | Delete
const unsigned char *npub,
[122] Fix | Delete
const unsigned char *k)
[123] Fix | Delete
__attribute__ ((nonnull(1, 8, 9)));
[124] Fix | Delete
[125] Fix | Delete
SODIUM_EXPORT
[126] Fix | Delete
int crypto_aead_chacha20poly1305_decrypt(unsigned char *m,
[127] Fix | Delete
unsigned long long *mlen_p,
[128] Fix | Delete
unsigned char *nsec,
[129] Fix | Delete
const unsigned char *c,
[130] Fix | Delete
unsigned long long clen,
[131] Fix | Delete
const unsigned char *ad,
[132] Fix | Delete
unsigned long long adlen,
[133] Fix | Delete
const unsigned char *npub,
[134] Fix | Delete
const unsigned char *k)
[135] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9)));
[136] Fix | Delete
[137] Fix | Delete
SODIUM_EXPORT
[138] Fix | Delete
int crypto_aead_chacha20poly1305_encrypt_detached(unsigned char *c,
[139] Fix | Delete
unsigned char *mac,
[140] Fix | Delete
unsigned long long *maclen_p,
[141] Fix | Delete
const unsigned char *m,
[142] Fix | Delete
unsigned long long mlen,
[143] Fix | Delete
const unsigned char *ad,
[144] Fix | Delete
unsigned long long adlen,
[145] Fix | Delete
const unsigned char *nsec,
[146] Fix | Delete
const unsigned char *npub,
[147] Fix | Delete
const unsigned char *k)
[148] Fix | Delete
__attribute__ ((nonnull(1, 2, 9, 10)));
[149] Fix | Delete
[150] Fix | Delete
SODIUM_EXPORT
[151] Fix | Delete
int crypto_aead_chacha20poly1305_decrypt_detached(unsigned char *m,
[152] Fix | Delete
unsigned char *nsec,
[153] Fix | Delete
const unsigned char *c,
[154] Fix | Delete
unsigned long long clen,
[155] Fix | Delete
const unsigned char *mac,
[156] Fix | Delete
const unsigned char *ad,
[157] Fix | Delete
unsigned long long adlen,
[158] Fix | Delete
const unsigned char *npub,
[159] Fix | Delete
const unsigned char *k)
[160] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9)));
[161] Fix | Delete
[162] Fix | Delete
SODIUM_EXPORT
[163] Fix | Delete
void crypto_aead_chacha20poly1305_keygen(unsigned char k[crypto_aead_chacha20poly1305_KEYBYTES])
[164] Fix | Delete
__attribute__ ((nonnull));
[165] Fix | Delete
[166] Fix | Delete
/* Aliases */
[167] Fix | Delete
[168] Fix | Delete
#define crypto_aead_chacha20poly1305_IETF_KEYBYTES crypto_aead_chacha20poly1305_ietf_KEYBYTES
[169] Fix | Delete
#define crypto_aead_chacha20poly1305_IETF_NSECBYTES crypto_aead_chacha20poly1305_ietf_NSECBYTES
[170] Fix | Delete
#define crypto_aead_chacha20poly1305_IETF_NPUBBYTES crypto_aead_chacha20poly1305_ietf_NPUBBYTES
[171] Fix | Delete
#define crypto_aead_chacha20poly1305_IETF_ABYTES crypto_aead_chacha20poly1305_ietf_ABYTES
[172] Fix | Delete
#define crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX
[173] Fix | Delete
[174] Fix | Delete
#ifdef __cplusplus
[175] Fix | Delete
}
[176] Fix | Delete
#endif
[177] Fix | Delete
[178] Fix | Delete
#endif
[179] Fix | Delete
[180] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function