Functions | |
def | cipher_aes_cbc (key, init_vec) |
def | cipher_decrypt (cipher, data) |
def | cipher_encrypt (cipher, data) |
def | decrypt_rsa15 (private_key, data) |
def | decrypt_rsa_oaep (private_key, data) |
def | der_from_x509 (certificate) |
def | encrypt_basic256 (public_key, data) |
def | encrypt_rsa15 (public_key, data) |
def | encrypt_rsa_oaep (public_key, data) |
def | hmac_sha1 (key, message) |
def | load_certificate (path) |
def | load_private_key (path) |
def | p_sha1 (secret, seed, sizes=()) |
def | sha1_size () |
def | sign_sha1 (private_key, data) |
def | verify_sha1 (certificate, data, signature) |
def | x509_from_der (data) |
def | x509_name_to_string (name) |
def | x509_to_string (cert) |
Variables | |
cert = load_certificate("../examples/server_cert.pem") | |
rsa_privkey = load_private_key("../examples/mykey.pem") | |
def opcua.crypto.uacrypto.cipher_aes_cbc | ( | key, | |
init_vec | |||
) |
Definition at line 112 of file uacrypto.py.
def opcua.crypto.uacrypto.cipher_decrypt | ( | cipher, | |
data | |||
) |
Definition at line 121 of file uacrypto.py.
def opcua.crypto.uacrypto.cipher_encrypt | ( | cipher, | |
data | |||
) |
Definition at line 116 of file uacrypto.py.
def opcua.crypto.uacrypto.decrypt_rsa15 | ( | private_key, | |
data | |||
) |
Definition at line 104 of file uacrypto.py.
def opcua.crypto.uacrypto.decrypt_rsa_oaep | ( | private_key, | |
data | |||
) |
Definition at line 93 of file uacrypto.py.
def opcua.crypto.uacrypto.der_from_x509 | ( | certificate | ) |
Definition at line 39 of file uacrypto.py.
def opcua.crypto.uacrypto.encrypt_basic256 | ( | public_key, | |
data | |||
) |
Definition at line 63 of file uacrypto.py.
def opcua.crypto.uacrypto.encrypt_rsa15 | ( | public_key, | |
data | |||
) |
Definition at line 85 of file uacrypto.py.
def opcua.crypto.uacrypto.encrypt_rsa_oaep | ( | public_key, | |
data | |||
) |
Definition at line 74 of file uacrypto.py.
def opcua.crypto.uacrypto.hmac_sha1 | ( | key, | |
message | |||
) |
Definition at line 126 of file uacrypto.py.
def opcua.crypto.uacrypto.load_certificate | ( | path | ) |
Definition at line 15 of file uacrypto.py.
def opcua.crypto.uacrypto.load_private_key | ( | path | ) |
Definition at line 30 of file uacrypto.py.
def opcua.crypto.uacrypto.p_sha1 | ( | secret, | |
seed, | |||
sizes = () |
|||
) |
Derive one or more keys from secret and seed. (See specs part 6, 6.7.5 and RFC 2246 - TLS v1.0) Lengths of keys will match sizes argument
Definition at line 136 of file uacrypto.py.
def opcua.crypto.uacrypto.sha1_size | ( | ) |
Definition at line 132 of file uacrypto.py.
def opcua.crypto.uacrypto.sign_sha1 | ( | private_key, | |
data | |||
) |
Definition at line 45 of file uacrypto.py.
def opcua.crypto.uacrypto.verify_sha1 | ( | certificate, | |
data, | |||
signature | |||
) |
Definition at line 54 of file uacrypto.py.
def opcua.crypto.uacrypto.x509_from_der | ( | data | ) |
Definition at line 24 of file uacrypto.py.
def opcua.crypto.uacrypto.x509_name_to_string | ( | name | ) |
Definition at line 159 of file uacrypto.py.
def opcua.crypto.uacrypto.x509_to_string | ( | cert | ) |
Convert x509 certificate to human-readable string
Definition at line 164 of file uacrypto.py.
opcua.crypto.uacrypto.cert = load_certificate("../examples/server_cert.pem") |
Definition at line 178 of file uacrypto.py.
opcua.crypto.uacrypto.rsa_privkey = load_private_key("../examples/mykey.pem") |
Definition at line 180 of file uacrypto.py.