|
|
@@ -38,7 +38,7 @@ |
|
|
|
/** The size of a Goldilocks private key, in bytes. */ |
|
|
|
#define GOLDI_PRIVATE_KEY_BYTES (2*GOLDI_FIELD_BYTES + GOLDI_SYMKEY_BYTES) |
|
|
|
|
|
|
|
/** The size of a Goldilocks private key, in bytes. */ |
|
|
|
/** The size of a Goldilocks signature, in bytes. */ |
|
|
|
#define GOLDI_SIGNATURE_BYTES (2*GOLDI_FIELD_BYTES) |
|
|
|
|
|
|
|
/** |
|
|
@@ -206,7 +206,8 @@ goldilocks_shared_secret ( |
|
|
|
const struct goldilocks_private_key_t *my_privkey, |
|
|
|
const struct goldilocks_public_key_t *your_pubkey |
|
|
|
) __attribute__((warn_unused_result,nonnull(1,2,3),visibility ("default"))); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef GOLDI_IMPLEMENT_SIGNATURES |
|
|
|
/** |
|
|
|
* @brief Sign a message. |
|
|
|
* |
|
|
@@ -264,6 +265,7 @@ goldilocks_verify ( |
|
|
|
uint64_t message_len, |
|
|
|
const struct goldilocks_public_key_t *pubkey |
|
|
|
) __attribute__((warn_unused_result,nonnull(1,2,4),visibility ("default"))); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if GOLDI_IMPLEMENT_PRECOMPUTED_KEYS |
|
|
|
|
|
|
|