Struct rabbit::Rabbit [−][src]
pub struct Rabbit { /* fields omitted */ }
Expand description
Rabbit stream cipher state.
Implementations
Creates an empty rabbit state, then setups the given key
on it.
See RFC 4503 3.2. Initialization Vector (page 5).
Creates an empty rabbit state, then setups the given key
and iv
on it.
Restores master state, than setups initialization vector iv
on it.
Encrypts bytes of data
inplace.
Returns:
true
– OK;false
– max message length (16 * 2⁶⁴ bytes) was exceeded.data
is not affected.
Decrypts bytes of data
inplace (see Rabbit::encrypt_inplace
).