nss::pk11::context

Function create_context_by_sym_key

Source
pub fn create_context_by_sym_key(
    mechanism: CK_MECHANISM_TYPE,
    operation: CK_ATTRIBUTE_TYPE,
    sym_key: &SymKey,
) -> Result<Context>
Expand description

Safe wrapper around PK11_CreateContextBySymKey that de-allocates memory when the context goes out of scope.