Obtaining bytes used to instantiate Plaintext back
Closed this issue · 1 comments
UMR1352 commented
Hello,
I realized that if I try to invoke Plaintext::new(<some bytes>)
and then plaintext.bytes()
the two slices don't match. Plaintext probably needs to encode the input bytes in some way but is it possible somehow to get the original ones back?
coltfred commented
@UMR1352 This is only the case when you don't generate a correct plaintext. Plaintext in the context of a proxy re-encryption library is not the same as a plaintext for AES. See #170 (comment) and #125