1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! Encryption key support use security_framework_sys::base::SecKeyRef; use security_framework_sys::key::SecKeyGetTypeID; use std::fmt; make_wrapper! { /// A type representing an encryption key. struct SecKey, SecKeyRef, SecKeyGetTypeID } unsafe impl Sync for SecKey {} unsafe impl Send for SecKey {} // FIXME impl fmt::Debug for SecKey { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!(fmt, "SecKey") } }