Function bearssl::br_x509_knownkey_init_ec [] [src]

pub unsafe extern "C" fn br_x509_knownkey_init_ec(
    ctx: *mut br_x509_knownkey_context,
    pk: *const br_ec_public_key,
    usages: c_uint
)

\brief Initialize a "known key" X.509 engine with a known EC public key.

The usages parameter indicates the allowed key usages for that key (BR_KEYTYPE_KEYX and/or BR_KEYTYPE_SIGN).

The provided pointers are linked in, not copied, so they must remain valid while the public key may be in usage.

\param ctx context to initialise. \param pk known public key. \param usages allowed key usages.