[−][src]Struct security_framework::os::macos::encrypt_transform::Builder
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,