[][src]Trait security_framework::os::macos::key::SecKeyExt

pub trait SecKeyExt {
    fn from_data(
        key_type: KeyType,
        key_data: &CFData
    ) -> Result<SecKey, CFError>; }

An extension trait adding OSX specific functionality to SecKey.

Required methods

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

Creates a new SecKey from a buffer containing key data.

Loading content...

Implementors

impl SecKeyExt for SecKey[src]

Loading content...