[−][src]Struct kerberos_crypto::Rc4Cipher
Cipher for the RC4 algorithm, used by the encryption type RC4_HMAC
Implementations
impl Rc4Cipher
[src]
Trait Implementations
impl KerberosCipher for Rc4Cipher
[src]
pub fn etype(&self) -> i32
[src]
pub fn generate_salt(&self, _: &str, _: &str) -> Vec<u8>
[src]
pub fn generate_key(&self, key: &[u8], _: &[u8]) -> Vec<u8>
[src]
pub fn generate_key_from_string(&self, password: &str, _: &[u8]) -> Vec<u8>
[src]
pub fn decrypt(
&self,
key: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Result<Vec<u8>>
[src]
&self,
key: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Result<Vec<u8>>
pub fn encrypt(&self, key: &[u8], key_usage: i32, plaintext: &[u8]) -> Vec<u8>
[src]
pub fn generate_key_and_decrypt(
&self,
raw_key: &[u8],
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Result<Vec<u8>>
[src]
&self,
raw_key: &[u8],
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Result<Vec<u8>>
pub fn generate_key_from_string_and_decrypt(
&self,
password: &str,
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Result<Vec<u8>>
[src]
&self,
password: &str,
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Result<Vec<u8>>
pub fn generate_key_and_encrypt(
&self,
raw_key: &[u8],
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Vec<u8>
[src]
&self,
raw_key: &[u8],
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Vec<u8>
pub fn generate_key_from_string_and_encrypt(
&self,
password: &str,
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Vec<u8>
[src]
&self,
password: &str,
salt: &[u8],
key_usage: i32,
ciphertext: &[u8]
) -> Vec<u8>
Auto Trait Implementations
impl RefUnwindSafe for Rc4Cipher
[src]
impl Send for Rc4Cipher
[src]
impl Sync for Rc4Cipher
[src]
impl Unpin for Rc4Cipher
[src]
impl UnwindSafe for Rc4Cipher
[src]
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> 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.
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>,