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

Function encrypt_basic256

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

Source from the content-addressed store, hash-verified

71 hashes.SHA256())
72
73def encrypt_basic256(public_key, data):
74 ciphertext = public_key.encrypt(
75 data,
76 padding.OAEP(
77 mgf=padding.MGF1(algorithm=hashes.SHA256()),
78 algorithm=hashes.SHA256(),
79 label=None)
80 )
81 return ciphertext
82
83
84def encrypt_rsa_oaep(public_key, data):

Callers

nothing calls this directly

Calls 1

encryptMethod · 0.45

Tested by

no test coverage detected