Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
opcua.crypto.security_policies.SecurityPolicyBasic256 Class Reference
Inheritance diagram for opcua.crypto.security_policies.SecurityPolicyBasic256:
Inheritance graph
[legend]

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"
 

Detailed Description

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.

Constructor & Destructor Documentation

def opcua.crypto.security_policies.SecurityPolicyBasic256.__init__ (   self,
  server_cert,
  client_cert,
  client_pk,
  mode 
)

Definition at line 412 of file security_policies.py.

Member Function Documentation

def opcua.crypto.security_policies.SecurityPolicyBasic256.encrypt_asymmetric (   pubkey,
  data 
)
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.

Member Data Documentation

opcua.crypto.security_policies.SecurityPolicyBasic256.asymmetric_cryptography

Definition at line 418 of file security_policies.py.

string opcua.crypto.security_policies.SecurityPolicyBasic256.AsymmetricEncryptionURI = "http://www.w3.org/2001/04/xmlenc#rsa-oaep"
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.

int opcua.crypto.security_policies.SecurityPolicyBasic256.signature_key_size = 24
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.

int opcua.crypto.security_policies.SecurityPolicyBasic256.symmetric_key_size = 32
static

Definition at line 405 of file security_policies.py.

string opcua.crypto.security_policies.SecurityPolicyBasic256.URI = "http://opcfoundation.org/UA/SecurityPolicy#Basic256"
static

Definition at line 403 of file security_policies.py.


The documentation for this class was generated from the following file:


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Tue Jan 19 2021 03:12:44