Skip to main content

Transcryptable

Trait Transcryptable 

Source
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§

Source

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§