Struct recrypt::api::TransformBlock [−]
pub struct TransformBlock { /* fields omitted */ }
Expand description
Describes a single transform. Multiple TransformBlocks
(in series) describe multi-hop transforms.
Implementations
impl TransformBlock
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>
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 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
impl Clone for TransformBlock
fn clone(&self) -> TransformBlock
fn clone(&self) -> TransformBlock
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for TransformBlock
impl Debug for TransformBlock
impl Hash for TransformBlock
impl Hash for TransformBlock
impl PartialEq<TransformBlock> for TransformBlock
impl PartialEq<TransformBlock> for TransformBlock
impl Copy for TransformBlock
impl Eq 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
Mutably borrows from an owned value. Read more