ica_ed448_sign

Purpose

Signs the given input message with the private key contained in the context and returns the 114-byte ed448 signature.

Format


int ica_ed448_sign(ICA_ED448_CTX *ctx,
  unsigned char sig[114],
  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_ED448_CTX *ctx
Pointer to an ED448 context.
unsigned char sig[114]
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.