From a17138c95c5002296745bdbd46696cbe823b4ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Schwaiger?= Date: Tue, 14 Dec 2021 12:48:02 +0100 Subject: [PATCH] Fix incorrect input type for crypto library This commit closes #752. --- asyncua/crypto/uacrypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncua/crypto/uacrypto.py b/asyncua/crypto/uacrypto.py index e090cf6f5..f933a6f73 100644 --- a/asyncua/crypto/uacrypto.py +++ b/asyncua/crypto/uacrypto.py @@ -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(),