pub struct FF3_1 { /* private fields */ }
Expand description
The FF3_1 context structure
Implementations§
source§impl FF3_1
impl FF3_1
sourcepub fn new(
key: &[u8],
opt_twk: Option<&[u8]>,
radix: usize,
opt_alpha: Option<&str>
) -> Result<Self>
pub fn new( key: &[u8], opt_twk: Option<&[u8]>, radix: usize, opt_alpha: Option<&str> ) -> Result<Self>
Create a new FF3-1 context
The supplied key may be any of the lengths supported by AES.
The default tweak is optional. If supplied, it’s length must be 7 bytes as per the algorithm specification. Those values are hardcoded within this function. Note that if the default tweak is not supplied, one must be supplied during the encrypt and decrypt operations
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 FF3_1
impl Send for FF3_1
impl Sync for FF3_1
impl Unpin for FF3_1
impl UnwindSafe for FF3_1
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