IronCoreLabs / recrypt-rs

A set of cryptographic primitives for building a multi-hop Proxy Re-encryption scheme, known as Transform Encryption.
https://crates.io/crates/recrypt
GNU Affero General Public License v3.0
144 stars 23 forks source link

Add Clone to Plaintext #99

Closed giarc3 closed 4 years ago

giarc3 commented 4 years ago

Need clone on plaintext for making a MockCryptoOps in ironoxide. We already have clone on PrivateKey, so it makes sense to be consistent here anyway.

coltfred commented 4 years ago

I think this makes sense. If someone needs to duplicate a plaintext making them go to bytes and back seems dumb. Thanks! Merge on green.

BobWall23 commented 4 years ago

Doesn't seem like making it easier to do something you most likely don't really want to do is the best idea, but if we already have it for private keys, consistency is reasonable.