pub unsafe extern "C" fn OQS_SIG_sign_with_ctx_str(
sig: *const OQS_SIG,
signature: *mut u8,
signature_len: *mut usize,
message: *const u8,
message_len: usize,
ctx_str: *const u8,
ctx_str_len: usize,
secret_key: *const u8,
) -> OQS_STATUS
Expand description
Signature generation algorithm, with custom context string.
Caller is responsible for allocating sufficient memory for signature
,
based on the length_*
members in this object or the per-scheme
compile-time macros OQS_SIG_*_length_*
.
@param[in] sig The OQS_SIG object representing the signature scheme.
@param[out] signature The signature on the message represented as a byte string.
@param[out] signature_len The actual length of the signature. May be smaller than length_signature
for some algorithms since some algorithms have variable length signatures.
@param[in] message The message to sign represented as a byte string.
@param[in] message_len The length of the message to sign.
@param[in] ctx_str The context string used for the signature. This value can be set to NULL if a context string is not needed (i.e., for algorithms that do not support context strings or if an empty context string is used).
@param[in] ctx_str_len The context string used for the signature. This value can be set to 0 if a context string is not needed (i.e., for algorithms that do not support context strings or if an empty context string is used).
@param[in] secret_key The secret key represented as a byte string.
@return OQS_SUCCESS or OQS_ERROR