Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the CkMacGeneralParams class.
 /// </summary>
 /// <param name='macLength'>Length of the MAC produced, in bytes</param>
 public CkMacGeneralParams(ulong macLength)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
         {
             _params40 = new HighLevelAPI40.MechanismParams.CkMacGeneralParams(Convert.ToUInt32(macLength));
         }
         else
         {
             _params41 = new HighLevelAPI41.MechanismParams.CkMacGeneralParams(Convert.ToUInt32(macLength));
         }
     }
     else
     {
         if (Platform.StructPackingSize == 0)
         {
             _params80 = new HighLevelAPI80.MechanismParams.CkMacGeneralParams(macLength);
         }
         else
         {
             _params81 = new HighLevelAPI81.MechanismParams.CkMacGeneralParams(macLength);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the CkMacGeneralParams class.
 /// </summary>
 /// <param name='macLength'>Length of the MAC produced, in bytes</param>
 public CkMacGeneralParams(ulong macLength)
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
             _params40 = new HighLevelAPI40.MechanismParams.CkMacGeneralParams(Convert.ToUInt32(macLength));
         else
             _params41 = new HighLevelAPI41.MechanismParams.CkMacGeneralParams(Convert.ToUInt32(macLength));
     }
     else
     {
         if (Platform.StructPackingSize == 0)
             _params80 = new HighLevelAPI80.MechanismParams.CkMacGeneralParams(macLength);
         else
             _params81 = new HighLevelAPI81.MechanismParams.CkMacGeneralParams(macLength);
     }
 }