Prviate reconstruct method.

pull/40/head
jMyles 2018-01-26 21:27:05 -08:00
parent 84b4f07d7a
commit feb967da72
1 changed files with 3 additions and 3 deletions

View File

@ -512,14 +512,14 @@ class PRE(object):
Returns the plaintext of the data.
"""
recp_pub_key = recp_priv_key.get_pub_key(self.params)
new_capsule = capsule.reconstruct()
capsule._reconstruct()
key = self._decapsulate_reencrypted(
recp_pub_key.point_key, recp_priv_key.bn_key,
sender_pub_key.point_key, new_capsule, capsule
sender_pub_key.point_key, capsule
)
dem = UmbralDEM(key)
plaintext = dem.decrypt(enc_data)
return plaintext
return plaintext