Struct openssl_kdf::Kdf [−][src]
Implementations
impl Kdf
[src]
pub fn new(type_: KdfType) -> Result<Self, ErrorStack>
[src]
pub fn reset(&self)
[src]
pub fn set_kb_mode(&self, mode: KdfKbMode) -> Result<i32, ErrorStack>
[src]
pub fn set_kb_mac_type(&self, mac_type: KdfMacType) -> Result<i32, ErrorStack>
[src]
pub fn set_salt(&self, salt: &[u8]) -> Result<i32, ErrorStack>
[src]
pub fn set_kb_info(&self, context: &[u8]) -> Result<i32, ErrorStack>
[src]
pub fn set_key(&self, key: &[u8]) -> Result<i32, ErrorStack>
[src]
pub fn set_digest(&self, digest: MessageDigest) -> Result<i32, ErrorStack>
[src]
pub fn derive(&self, key_len: usize) -> Result<Vec<u8>, ErrorStack>
[src]
Trait Implementations
impl AsRef<KdfRef> for Kdf
[src]
impl Borrow<KdfRef> for Kdf
[src]
impl Deref for Kdf
[src]
impl DerefMut for Kdf
[src]
impl Drop for Kdf
[src]
impl ForeignType for Kdf
[src]
type CType = KDF
The raw C type.
type Ref = KdfRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut KDF) -> Kdf
[src]
fn as_ptr(&self) -> *mut KDF
[src]
impl Send for Kdf
[src]
impl Sync for Kdf
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,