[]Struct recrypt::api_480::TransformBlock

pub struct TransformBlock { /* fields omitted */ }

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

Implementations

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 Clone for TransformBlock

impl Copy for TransformBlock

impl Debug for TransformBlock

impl Eq for TransformBlock

impl Hash for TransformBlock

impl PartialEq<TransformBlock> for TransformBlock

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,