Struct mls_rs_crypto_openssl::kdf::Kdf
source · pub struct Kdf { /* private fields */ }Implementations§
Methods from Deref<Target = MdRef>§
sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Returns the block size of the digest in bytes.
This corresponds to EVP_MD_block_size.
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Returns the size of the digest in bytes.
This corresponds to EVP_MD_size.
sourcepub fn type_(&self) -> Nid
pub fn type_(&self) -> Nid
Returns the Nid of the digest.
This corresponds to EVP_MD_type.
Trait Implementations§
source§impl KdfType for Kdf
impl KdfType for Kdf
source§fn expand(
&self,
prk: &[u8],
info: &[u8],
len: usize
) -> Result<Vec<u8>, KdfError>
fn expand( &self, prk: &[u8], info: &[u8], len: usize ) -> Result<Vec<u8>, KdfError>
Warning
The length of info can not exceed 1024 bytes when using the OpenSSL Engine due to underlying restrictions in OpenSSL. This function will throw an OpensslError in the event info is > 1024 bytes.
type Error = KdfError
fn extract(&self, salt: &[u8], ikm: &[u8]) -> Result<Vec<u8>, KdfError>
fn extract_size(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for Kdf
impl Send for Kdf
impl Sync for Kdf
impl Unpin for Kdf
impl !UnwindSafe for Kdf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more