Contains the internal API for Ed25519 key exchange operations. More...
#include "common.h"
Go to the source code of this file.
Functions | |
void | qsc_ed25519_keypair (uint8_t *publickey, uint8_t *privatekey, const uint8_t *seed) |
Combine an external public key with an internal private key to produce a shared secret. | |
int32_t | qsc_ed25519_sign (uint8_t *signedmsg, size_t *smsglen, const uint8_t *message, size_t msglen, const uint8_t *privatekey) |
Takes the message as input and returns an array containing the signature followed by the message. | |
int32_t | qsc_ed25519_verify (uint8_t *message, size_t *msglen, const uint8_t *signedmsg, size_t smsglen, const uint8_t *publickey) |
Verifies a signature-message pair with the public key. | |
Contains the internal API for Ed25519 key exchange operations.
This header defines internal functions for Ed25519 key exchange operations, including generating key pairs, signing messages, and verifying signature-message pairs.
void qsc_ed25519_keypair | ( | uint8_t * | publickey, |
uint8_t * | privatekey, | ||
const uint8_t * | seed ) |
Combine an external public key with an internal private key to produce a shared secret.
publickey | [uint8_t*] Pointer to the output public-key array. |
privatekey | [uint8_t*] Pointer to the output private-key array. |
seed | [const uint8_t*] Pointer to the random seed. |
int32_t qsc_ed25519_sign | ( | uint8_t * | signedmsg, |
size_t * | smsglen, | ||
const uint8_t * | message, | ||
size_t | msglen, | ||
const uint8_t * | privatekey ) |
Takes the message as input and returns an array containing the signature followed by the message.
signedmsg | [uint8_t*] Pointer to the signed message. |
smsglen | [size_t*] Pointer to the signed message length. |
message | [const uint8_t*] Pointer to the message to be signed. |
msglen | [size_t] The message length. |
privatekey | [const uint8_t*] Pointer to the private signature key. |
int32_t qsc_ed25519_verify | ( | uint8_t * | message, |
size_t * | msglen, | ||
const uint8_t * | signedmsg, | ||
size_t | smsglen, | ||
const uint8_t * | publickey ) |
Verifies a signature-message pair with the public key.
message | [uint8_t*] Pointer to the message to be verified. |
msglen | [size_t*] Pointer to the message length. |
signedmsg | [const uint8_t*] Pointer to the signed message. |
smsglen | [size_t] The signed message length. |
publickey | [const uint8_t*] Pointer to the public verification key. |