mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 12:36:01 -07:00
Add a crypto_sign_SEEDBYTES macro/getter and associated ed25519 macro/getter
This commit is contained in:
parent
d061c6f338
commit
c7313f56a6
@ -7,6 +7,12 @@ crypto_sign_bytes(void)
|
|||||||
return crypto_sign_BYTES;
|
return crypto_sign_BYTES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t
|
||||||
|
crypto_sign_seedbytes(void)
|
||||||
|
{
|
||||||
|
return crypto_sign_SEEDBYTES;
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
crypto_sign_publickeybytes(void)
|
crypto_sign_publickeybytes(void)
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#define crypto_sign_keypair crypto_sign_ed25519_keypair
|
#define crypto_sign_keypair crypto_sign_ed25519_keypair
|
||||||
#define crypto_sign_seed_keypair crypto_sign_ed25519_seed_keypair
|
#define crypto_sign_seed_keypair crypto_sign_ed25519_seed_keypair
|
||||||
#define crypto_sign_BYTES crypto_sign_ed25519_BYTES
|
#define crypto_sign_BYTES crypto_sign_ed25519_BYTES
|
||||||
|
#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES
|
||||||
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
|
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
|
||||||
#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
|
#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
|
||||||
#define crypto_sign_PRIMITIVE "ed25519"
|
#define crypto_sign_PRIMITIVE "ed25519"
|
||||||
|
@ -5,6 +5,11 @@ crypto_sign_ed25519_bytes(void) {
|
|||||||
return crypto_sign_ed25519_BYTES;
|
return crypto_sign_ed25519_BYTES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t
|
||||||
|
crypto_sign_ed25519_seedbytes(void) {
|
||||||
|
return crypto_sign_ed25519_SEEDBYTES;
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
crypto_sign_ed25519_publickeybytes(void) {
|
crypto_sign_ed25519_publickeybytes(void) {
|
||||||
return crypto_sign_ed25519_PUBLICKEYBYTES;
|
return crypto_sign_ed25519_PUBLICKEYBYTES;
|
||||||
|
@ -21,6 +21,10 @@ extern "C" {
|
|||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_bytes(void);
|
size_t crypto_sign_bytes(void);
|
||||||
|
|
||||||
|
#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
|
size_t crypto_sign_seedbytes(void);
|
||||||
|
|
||||||
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
|
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
|
||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_publickeybytes(void);
|
size_t crypto_sign_publickeybytes(void);
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#define crypto_sign_ed25519_SECRETKEYBYTES 64U
|
#define crypto_sign_ed25519_SECRETKEYBYTES 64U
|
||||||
#define crypto_sign_ed25519_PUBLICKEYBYTES 32U
|
#define crypto_sign_ed25519_PUBLICKEYBYTES 32U
|
||||||
|
#define crypto_sign_ed25519_SEEDBYTES 32U
|
||||||
#define crypto_sign_ed25519_BYTES 64U
|
#define crypto_sign_ed25519_BYTES 64U
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -15,6 +16,9 @@ extern "C" {
|
|||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_ed25519_bytes(void);
|
size_t crypto_sign_ed25519_bytes(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
|
size_t crypto_sign_ed25519_seedbytes(void);
|
||||||
|
|
||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_ed25519_publickeybytes(void);
|
size_t crypto_sign_ed25519_publickeybytes(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user