INNER CODE UNIT · Rust
with_new_re_blocks
IronCoreLabs/recrypt-rs · src/internal/mod.rs:261
fn with_new_re_blocks(
&self,
new_blocks: NonEmptyVec<ReencryptionBlock<FP>>,
) -> ReencryptedValue<FP> {
ReencryptedValue {
ephemeral_public_key: self.ephemeral_public_key,
encrypted_message: self.encrypted_message,
auth_hash: self.auth_hash,
encryption_blocks: new_blocks,
}
}
}
#[derive(Clone, Copy, Debug)]
#[cfg_attr(test, derive(PartialEq, Eq))]
pub struct ReencryptionBlock<T: Field> {
pub public_key: PublicKey<T>,
pub encrypted_temp_key: Fp12Elem<T>,