[]Struct recrypt::api::TransformBlock

pub struct TransformBlock { /* fields omitted */ }

Describes a single transform. Multiple TransformBlocks (in series) describe multi-hop transforms.


impl TransformBlock

pub fn new(
    public_key: &PublicKey,
    encrypted_temp_key: &EncryptedTempKey,
    random_transform_public_key: &PublicKey,
    encrypted_random_transform_temp_key: &EncryptedTempKey
) -> Result<TransformBlock, RecryptErr>

Construct TransformBlock from constituent parts.

  • public_key - public key corresponding to private key used to encrypt the temp key
  • encrypted_temp_key - random value generated for the transform key and encrypted to the delegatee. Copied from the parent TransformKey
  • random_transform_public_key - public key corresponding to the private key used to encrypt the random re-encryption encrypted_random_transform_temp_key
  • encrypted_random_transform_temp_key - encrypted temp key value. Used to go from the transformed value to the encrypted value

pub fn public_key(&self) -> &PublicKey

pub fn encrypted_temp_key(&self) -> &EncryptedTempKey

pub fn random_transform_public_key(&self) -> &PublicKey

pub fn encrypted_random_transform_temp_key(&self) -> &EncryptedTempKey

Trait Implementations

impl Copy for TransformBlock

impl PartialEq<TransformBlock> for TransformBlock

fn ne(&self, other: &Rhs) -> bool

This method tests for !=.

impl Clone for TransformBlock

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for TransformBlock

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Same for T

type Output = T

Should always be Self