Function oqs_sys::sig::OQS_SIG_new

source ·
pub unsafe extern "C" fn OQS_SIG_new(
    method_name: *const c_char
) -> *mut OQS_SIG
Expand description

Constructs an OQS_SIG object for a particular algorithm.

Callers should always check whether the return value is NULL, which indicates either than an invalid algorithm name was provided, or that the requested algorithm was disabled at compile-time.

@param[in] method_name Name of the desired algorithm; one of the names in OQS_SIG_algs. @return An OQS_SIG for the particular algorithm, or NULL if the algorithm has been disabled at compile-time.