internal CkWtlsKeyMatOut(ulong ivLength) { _lowLevelStruct.MacSecret = 0; _lowLevelStruct.Key = 0; _lowLevelStruct.IV = IntPtr.Zero; _ivLength = ivLength; if (_ivLength > 0) { _lowLevelStruct.IV = UnmanagedMemory.Allocate(Convert.ToInt32(_ivLength)); } }