[−][src]Struct security_framework::os::macos::encrypt_transform::Builder    
pub struct Builder { /* fields omitted */ }A builder for encryption and decryption transform operations.
Methods
impl Builder[src] 
impl Builderpub fn new() -> Builder[src] 
pub fn new() -> BuilderCreates a new Builder with a default configuration.
pub fn padding(&mut self, padding: Padding) -> &mut Builder[src] 
pub fn padding(&mut self, padding: Padding) -> &mut BuilderSelects the padding scheme to use.
If not set, an appropriate scheme will be selected for you.
pub fn mode(&mut self, mode: Mode) -> &mut Builder[src] 
pub fn mode(&mut self, mode: Mode) -> &mut BuilderSelects the encryption mode to use.
If not set, an appropriate mode will be selected for you.
pub fn iv(&mut self, iv: CFData) -> &mut Builder[src] 
pub fn iv(&mut self, iv: CFData) -> &mut BuilderSets the initialization vector to use.
If not set, an appropriate value will be supplied for you.
pub fn encrypt(&self, key: &SecKey, data: &CFData) -> Result<CFData, CFError>[src] 
pub fn encrypt(&self, key: &SecKey, data: &CFData) -> Result<CFData, CFError>Encrypts data with a provided key.
pub fn decrypt(&self, key: &SecKey, data: &CFData) -> Result<CFData, CFError>[src] 
pub fn decrypt(&self, key: &SecKey, data: &CFData) -> Result<CFData, CFError>Decrypts data with a provided key.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src] 
impl<T> From for Timpl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, impl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API.  (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more