Flags that provide capabilities of the slot
Example #1
0
 /// <summary>
 /// Converts low level CK_SLOT_INFO structure to high level SlotInfo class
 /// </summary>
 /// <param name="slotId">PKCS#11 handle of slot</param>
 /// <param name="ck_slot_info">Low level CK_SLOT_INFO structure</param>
 internal SlotInfo(ulong slotId, CK_SLOT_INFO ck_slot_info)
 {
     _slotId          = slotId;
     _slotDescription = ConvertUtils.BytesToUtf8String(ck_slot_info.SlotDescription, true);
     _manufacturerId  = ConvertUtils.BytesToUtf8String(ck_slot_info.ManufacturerId, true);
     _slotFlags       = new SlotFlags(ck_slot_info.Flags);
     _hardwareVersion = ck_slot_info.HardwareVersion.ToString();
     _firmwareVersion = ck_slot_info.FirmwareVersion.ToString();
 }
Example #2
0
 /// <summary>
 /// Converts low level CK_SLOT_INFO structure to high level SlotInfo class
 /// </summary>
 /// <param name="slotId">PKCS#11 handle of slot</param>
 /// <param name="ck_slot_info">Low level CK_SLOT_INFO structure</param>
 internal SlotInfo(ulong slotId, CK_SLOT_INFO ck_slot_info)
 {
     _slotId = slotId;
     _slotDescription = ConvertUtils.BytesToUtf8String(ck_slot_info.SlotDescription, true);
     _manufacturerId = ConvertUtils.BytesToUtf8String(ck_slot_info.ManufacturerId, true);
     _slotFlags = new SlotFlags(ck_slot_info.Flags);
     _hardwareVersion = ck_slot_info.HardwareVersion.ToString();
     _firmwareVersion = ck_slot_info.FirmwareVersion.ToString();
 }