pub struct ContextCheckpointEncryptionMetadataV1 {
pub algorithm: ContextCheckpointEncryptionAlgorithmV1,
pub key_ref: ProtocolReference,
pub ciphertext_digest: Sha256Digest,
}Expand description
Reference-only encryption metadata bound into the checkpoint digest.
Fields§
§algorithm: ContextCheckpointEncryptionAlgorithmV1Encryption algorithm used by a downstream private consumer.
key_ref: ProtocolReferenceNon-secret reference to an external key-management object.
ciphertext_digest: Sha256DigestDigest of the encrypted projection bytes.
Implementations§
Source§impl ContextCheckpointEncryptionMetadataV1
impl ContextCheckpointEncryptionMetadataV1
Sourcepub fn try_new(
algorithm: ContextCheckpointEncryptionAlgorithmV1,
key_ref: ProtocolReference,
ciphertext_digest: Sha256Digest,
) -> Result<Self, ValidationError>
pub fn try_new( algorithm: ContextCheckpointEncryptionAlgorithmV1, key_ref: ProtocolReference, ciphertext_digest: Sha256Digest, ) -> Result<Self, ValidationError>
Construct encryption metadata without accepting key material.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate the non-secret key reference and ciphertext identity.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextCheckpointEncryptionMetadataV1
impl<'de> Deserialize<'de> for ContextCheckpointEncryptionMetadataV1
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
impl Eq for ContextCheckpointEncryptionMetadataV1
impl StructuralPartialEq for ContextCheckpointEncryptionMetadataV1
Auto Trait Implementations§
impl Forget for ContextCheckpointEncryptionMetadataV1
impl Freeze for ContextCheckpointEncryptionMetadataV1
impl Move for ContextCheckpointEncryptionMetadataV1
impl RefUnwindSafe for ContextCheckpointEncryptionMetadataV1
impl Send for ContextCheckpointEncryptionMetadataV1
impl Sync for ContextCheckpointEncryptionMetadataV1
impl Unpin for ContextCheckpointEncryptionMetadataV1
impl UnsafeUnpin for ContextCheckpointEncryptionMetadataV1
impl UnwindSafe for ContextCheckpointEncryptionMetadataV1
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