pub struct FF1 { /* private fields */ }
Expand description
The FF1 context structure
Implementations§
source§impl FF1
impl FF1
sourcepub fn new(
key: &[u8],
opt_t: Option<&[u8]>,
mintwk: usize,
maxtwk: usize,
radix: usize,
opt_alpha: Option<&str>
) -> Result<Self>
pub fn new( key: &[u8], opt_t: Option<&[u8]>, mintwk: usize, maxtwk: usize, radix: usize, opt_alpha: Option<&str> ) -> Result<Self>
Create a new FF1 context
The supplied key may be any of the lengths supported by AES.
The default tweak is optional. If supplied, it’s length
must satisfy the constraints set by the mintwk
and maxtwk
parameters. mintwk
and maxtwk
may both be set to 0 to
leave the tweak length unbounded.
The radix must be less than or equal to the number of characters in the supplied alphabet (or the default alphabet) if no alphabet is supplied to this function
Auto Trait Implementations§
impl RefUnwindSafe for FF1
impl Send for FF1
impl Sync for FF1
impl Unpin for FF1
impl UnwindSafe for FF1
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