|
static const FixedBlock< PUBLIC_BYTES > | base_point () DECAF_NOEXCEPT |
| Base point for a scalar multiplication.
|
|
static SecureBuffer | shared_secret (const FixedBlock< PUBLIC_BYTES > &pk, const FixedBlock< PRIVATE_BYTES > &scalar) |
| Calculate and return a shared secret with public key. More...
|
|
static decaf_error_t DECAF_WARN_UNUSED | shared_secret_noexcept (FixedBuffer< PUBLIC_BYTES > &out, const FixedBlock< PUBLIC_BYTES > &pk, const FixedBlock< PRIVATE_BYTES > &scalar) DECAF_NOEXCEPT |
| Calculate and write into out a shared secret with public key, noexcept version. More...
|
|
static SecureBuffer | DECAF_DEPRECATED ("Renamed to derive_public_key") generate_key(const FixedBlock< PRIVATE_BYTES > &scalar) |
| Calculate and return a public key; equivalent to shared_secret(base_point(),scalar) but possibly faster. More...
|
|
static SecureBuffer | derive_public_key (const FixedBlock< PRIVATE_BYTES > &scalar) |
| Calculate and return a public key; equivalent to shared_secret(base_point(),scalar) but possibly faster.
|
|
static void | derive_public_key_noexcept (FixedBuffer< PUBLIC_BYTES > &out, const FixedBlock< PRIVATE_BYTES > &scalar) DECAF_NOEXCEPT |
| Calculate and return a public key into a fixed buffer; equivalent to shared_secret(base_point(),scalar) but possibly faster.
|
|
static void | generate_key_noexcept (FixedBuffer< PUBLIC_BYTES > &out, const FixedBlock< PRIVATE_BYTES > &scalar) DECAF_NOEXCEPT |
| Calculate and return a public key into a fixed buffer; equivalent to shared_secret(base_point(),scalar) but possibly faster. More...
|
|
X-only Diffie-Hellman ladder functions.