[][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]

pub fn new() -> Builder[src]

Creates a new Builder with a default configuration.

pub fn padding(&mut self, padding: Padding) -> &mut Builder[src]

Selects 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]

Selects 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]

Sets 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]

Encrypts data with a provided key.

pub fn decrypt(&self, key: &SecKey, data: &CFData) -> Result<CFData, CFError>[src]

Decrypts data with a provided key.

Trait Implementations

impl Default for Builder[src]

Auto Trait Implementations

impl !Send for Builder

impl !Sync for Builder

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.