Skip to content

Commit 4fa6142

Browse files
cziebuhroroulet
authored andcommitted
Fix password decryption with Aes256Sha256RsaPss
1 parent 2d3394e commit 4fa6142

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

asyncua/server/internal_server.py

+2
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ def check_user_token(self, isession, token):
404404
raw_pw = uacrypto.decrypt_rsa15(self.private_key, password)
405405
elif token.EncryptionAlgorithm == "http://www.w3.org/2001/04/xmlenc#rsa-oaep":
406406
raw_pw = uacrypto.decrypt_rsa_oaep(self.private_key, password)
407+
elif token.EncryptionAlgorithm == "http://opcfoundation.org/UA/security/rsa-oaep-sha2-256":
408+
raw_pw = uacrypto.decrypt_rsa_oaep_sha256(self.private_key, password)
407409
else:
408410
self.logger.warning("Unknown password encoding %s", token.EncryptionAlgorithm)
409411
# raise # Should I raise a significant exception?

0 commit comments

Comments
 (0)