[][src]Function nss::pk11::context::create_context_by_sym_key

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

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