[−]Struct recrypt::api::TransformBlock
Describes a single transform. Multiple TransformBlocks
(in series) describe multi-hop transforms.
Methods
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>
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 keyencrypted_temp_key
- random value generated for the transform key and encrypted to the delegatee. Copied from the parentTransformKey
random_transform_public_key
- public key corresponding to the private key used to encrypt the random re-encryptionencrypted_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 eq(&self, other: &TransformBlock) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for TransformBlock
fn clone(&self) -> TransformBlock
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TransformBlock
Auto Trait Implementations
impl Send for TransformBlock
impl Sync for TransformBlock
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self