oqs_sys::sig

Function OQS_SIG_keypair

source
pub unsafe extern "C" fn OQS_SIG_keypair(
    sig: *const OQS_SIG,
    public_key: *mut u8,
    secret_key: *mut u8,
) -> OQS_STATUS
Expand description

Keypair generation algorithm.

Caller is responsible for allocating sufficient memory for public_key and secret_key, 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] public_key The public key represented as a byte string. @param[out] secret_key The secret key represented as a byte string. @return OQS_SUCCESS or OQS_ERROR