Public Member Functions | |
def | __init__ (self, server_cert, client_cert, client_pk, mode) |
def | make_symmetric_key (self, nonce1, nonce2) |
Static Public Member Functions | |
def | encrypt_asymmetric (pubkey, data) |
Public Attributes | |
asymmetric_cryptography | |
client_certificate | |
Mode | |
server_certificate | |
symmetric_cryptography | |
Static Public Attributes | |
string | AsymmetricEncryptionURI = "http://www.w3.org/2001/04/xmlenc#rsa-oaep" |
int | signature_key_size = 24 |
int | symmetric_key_size = 32 |
string | URI = "http://opcfoundation.org/UA/SecurityPolicy#Basic256" |
Security Basic 256 A suite of algorithms that are for 256-Bit (32 bytes) encryption, algorithms include: - SymmetricSignatureAlgorithm - HmacSha1 (http://www.w3.org/2000/09/xmldsig#hmac-sha1) - SymmetricEncryptionAlgorithm - Aes256 (http://www.w3.org/2001/04/xmlenc#aes256-cbc) - AsymmetricSignatureAlgorithm - RsaSha1 (http://www.w3.org/2000/09/xmldsig#rsa-sha1) - AsymmetricKeyWrapAlgorithm - KwRsaOaep (http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p) - AsymmetricEncryptionAlgorithm - RsaOaep (http://www.w3.org/2001/04/xmlenc#rsa-oaep) - KeyDerivationAlgorithm - PSha1 (http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/dk/p_sha1) - DerivedSignatureKeyLength - 192 (24 bytes) - MinAsymmetricKeyLength - 1024 (128 bytes) - MaxAsymmetricKeyLength - 2048 (256 bytes) - CertificateSignatureAlgorithm - Sha1 If a certificate or any certificate in the chain is not signed with a hash that is Sha1 or stronger then the certificate shall be rejected.
Definition at line 377 of file security_policies.py.
def opcua.crypto.security_policies.SecurityPolicyBasic256.__init__ | ( | self, | |
server_cert, | |||
client_cert, | |||
client_pk, | |||
mode | |||
) |
Definition at line 412 of file security_policies.py.
|
static |
Definition at line 409 of file security_policies.py.
def opcua.crypto.security_policies.SecurityPolicyBasic256.make_symmetric_key | ( | self, | |
nonce1, | |||
nonce2 | |||
) |
Definition at line 431 of file security_policies.py.
opcua.crypto.security_policies.SecurityPolicyBasic256.asymmetric_cryptography |
Definition at line 418 of file security_policies.py.
|
static |
Definition at line 406 of file security_policies.py.
opcua.crypto.security_policies.SecurityPolicyBasic256.client_certificate |
Definition at line 429 of file security_policies.py.
opcua.crypto.security_policies.SecurityPolicyBasic256.Mode |
Definition at line 427 of file security_policies.py.
opcua.crypto.security_policies.SecurityPolicyBasic256.server_certificate |
Definition at line 428 of file security_policies.py.
|
static |
Definition at line 404 of file security_policies.py.
opcua.crypto.security_policies.SecurityPolicyBasic256.symmetric_cryptography |
Definition at line 426 of file security_policies.py.
|
static |
Definition at line 405 of file security_policies.py.
|
static |
Definition at line 403 of file security_policies.py.