Trait security_framework::os::macos::key::SecKeyExt

source ·
pub trait SecKeyExt {
    // Required method
    fn from_data(
        key_type: KeyType,
        key_data: &CFData,
    ) -> Result<SecKey, CFError>;
}
Expand description

An extension trait adding OSX specific functionality to SecKey.

Required Methods§

source

fn from_data(key_type: KeyType, key_data: &CFData) -> Result<SecKey, CFError>

Creates a new SecKey from a buffer containing key data.

Object Safety§

This trait is not object safe.

Implementors§