Skip to content

Commit

Permalink
Prviate reconstruct method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jMyles committed Jan 27, 2018
1 parent 84b4f07 commit feb967d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions umbral/umbral.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,14 +512,14 @@ def decrypt_reencrypted(self, recp_priv_key: UmbralPrivateKey,
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

0 comments on commit feb967d

Please sign in to comment.