oqs_sys::sig

Function OQS_SIG_verify_with_ctx_str

source
pub unsafe extern "C" fn OQS_SIG_verify_with_ctx_str(
    sig: *const OQS_SIG,
    message: *const u8,
    message_len: usize,
    signature: *const u8,
    signature_len: usize,
    ctx_str: *const u8,
    ctx_str_len: usize,
    public_key: *const u8,
) -> OQS_STATUS
Expand description

Signature verification algorithm, with custom context string.

@param[in] sig The OQS_SIG object representing the signature scheme. @param[in] message The message represented as a byte string. @param[in] message_len The length of the message. @param[in] signature The signature on the message represented as a byte string. @param[in] signature_len The length of the signature. @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] public_key The public key represented as a byte string. @return OQS_SUCCESS or OQS_ERROR