[−]Struct recrypt::api_480::TransformBlock
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>
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 Clone for TransformBlock
pub fn clone(&self) -> TransformBlock
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TransformBlock
impl Debug for TransformBlock
impl Eq for TransformBlock
impl Hash for TransformBlock
pub fn hash<__H>(&self, __state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TransformBlock> for TransformBlock
Auto Trait Implementations
impl RefUnwindSafe for TransformBlock
impl Send for TransformBlock
impl Sync for TransformBlock
impl Unpin for TransformBlock
impl UnwindSafe for TransformBlock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,