Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/sodium
File: crypto_sign.h
#ifndef crypto_sign_H
[0] Fix | Delete
#define crypto_sign_H
[1] Fix | Delete
[2] Fix | Delete
/*
[3] Fix | Delete
* THREAD SAFETY: crypto_sign_keypair() is thread-safe,
[4] Fix | Delete
* provided that sodium_init() was called before.
[5] Fix | Delete
*
[6] Fix | Delete
* Other functions, including crypto_sign_seed_keypair() are always thread-safe.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
#include <stddef.h>
[10] Fix | Delete
[11] Fix | Delete
#include "crypto_sign_ed25519.h"
[12] Fix | Delete
#include "export.h"
[13] Fix | Delete
[14] Fix | Delete
#ifdef __cplusplus
[15] Fix | Delete
# ifdef __GNUC__
[16] Fix | Delete
# pragma GCC diagnostic ignored "-Wlong-long"
[17] Fix | Delete
# endif
[18] Fix | Delete
extern "C" {
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
typedef crypto_sign_ed25519ph_state crypto_sign_state;
[22] Fix | Delete
[23] Fix | Delete
SODIUM_EXPORT
[24] Fix | Delete
size_t crypto_sign_statebytes(void);
[25] Fix | Delete
[26] Fix | Delete
#define crypto_sign_BYTES crypto_sign_ed25519_BYTES
[27] Fix | Delete
SODIUM_EXPORT
[28] Fix | Delete
size_t crypto_sign_bytes(void);
[29] Fix | Delete
[30] Fix | Delete
#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES
[31] Fix | Delete
SODIUM_EXPORT
[32] Fix | Delete
size_t crypto_sign_seedbytes(void);
[33] Fix | Delete
[34] Fix | Delete
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
[35] Fix | Delete
SODIUM_EXPORT
[36] Fix | Delete
size_t crypto_sign_publickeybytes(void);
[37] Fix | Delete
[38] Fix | Delete
#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
[39] Fix | Delete
SODIUM_EXPORT
[40] Fix | Delete
size_t crypto_sign_secretkeybytes(void);
[41] Fix | Delete
[42] Fix | Delete
#define crypto_sign_MESSAGEBYTES_MAX crypto_sign_ed25519_MESSAGEBYTES_MAX
[43] Fix | Delete
SODIUM_EXPORT
[44] Fix | Delete
size_t crypto_sign_messagebytes_max(void);
[45] Fix | Delete
[46] Fix | Delete
#define crypto_sign_PRIMITIVE "ed25519"
[47] Fix | Delete
SODIUM_EXPORT
[48] Fix | Delete
const char *crypto_sign_primitive(void);
[49] Fix | Delete
[50] Fix | Delete
SODIUM_EXPORT
[51] Fix | Delete
int crypto_sign_seed_keypair(unsigned char *pk, unsigned char *sk,
[52] Fix | Delete
const unsigned char *seed)
[53] Fix | Delete
__attribute__ ((nonnull));
[54] Fix | Delete
[55] Fix | Delete
SODIUM_EXPORT
[56] Fix | Delete
int crypto_sign_keypair(unsigned char *pk, unsigned char *sk)
[57] Fix | Delete
__attribute__ ((nonnull));
[58] Fix | Delete
[59] Fix | Delete
SODIUM_EXPORT
[60] Fix | Delete
int crypto_sign(unsigned char *sm, unsigned long long *smlen_p,
[61] Fix | Delete
const unsigned char *m, unsigned long long mlen,
[62] Fix | Delete
const unsigned char *sk) __attribute__ ((nonnull(1, 5)));
[63] Fix | Delete
[64] Fix | Delete
SODIUM_EXPORT
[65] Fix | Delete
int crypto_sign_open(unsigned char *m, unsigned long long *mlen_p,
[66] Fix | Delete
const unsigned char *sm, unsigned long long smlen,
[67] Fix | Delete
const unsigned char *pk)
[68] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5)));
[69] Fix | Delete
[70] Fix | Delete
SODIUM_EXPORT
[71] Fix | Delete
int crypto_sign_detached(unsigned char *sig, unsigned long long *siglen_p,
[72] Fix | Delete
const unsigned char *m, unsigned long long mlen,
[73] Fix | Delete
const unsigned char *sk) __attribute__ ((nonnull(1, 5)));
[74] Fix | Delete
[75] Fix | Delete
SODIUM_EXPORT
[76] Fix | Delete
int crypto_sign_verify_detached(const unsigned char *sig,
[77] Fix | Delete
const unsigned char *m,
[78] Fix | Delete
unsigned long long mlen,
[79] Fix | Delete
const unsigned char *pk)
[80] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4)));
[81] Fix | Delete
[82] Fix | Delete
SODIUM_EXPORT
[83] Fix | Delete
int crypto_sign_init(crypto_sign_state *state);
[84] Fix | Delete
[85] Fix | Delete
SODIUM_EXPORT
[86] Fix | Delete
int crypto_sign_update(crypto_sign_state *state,
[87] Fix | Delete
const unsigned char *m, unsigned long long mlen)
[88] Fix | Delete
__attribute__ ((nonnull(1)));
[89] Fix | Delete
[90] Fix | Delete
SODIUM_EXPORT
[91] Fix | Delete
int crypto_sign_final_create(crypto_sign_state *state, unsigned char *sig,
[92] Fix | Delete
unsigned long long *siglen_p,
[93] Fix | Delete
const unsigned char *sk)
[94] Fix | Delete
__attribute__ ((nonnull(1, 2, 4)));
[95] Fix | Delete
[96] Fix | Delete
SODIUM_EXPORT
[97] Fix | Delete
int crypto_sign_final_verify(crypto_sign_state *state, const unsigned char *sig,
[98] Fix | Delete
const unsigned char *pk)
[99] Fix | Delete
__attribute__ ((warn_unused_result)) __attribute__ ((nonnull));
[100] Fix | Delete
[101] Fix | Delete
#ifdef __cplusplus
[102] Fix | Delete
}
[103] Fix | Delete
#endif
[104] Fix | Delete
[105] Fix | Delete
#endif
[106] Fix | Delete
[107] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function