ica_ed25519_sign
Purpose
Signs the given input message with the private key contained in the context and returns the 64-byte ed25519 signature.
Format
int ica_ed25519_sign(ICA_ED25519_CTX *ctx,
unsigned char sig[64],
const unsigned char *msg,
size_t msglen);
Required hardware support
The processor must have the MSA9 facility (STFLE bit 155) installed which is available starting with IBM z15® systems.
Parameters
- ICA_ED25519_CTX *ctx
- Pointer to an ED25519 context.
- unsigned char sig[64]
- Buffer containing the returned signature.
- const unsigned char *msg
- Buffer containing the input message to be signed.
- size_t msglen
- Length in bytes of the input message to be signed.
Return codes
- 0
- Success
- -1
- If at least one invalid parameter is given or MSA9 is not available.
For return codes indicating exceptions, see Return codes.