/// <summary> /// Initializes a new instance of the CkRc2MacGeneralParams class. /// </summary> /// <param name='effectiveBits'>The effective number of bits in the RC2 search space</param> /// <param name='macLength'>Length of the MAC produced, in bytes</param> public CkRc2MacGeneralParams(ulong effectiveBits, ulong macLength) { if (Platform.UnmanagedLongSize == 4) { if (Platform.StructPackingSize == 0) { _params40 = new HighLevelAPI40.MechanismParams.CkRc2MacGeneralParams(Convert.ToUInt32(effectiveBits), Convert.ToUInt32(macLength)); } else { _params41 = new HighLevelAPI41.MechanismParams.CkRc2MacGeneralParams(Convert.ToUInt32(effectiveBits), Convert.ToUInt32(macLength)); } } else { if (Platform.StructPackingSize == 0) { _params80 = new HighLevelAPI80.MechanismParams.CkRc2MacGeneralParams(effectiveBits, macLength); } else { _params81 = new HighLevelAPI81.MechanismParams.CkRc2MacGeneralParams(effectiveBits, macLength); } } }
/// <summary> /// Initializes a new instance of the CkRc2MacGeneralParams class. /// </summary> /// <param name='effectiveBits'>The effective number of bits in the RC2 search space</param> /// <param name='macLength'>Length of the MAC produced, in bytes</param> public CkRc2MacGeneralParams(ulong effectiveBits, ulong macLength) { if (Platform.UnmanagedLongSize == 4) { if (Platform.StructPackingSize == 0) _params40 = new HighLevelAPI40.MechanismParams.CkRc2MacGeneralParams(Convert.ToUInt32(effectiveBits), Convert.ToUInt32(macLength)); else _params41 = new HighLevelAPI41.MechanismParams.CkRc2MacGeneralParams(Convert.ToUInt32(effectiveBits), Convert.ToUInt32(macLength)); } else { if (Platform.StructPackingSize == 0) _params80 = new HighLevelAPI80.MechanismParams.CkRc2MacGeneralParams(effectiveBits, macLength); else _params81 = new HighLevelAPI81.MechanismParams.CkRc2MacGeneralParams(effectiveBits, macLength); } }