[][src]Function nss::pk11::sym_key::import_sym_key

pub(crate) fn import_sym_key(
    mechanism: CK_MECHANISM_TYPE,
    operation: CK_ATTRIBUTE_TYPE,
    buf: &[u8]
) -> Result<SymKey>

Safe wrapper around PK11_ImportSymKey that de-allocates memory when the key goes out of scope.