Ed25519#

group crypto_ed25519

Sign/verify data using Ed25519.

Author

Alexandre Abadie alexandre.abadie@inria.fr

Copyright

Inria, 2023

Functions

size_t crypto_ed25519_sign(uint8_t *signature, const uint8_t *data, size_t data_len, const uint8_t *private_key, const uint8_t *public_key)#

Compute the ED25519 signature of a data.

Parameters:
  • signature[out] Computed signature

  • data[in] Input data

  • data_len[in] Input data length

  • private_key[in] Private key used to sign the data, must be 32 Bytes

  • public_key[in] Public key used to sign the data, must be 32 Bytes

Returns:

the size of the computed signature, must be 64

bool crypto_ed25519_verify(const uint8_t *signature, size_t signature_len, const uint8_t *data, size_t data_len, const uint8_t *public_key)#

Verify the ED25519 signature of a data.

Parameters:
  • signature[in] Signature

  • signature_len[in] Signature length

  • data[in] Input data

  • data_len[in] Input data length

  • public_key[in] Public key used to verify the data, must be 32 Bytes

Returns:

true if the signature could be verified, false otherwise