pub trait Transcryptable: Encrypted {
// Required method
fn transcrypt(&self, info: &TranscryptionInfo) -> Self;
}Expand description
A trait for encrypted types that can be transcrypted.
Transcryption combines domain change and encryption context change:
- For pseudonyms: applies both pseudonymization (reshuffle + rekey)
- For attributes: applies only rekeying (no reshuffle possible)
- For JSON values: recursively transcrypts all nested values
Required Methods§
Sourcefn transcrypt(&self, info: &TranscryptionInfo) -> Self
fn transcrypt(&self, info: &TranscryptionInfo) -> Self
Transcrypt this encrypted value from one domain and context to another.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Transcryptable for EncryptedPEPJSONValue
impl Transcryptable for LongEncryptedAttribute
impl Transcryptable for LongEncryptedPseudonym
impl Transcryptable for EncryptedRecord
impl Transcryptable for LongEncryptedRecord
Available on crate feature
long only.