Enums ¶ RtsCryptoID (Enum) RtsCryptoKeyType (Enum) RtsCryptoType (Enum)
CmpCrypto Interfaces ¶ Enums RtsCryptoID (Enum) RtsCryptoKeyType (Enum) RtsCryptoType (Enum) Structs RtsByteString (Struct) RtsCryptoKey (Struct) RtsScryptParameter (Struct) Unions RtsCryptoKeyStorage (Union) RtsKdfParameter (Union)
RtsCryptoID (ENUM) ¶ TYPE RtsCryptoID : Attributes: qualified_only InOut: Name Initial Comment AES_128_CBC 16#1001 AES 128 bit key in CBC mode AES_128_CFB 16#1002 AES 128 bit key in CFB mode AES_256_CBC 16#1003 AES 256 bit key in CBC mode DES_CBC 16#1004 DES 64 bit key in CBC mode AES_256_CTR 16#1005 AES 256 bit key in CTR mode AES_128_CTR 16#1006 AES 128 bit key in CTR mode RSA 16#2001 Plain RSA asymmetric encryption. Not recommended. RSA_OAEP_PADDING 16#2002 RSA asymmetric encryption with OAEP (SHA1) padding. RSA_PKCS1_V15_PADDING 16#2003 RSA asymmetric encryption with #PKCS1 v1.5 padding. Not recommended. RSA_OAEP_SHA256_PADDING 16#2004 RSA asymmetric encryption with OAEP (SHA-256) padding. HASH_MD5 16#3001 MD5 checksum. Not cryptographically safe. HASH_SHA1 16#3002 SHA1 checksum. Not cryptographically safe. HASH_SHA224 16#3003 SHA-224 checksum. HASH_SHA256 16#3004 SHA-256 checksum. HASH_SHA384 16#3005 SHA-384 checksum. HASH_SHA512 16#3006 SHA-512 checksum. HMAC_MD5 16#4001 HMAC based on MD5. Not cryptographically safe. HMAC_SHA1 16#4002 HMAC based on SHA1. Not cryptographically safe. HMAC_SHA224 16#4003 HMAC based on SHA-224. HMAC_SHA256 16#4004 HMAC based on SHA-256. HMAC_SHA384 16#4005 HMAC based on SHA-384. HMAC_SHA512 16#4006 HMAC based on SHA-512. RSA_PKCS1_V15_SHA1 16#5001 Asymmetric signature based on RSA, SHA1 and #PKCS1 v1.5 padding. Not recommended. RSA_PKCS1_V15_SHA256 16#5002 Asymmetric signature based on RSA, SHA-256 and #PKCS1 v1.5 padding. Not recommended. RSA_PSS_SHA256 16#5005 Asymmetric signature based on RSA, SHA-256 and PSS padding. KDF_PSHA1 16#6001 TLS key derivation function based on SHA1. Not recommeded for key generation based on passwords. KDF_PSHA256 16#6002 TLS key derivation function based on SHA-256. Not recommeded for key generation based on passwords. KDF_SCRYPT 16#6003 Scrypt key derivation function. Recommeded to expand passwords into cryptographic keys, or to hash passwords. ECDH_X25519 16#7001 X25519 elliptic curce key exchange protocol
RtsCryptoKeyType (ENUM) ¶ TYPE RtsCryptoKeyType : Attributes: qualified_only InOut: Name Initial Comment KeyType_Key 0 The key is directly available. Stored in a RTS_BYTESTRING. Use this for symmetric keys. KeyType_CertHandle 1 The key is identified by a handle to the certificat. Only used for asymmetric keys. KeyType_CertContent 2 The key is identified by the certificate context. Not used.
RtsCryptoType (ENUM) ¶ TYPE RtsCryptoType : Attributes: qualified_only InOut: Name Initial Comment SYMMETRIC 16#1000 Symmetric encryption algorithm ASYMMETRIC 16#2000 Asymmetric encryption algorithm HASH 16#3000 Hash algorithm HMAC 16#4000 Hashed message authentication code algorithm SIGNATURE 16#5000 Asymmetric signature algorithm. KEYDERIVE 16#6000 Key derivation algorithm. KEYAGREEMENT 16#7000 Key agreement algorithm.
Structs ¶ RtsByteString (Struct) RtsCryptoKey (Struct) RtsScryptParameter (Struct)
RtsByteString (STRUCT) ¶ TYPE RtsByteString : STRUCT This a representation of a byte string. InOut: Name Type Comment ui32Len UDINT Current length of data stored in the buffer. ui32MaxLen UDINT The allocated size of the buffer. pByData POINTER TO BYTE Pointer to buffer xDynamic BOOL Indicates if the data was allocated dynamically
RtsCryptoKey (STRUCT) ¶ TYPE RtsCryptoKey : STRUCT A cryptographic key. InOut: Name Type Comment keyType RtsCryptoKeyType The type of the key. key RtsCryptoKeyStorage Information of the key. Actually only the KeyType_Key is supported.
RtsScryptParameter (STRUCT) ¶ TYPE RtsScryptParameter : STRUCT InOut: Name Type Comment iterations UDINT How many iterations are done. Affects CPU and RAM usage. blockSize UDINT The block size affects memory an CPU usage. parallelismFactor UDINT Setup the number of threads to run in parallel. Should be 1.
CmpCharDevice Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title CmpCharDevice Version 3.5.19.0 Categories System|SysLibs Author CODESYS Development GmbH Description 1 ¶ Linux Library to access character devices Indices and tables ¶ 1 Based on CmpCharDevice.library, last modified 02.03.2023, 11:01:00. LibDoc 4.4.0.0-b.27 The content file CmpCharDevice.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 02.03.2023, 11:01:02.