Enum biscuit::jwa::EncryptionOptions
source · Expand description
Options to be passed in while performing an encryption operation, if required by the algorithm.
Variants
None
No options are required. Most algorithms do not require additional parameters
AES_GCM
Fields
nonce: Vec<u8>
Initialization vector, or nonce for the AES GCM encryption. MUST BE 96 bits long.
AES GCM encryption operations should not reuse the nonce, or initialization vector. Users should keep track of previously used nonces and not reuse them. A simple way to keep track is to simply increment the nonce as a 96 bit counter.
Options for AES GCM encryption.
Implementations
sourceimpl EncryptionOptions
impl EncryptionOptions
sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Description of the type of key
Trait Implementations
sourceimpl Clone for EncryptionOptions
impl Clone for EncryptionOptions
sourcefn clone(&self) -> EncryptionOptions
fn clone(&self) -> EncryptionOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EncryptionOptions
impl Debug for EncryptionOptions
sourceimpl Default for EncryptionOptions
impl Default for EncryptionOptions
sourceimpl Display for EncryptionOptions
impl Display for EncryptionOptions
sourceimpl PartialEq<EncryptionOptions> for EncryptionOptions
impl PartialEq<EncryptionOptions> for EncryptionOptions
sourcefn eq(&self, other: &EncryptionOptions) -> bool
fn eq(&self, other: &EncryptionOptions) -> bool
impl Eq for EncryptionOptions
impl StructuralEq for EncryptionOptions
impl StructuralPartialEq for EncryptionOptions
Auto Trait Implementations
impl RefUnwindSafe for EncryptionOptions
impl Send for EncryptionOptions
impl Sync for EncryptionOptions
impl Unpin for EncryptionOptions
impl UnwindSafe for EncryptionOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.