pub struct HybridCiphertext {
pub version: CryptoVersion,
pub ciphertext: String,
pub encrypted_key_rsa: String,
pub encrypted_key_kyber: String,
pub algorithm: String,
}Expand description
Hybrid encrypted data (RSA + Kyber + AES)
Fields§
§version: CryptoVersionCrypto version for forward compatibility
ciphertext: StringAES-256-GCM encrypted data (base64)
encrypted_key_rsa: StringSymmetric key encrypted with RSA-4096 (base64)
encrypted_key_kyber: StringSymmetric key encrypted with Kyber-1024 (base64)
algorithm: StringAlgorithm description for informational purposes
Implementations§
Trait Implementations§
Source§impl Clone for HybridCiphertext
impl Clone for HybridCiphertext
Source§fn clone(&self) -> HybridCiphertext
fn clone(&self) -> HybridCiphertext
Returns a duplicate 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 HybridCiphertext
impl Debug for HybridCiphertext
Source§impl<'de> Deserialize<'de> for HybridCiphertext
impl<'de> Deserialize<'de> for HybridCiphertext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HybridCiphertext
impl RefUnwindSafe for HybridCiphertext
impl Send for HybridCiphertext
impl Sync for HybridCiphertext
impl Unpin for HybridCiphertext
impl UnwindSafe for HybridCiphertext
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