Clarifying that we need (and use) the enc - not sig - public key for encrypting.

pull/157/head
jMyles 2018-02-12 13:00:14 -08:00
parent 0e57e44c03
commit 83344553d9
1 changed files with 3 additions and 4 deletions

View File

@ -89,10 +89,9 @@ class CryptoPower(object):
except KeyError: except KeyError:
raise NoEncryptingPower raise NoEncryptingPower
def encrypt_for(self, pubkey, plaintext): def encrypt_for(self, enc_pubkey, plaintext):
ciphertext, capsule = umbral.umbral.encrypt(pubkey, plaintext) ciphertext, capsule = umbral.umbral.encrypt(enc_pubkey, plaintext)
return MessageKit(ciphertext=ciphertext, capsule=capsule, return MessageKit(ciphertext=ciphertext, capsule=capsule)
alice_pubkey=pubkey)
class CryptoPowerUp(object): class CryptoPowerUp(object):