MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / encrypt_rsa_oaep

Function encrypt_rsa_oaep

opcua/crypto/uacrypto.py:84–92  ·  view source on GitHub ↗
(public_key, data)

Source from the content-addressed store, hash-verified

82
83
84def encrypt_rsa_oaep(public_key, data):
85 ciphertext = public_key.encrypt(
86 data,
87 padding.OAEP(
88 mgf=padding.MGF1(algorithm=hashes.SHA1()),
89 algorithm=hashes.SHA1(),
90 label=None)
91 )
92 return ciphertext
93
94
95def encrypt_rsa15(public_key, data):

Callers

nothing calls this directly

Calls 1

encryptMethod · 0.45

Tested by

no test coverage detected