Пример #1
0
 /// <summary>
 /// Initializes a new instance of the CkRc2CbcParams class.
 /// </summary>
 /// <param name='effectiveBits'>The effective number of bits in the RC2 search space</param>
 /// <param name='iv'>The initialization vector (IV) for cipher block chaining mode</param>
 public CkRc2CbcParams(ulong effectiveBits, byte[] iv)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
         {
             _params40 = new HighLevelAPI40.MechanismParams.CkRc2CbcParams(Convert.ToUInt32(effectiveBits), iv);
         }
         else
         {
             _params41 = new HighLevelAPI41.MechanismParams.CkRc2CbcParams(Convert.ToUInt32(effectiveBits), iv);
         }
     }
     else
     {
         if (Platform.StructPackingSize == 0)
         {
             _params80 = new HighLevelAPI80.MechanismParams.CkRc2CbcParams(effectiveBits, iv);
         }
         else
         {
             _params81 = new HighLevelAPI81.MechanismParams.CkRc2CbcParams(effectiveBits, iv);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the CkRc2CbcParams class.
 /// </summary>
 /// <param name='effectiveBits'>The effective number of bits in the RC2 search space</param>
 /// <param name='iv'>The initialization vector (IV) for cipher block chaining mode</param>
 public CkRc2CbcParams(ulong effectiveBits, byte[] iv)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
             _params40 = new HighLevelAPI40.MechanismParams.CkRc2CbcParams(Convert.ToUInt32(effectiveBits), iv);
         else
             _params41 = new HighLevelAPI41.MechanismParams.CkRc2CbcParams(Convert.ToUInt32(effectiveBits), iv);
     }
     else
     {
         if (Platform.StructPackingSize == 0)
             _params80 = new HighLevelAPI80.MechanismParams.CkRc2CbcParams(effectiveBits, iv);
         else
             _params81 = new HighLevelAPI81.MechanismParams.CkRc2CbcParams(effectiveBits, iv);
     }
 }