Search
2 result(s) for PayloadPaddingSize
-
OPC-10000-4 – OPC Unified Architecture - Part 4: Services7.40.2.3 EncryptedSecret Formatmeet the requirements of the SymmetricEncryptionAlgorithm . OPC 10000-6 describes how to calculate the PayloadPaddingSize for different SymmetricEncryptionAlgorithms. The value of each byte is the least significant byte ... PayloadPaddingSize . PayloadPaddingSize UInt16 The length of the PayloadPadding field. Signature Byte[*] The Signature calculated after all encryption is applied. Each EncryptedSecret DataType describes how the Signature is calculated for different
-
OPC-10000-6 – OPC Unified Architecture - Part 6: Mappingsshall include all headers in the EncryptedSecret . The AuthenticatedEncryption tag is appended after the PayloadPaddingSize and is verified when the Payload is decrypted. The PayloadPaddingSize calculated with the following formula ... BlockSize = (AuthenticatedEncryption) ? 16 : InitializationVector.Length Data.Length = 4 + Nonce.Length + 4 + Secret.Length + 2 PayloadPaddingSize = Data.Length % BlockSize == 0 ? 0 : BlockSize - Data.Length % BlockSize; if (PayloadPaddingSize + Secret.Length < BlockSize) PayloadPaddingSize += BlockSize; Where Data.Length includes