(&self)
| 261 | } |
| 262 | |
| 263 | pub fn batch_size(&self) -> usize { |
| 264 | self.encrypted.len() |
| 265 | } |
| 266 | |
| 267 | /// Return a OTP (One Time Pad) by hashing the shared secret along with the message index. |
| 268 | pub fn otp<D: FullDigest>(shared_secret: &G, msg_idx: u32) -> G::ScalarField { |