pub enum AesgcmJweEncryption {
A128gcm,
A192gcm,
A256gcm,
}
Variants§
A128gcm
AES GCM using 128-bit key
A192gcm
AES GCM using 192-bit key
A256gcm
AES GCM using 256-bit key
Trait Implementations§
source§impl Clone for AesgcmJweEncryption
impl Clone for AesgcmJweEncryption
source§fn clone(&self) -> AesgcmJweEncryption
fn clone(&self) -> AesgcmJweEncryption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AesgcmJweEncryption
impl Debug for AesgcmJweEncryption
source§impl Deref for AesgcmJweEncryption
impl Deref for AesgcmJweEncryption
source§impl Display for AesgcmJweEncryption
impl Display for AesgcmJweEncryption
source§impl JweContentEncryption for AesgcmJweEncryption
impl JweContentEncryption for AesgcmJweEncryption
fn key_len(&self) -> usize
fn iv_len(&self) -> usize
fn encrypt( &self, key: &[u8], iv: Option<&[u8]>, message: &[u8], aad: &[u8] ) -> Result<(Vec<u8>, Option<Vec<u8>>), JoseError>
fn decrypt( &self, key: &[u8], iv: Option<&[u8]>, encrypted_message: &[u8], aad: &[u8], tag: Option<&[u8]> ) -> Result<Vec<u8>, JoseError>
fn box_clone(&self) -> Box<dyn JweContentEncryption>
source§impl PartialEq for AesgcmJweEncryption
impl PartialEq for AesgcmJweEncryption
source§fn eq(&self, other: &AesgcmJweEncryption) -> bool
fn eq(&self, other: &AesgcmJweEncryption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AesgcmJweEncryption
impl Eq for AesgcmJweEncryption
impl StructuralPartialEq for AesgcmJweEncryption
Auto Trait Implementations§
impl Freeze for AesgcmJweEncryption
impl RefUnwindSafe for AesgcmJweEncryption
impl Send for AesgcmJweEncryption
impl Sync for AesgcmJweEncryption
impl Unpin for AesgcmJweEncryption
impl UnwindSafe for AesgcmJweEncryption
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.