Beispiel #1
0
 internal CK_SLOT_INFO(Native native)
 {
     flags           = native.flags;
     hardwareVersion = native.hardwareVersion;
     firmwareVersion = native.firmwareVersion;
     slotDescription = Library.Utf8ToString(native.slotDescription);
     manufacturerID  = Library.Utf8ToString(native.manufacturerID);
 }
 internal CK_INFO(Native native)
 {
     cryptokiVersion    = native.cryptokiVersion;
     flags              = native.flags;
     libraryVersion     = native.libraryVersion;
     libraryDescription = Library.Utf8ToString(native.libraryDescription);
     manufacturerID     = Library.Utf8ToString(native.manufacturerID);
 }
Beispiel #3
0
 internal CK_SLOT_INFO(NativeUnix native)
 {
     flags           = (uint)native.flags;
     hardwareVersion = new CK_VERSION(native.hardwareVersion);
     firmwareVersion = new CK_VERSION(native.firmwareVersion);
     slotDescription = Library.Utf8ToString(native.slotDescription);
     manufacturerID  = Library.Utf8ToString(native.manufacturerID);
 }
 internal CK_INFO(NativeUnix native)
 {
     cryptokiVersion    = new CK_VERSION(native.cryptokiVersion);
     flags              = (uint)native.flags;
     libraryVersion     = native.libraryVersion;
     libraryDescription = Library.Utf8ToString(native.libraryDescription);
     manufacturerID     = Library.Utf8ToString(native.manufacturerID);
 }
Beispiel #5
0
 internal CK_TOKEN_INFO(Native native)
 {
   firmwareVersion = native.firmwareVersion;
   flags = native.flags;
   hardwareVersion = native.hardwareVersion;
   label = Library.Utf8ToString(native.label);
   manufacturerID = Library.Utf8ToString(native.manufacturerID);
   model = Library.Utf8ToString(native.model);
   serialNumber = Library.Utf8ToString(native.serialNumber);
   ulFreePrivateMemory = native.ulFreePrivateMemory;
   ulFreePublicMemory = native.ulFreePublicMemory;
   ulMaxPinLen = native.ulMaxPinLen;
   ulMaxRwSessionCount = native.ulMaxRwSessionCount;
   ulMaxSessionCount = native.ulMaxSessionCount;
   ulMinPinLen = native.ulMinPinLen;
   ulRwSessionCount = native.ulRwSessionCount;
   ulSessionCount = native.ulSessionCount;
   ulTotalPrivateMemory = native.ulTotalPrivateMemory;
   ulTotalPublicMemory = native.ulTotalPublicMemory;
   utcTime = Library.Utf8ToString(native.utcTime);
 }