Enum recrypt::api_480::EncryptedValue [−]
pub enum EncryptedValue {
EncryptedOnceValue {
ephemeral_public_key: PublicKey,
encrypted_message: EncryptedMessage,
auth_hash: AuthHash,
public_signing_key: PublicSigningKey,
signature: Ed25519Signature,
},
TransformedValue {
ephemeral_public_key: PublicKey,
encrypted_message: EncryptedMessage,
auth_hash: AuthHash,
transform_blocks: NonEmptyVec<TransformBlock>,
public_signing_key: PublicSigningKey,
signature: Ed25519Signature,
},
}
Expand description
Encrypted value that is either initially encrypted or one that has been transformed one or more times
Variants
EncryptedOnceValue
Fields
ephemeral_public_key: PublicKey
encrypted_message: EncryptedMessage
auth_hash: AuthHash
public_signing_key: PublicSigningKey
signature: Ed25519Signature
Value which has been encrypted, but not transformed
ephemeral_public_key
- public key of the ephemeral private key that was used to encrypt
encrypted_message
- encrypted symmetric key
auth_hash
- authentication hash for the Plaintext
public_signing_key
- public portion of Ed25519 signing key
signature
- Ed25519-produced signature
TransformedValue
Fields
ephemeral_public_key: PublicKey
encrypted_message: EncryptedMessage
auth_hash: AuthHash
transform_blocks: NonEmptyVec<TransformBlock>
public_signing_key: PublicSigningKey
signature: Ed25519Signature
Value which has been encrypted and then transformed n times for n > 0.
ephemeral_public_key
- public key of the ephemeral private key that was used to encrypt
encrypted_message
- encrypted symmetric key
auth_hash
- authentication hash for the Plaintext
transform_blocks
- information used in transformation process. One entry for each transform.
public_signing_key
- public portion of Ed25519 signing key
signature
- Ed25519-produced signature
Trait Implementations
impl Clone for EncryptedValue
impl Clone for EncryptedValue
fn clone(&self) -> EncryptedValue
fn clone(&self) -> EncryptedValue
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for EncryptedValue
impl Debug for EncryptedValue
impl PartialEq<EncryptedValue> for EncryptedValue
impl PartialEq<EncryptedValue> for EncryptedValue
fn eq(&self, other: &EncryptedValue) -> bool
fn eq(&self, other: &EncryptedValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &EncryptedValue) -> bool
fn ne(&self, other: &EncryptedValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for EncryptedValue
Auto Trait Implementations
impl RefUnwindSafe for EncryptedValue
impl Send for EncryptedValue
impl Sync for EncryptedValue
impl Unpin for EncryptedValue
impl UnwindSafe for EncryptedValue
Blanket Implementations
Mutably borrows from an owned value. Read more