[−][src]Struct lastpass::DecryptionKey
An AES-256 key for encrypting or decrypting things.
Methods
impl DecryptionKey[src]
pub const LEN: usize[src]
pub const fn from_raw(key: [u8; 32]) -> Self[src]
pub fn from_base64<S: AsRef<[u8]>>(key: S) -> Result<Self, DecodeError>[src]
pub fn from_hex<S: AsRef<[u8]>>(key: S) -> Result<Self, FromHexError>[src]
pub fn calculate(username: &str, password: &str, iterations: usize) -> Self[src]
pub fn decrypt(&self, ciphertext: &[u8]) -> Result<Vec<u8>, DecryptionError>[src]
pub fn decrypt_base64(
&self,
ciphertext: &str
) -> Result<Vec<u8>, DecryptionError>[src]
&self,
ciphertext: &str
) -> Result<Vec<u8>, DecryptionError>
Trait Implementations
impl AsRef<[u8]> for DecryptionKey[src]
impl Clone for DecryptionKey[src]
fn clone(&self) -> DecryptionKey[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for DecryptionKey[src]
impl Debug for DecryptionKey[src]
impl Deref for DecryptionKey[src]
impl FromStr for DecryptionKey[src]
type Err = DecodeError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl PartialEq<DecryptionKey> for DecryptionKey[src]
fn eq(&self, other: &DecryptionKey) -> bool[src]
fn ne(&self, other: &DecryptionKey) -> bool[src]
impl<T> PartialEq<T> for DecryptionKey where
T: PartialEq<[u8]>, [src]
T: PartialEq<[u8]>,
impl StructuralPartialEq for DecryptionKey[src]
Auto Trait Implementations
impl RefUnwindSafe for DecryptionKey
impl Send for DecryptionKey
impl Sync for DecryptionKey
impl Unpin for DecryptionKey
impl UnwindSafe for DecryptionKey
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[src]
type Output = T
Should always be Self
impl<T> ToHex for T where
T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,