Net.Pkcs11Interop.HighLevelAPI80.MechanismParams.CkSsl3KeyMatOut.CkSsl3KeyMatOut C# (CSharp) Method

CkSsl3KeyMatOut() private method

Initializes a new instance of the CkSsl3KeyMatOut class.
private CkSsl3KeyMatOut ( ulong ivLength ) : System
ivLength ulong Length of initialization vectors or 0 if IVs are not required
return System
        internal CkSsl3KeyMatOut(ulong ivLength)
        {
            _lowLevelStruct.ClientMacSecret = 0;
            _lowLevelStruct.ServerMacSecret = 0;
            _lowLevelStruct.ClientKey = 0;
            _lowLevelStruct.ServerKey = 0;
            _lowLevelStruct.IVClient = IntPtr.Zero;
            _lowLevelStruct.IVServer = IntPtr.Zero;

            _ivLength = ivLength;

            if (_ivLength > 0)
            {
                _lowLevelStruct.IVClient = UnmanagedMemory.Allocate(Convert.ToInt32(_ivLength));
                _lowLevelStruct.IVServer = UnmanagedMemory.Allocate(Convert.ToInt32(_ivLength));
            }
        }