mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Merge pull request #55 from dsheets/seedbytes
Add a crypto_sign_SEEDBYTES macro/getter and associated ed25519 macro/getter
This commit is contained in:
commit
eee25f0864
@ -7,6 +7,12 @@ crypto_sign_bytes(void)
|
||||
return crypto_sign_BYTES;
|
||||
}
|
||||
|
||||
size_t
|
||||
crypto_sign_seedbytes(void)
|
||||
{
|
||||
return crypto_sign_SEEDBYTES;
|
||||
}
|
||||
|
||||
size_t
|
||||
crypto_sign_publickeybytes(void)
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
#define crypto_sign_keypair crypto_sign_ed25519_keypair
|
||||
#define crypto_sign_seed_keypair crypto_sign_ed25519_seed_keypair
|
||||
#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_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
|
||||
#define crypto_sign_PRIMITIVE "ed25519"
|
||||
|
@ -5,6 +5,11 @@ crypto_sign_ed25519_bytes(void) {
|
||||
return crypto_sign_ed25519_BYTES;
|
||||
}
|
||||
|
||||
size_t
|
||||
crypto_sign_ed25519_seedbytes(void) {
|
||||
return crypto_sign_ed25519_SEEDBYTES;
|
||||
}
|
||||
|
||||
size_t
|
||||
crypto_sign_ed25519_publickeybytes(void) {
|
||||
return crypto_sign_ed25519_PUBLICKEYBYTES;
|
||||
|
@ -21,6 +21,10 @@ extern "C" {
|
||||
SODIUM_EXPORT
|
||||
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
|
||||
SODIUM_EXPORT
|
||||
size_t crypto_sign_publickeybytes(void);
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#define crypto_sign_ed25519_SECRETKEYBYTES 64U
|
||||
#define crypto_sign_ed25519_PUBLICKEYBYTES 32U
|
||||
#define crypto_sign_ed25519_SEEDBYTES 32U
|
||||
#define crypto_sign_ed25519_BYTES 64U
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -15,6 +16,9 @@ extern "C" {
|
||||
SODIUM_EXPORT
|
||||
size_t crypto_sign_ed25519_bytes(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
size_t crypto_sign_ed25519_seedbytes(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
size_t crypto_sign_ed25519_publickeybytes(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user