[−][src]Struct enprot::crypto::CryptoPolicyDefault
Methods
impl CryptoPolicyDefault
[src]
pub const DEFAULT_PBKDF_MSEC: u32
[src]
Trait Implementations
impl CryptoPolicy for CryptoPolicyDefault
[src]
fn check_hash(&self, _alg: &str) -> Result<(), &'static str>
[src]
fn check_pbkdf(
&self,
_alg: &str,
_key_len: usize,
_password: &str,
_salt: &[u8],
_params: &BTreeMap<String, usize>
) -> Result<(), &'static str>
[src]
&self,
_alg: &str,
_key_len: usize,
_password: &str,
_salt: &[u8],
_params: &BTreeMap<String, usize>
) -> Result<(), &'static str>
fn check_cipher(
&self,
_alg: &str,
_key: &[u8],
_iv: &[u8],
_ad: &[u8]
) -> Result<(), &'static str>
[src]
&self,
_alg: &str,
_key: &[u8],
_iv: &[u8],
_ad: &[u8]
) -> Result<(), &'static str>
fn default_pbkdf_alg(&self) -> String
[src]
fn default_pbkdf_salt_length(&self) -> usize
[src]
fn default_pbkdf_millis(&self) -> u32
[src]
fn default_cipher_alg(&self) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for CryptoPolicyDefault
impl Send for CryptoPolicyDefault
impl Sync for CryptoPolicyDefault
impl Unpin for CryptoPolicyDefault
impl UnwindSafe for CryptoPolicyDefault
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,
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> Same<T> for T
type Output = T
Should always be Self
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.
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>,