pub enum EncryptionMode {
CBC,
ECB,
GCM,
}Expand description
AES block mode selected in Bark’s “Push Encryption” settings.
Bark supports CBC, ECB, and GCM. CBC uses PKCS#7 padding, ECB uses PKCS#7 padding and no IV, and GCM uses CryptoSwift’s combined mode, where the authentication tag is appended to the ciphertext before Base64 encoding.
Variants§
CBC
AES-CBC with a 16-byte IV and PKCS#7 padding.
ECB
AES-ECB with no IV and PKCS#7 padding.
GCM
AES-GCM with a 12-byte nonce/IV and a combined authentication tag.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionMode
impl Clone for EncryptionMode
Source§fn clone(&self) -> EncryptionMode
fn clone(&self) -> EncryptionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncryptionMode
Source§impl Debug for EncryptionMode
impl Debug for EncryptionMode
impl Eq for EncryptionMode
Source§impl PartialEq for EncryptionMode
impl PartialEq for EncryptionMode
impl StructuralPartialEq for EncryptionMode
Auto Trait Implementations§
impl Freeze for EncryptionMode
impl RefUnwindSafe for EncryptionMode
impl Send for EncryptionMode
impl Sync for EncryptionMode
impl Unpin for EncryptionMode
impl UnsafeUnpin for EncryptionMode
impl UnwindSafe for EncryptionMode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.