Skip to content

Commit

Permalink
Fix incorrect input type for crypto library
Browse files Browse the repository at this point in the history
This commit closes #752.
  • Loading branch information
sanssecours authored and oroulet committed Dec 15, 2021
1 parent 655a6e8 commit a17138c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncua/crypto/uacrypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def encrypt_rsa15(public_key, data):

def decrypt_rsa_oaep(private_key, data):
text = private_key.decrypt(
data,
bytes(data),
padding.OAEP(
mgf=padding.MGF1(algorithm=hashes.SHA1()),
algorithm=hashes.SHA1(),
Expand Down

0 comments on commit a17138c

Please sign in to comment.