oqs_sys::rand

Function OQS_randombytes_switch_algorithm

source
pub unsafe extern "C" fn OQS_randombytes_switch_algorithm(
    algorithm: *const c_char,
) -> OQS_STATUS
Expand description

Switches OQS_randombytes to use the specified algorithm.

@warning In case you have set a custom algorithm using OQS_randombytes_custom_algorithm before, this function will overwrite it again. Hence, you have to set your custom algorithm again after calling this function.

@param[in] algorithm The name of the algorithm to use. @return OQS_SUCCESS if algorithm is a supported algorithm name, OQS_ERROR otherwise.