Pkcs11Interop  5.1.2
Static Public Member Functions | List of all members
Net.Pkcs11Interop.Common.ConvertUtils Class Reference

Utility class that helps with data type conversions. More...

Static Public Member Functions

static byte [] BoolToBytes (bool value)
 Converts bool to byte array More...
 
static bool BytesToBool (byte[] value)
 Converts byte array to bool More...
 
static byte [] Utf8StringToBytes (string value)
 Converts UTF-8 string to byte array (not null terminated) More...
 
static byte [] Utf8StringToBytes (string value, int outputLength, byte paddingByte)
 Converts UTF-8 string to byte array padded or trimmed to specified length More...
 
static string BytesToUtf8String (byte[] value)
 Converts byte array (not null terminated) to UTF-8 string More...
 
static string BytesToUtf8String (byte[] value, bool trimEnd)
 Converts byte array to UTF-8 string (not null terminated) More...
 
static string BytesToUtf8String (byte[] value, int index, int count)
 Converts specified range of byte array to UTF-8 string (not null terminated) More...
 
static DateTime UtcTimeStringToDateTime (string utcTime)
 Converts string with UTC time to DateTime More...
 
static string BytesToHexString (byte[] value)
 Converts byte array to hex encoded string More...
 
static byte [] HexStringToBytes (string value)
 Converts hex encoded string to byte array More...
 
static string BytesToBase64String (byte[] value)
 Converts byte array to Base64 encoded string More...
 
static byte [] Base64StringToBytes (string value)
 Converts Base64 encoded string to byte array More...
 
static UInt32 UInt32FromCKA (CKA value)
 Converts CKA to UInt32 More...
 
static UInt64 UInt64FromCKA (CKA value)
 Converts CKA to UInt64 More...
 
static CKA UInt32ToCKA (UInt32 value)
 Converts UInt32 to CKA More...
 
static CKA UInt64ToCKA (UInt64 value)
 Converts UInt64 to CKA More...
 
static UInt32 UInt32FromCKC (CKC value)
 Converts CKC to UInt32 More...
 
static UInt64 UInt64FromCKC (CKC value)
 Converts CKC to UInt64 More...
 
static CKC UInt32ToCKC (UInt32 value)
 Converts UInt32 to CKC More...
 
static CKC UInt64ToCKC (UInt64 value)
 Converts UInt64 to CKC More...
 
static UInt32 UInt32FromCKD (CKD value)
 Converts CKD to UInt32 More...
 
static UInt64 UInt64FromCKD (CKD value)
 Converts CKD to UInt64 More...
 
static CKD UInt32ToCKD (UInt32 value)
 Converts UInt32 to CKD More...
 
static CKD UInt64ToCKD (UInt64 value)
 Converts UInt64 to CKD More...
 
static UInt32 UInt32FromCKG (CKG value)
 Converts CKG to UInt32 More...
 
static UInt64 UInt64FromCKG (CKG value)
 Converts CKG to UInt64 More...
 
static CKG UInt32ToCKG (UInt32 value)
 Converts UInt32 to CKG More...
 
static CKG UInt64ToCKG (UInt64 value)
 Converts UInt64 to CKG More...
 
static UInt32 UInt32FromCKH (CKH value)
 Converts CKH to UInt32 More...
 
static UInt64 UInt64FromCKH (CKH value)
 Converts CKH to UInt64 More...
 
static CKH UInt32ToCKH (UInt32 value)
 Converts UInt32 to CKH More...
 
static CKH UInt64ToCKH (UInt64 value)
 Converts UInt64 to CKH More...
 
static UInt32 UInt32FromCKK (CKK value)
 Converts CKK to UInt32 More...
 
static UInt64 UInt64FromCKK (CKK value)
 Converts CKK to UInt64 More...
 
static CKK UInt32ToCKK (UInt32 value)
 Converts UInt32 to CKK More...
 
static CKK UInt64ToCKK (UInt64 value)
 Converts UInt64 to CKK More...
 
static UInt32 UInt32FromCKM (CKM value)
 Converts CKM to UInt32 More...
 
static UInt64 UInt64FromCKM (CKM value)
 Converts CKM to UInt64 More...
 
static CKM UInt32ToCKM (UInt32 value)
 Converts UInt32 to CKM More...
 
static CKM UInt64ToCKM (UInt64 value)
 Converts UInt64 to CKM More...
 
static UInt32 UInt32FromCKN (CKN value)
 Converts CKN to UInt32 More...
 
static UInt64 UInt64FromCKN (CKN value)
 Converts CKN to UInt64 More...
 
static CKN UInt32ToCKN (UInt32 value)
 Converts UInt32 to CKN More...
 
static CKN UInt64ToCKN (UInt64 value)
 Converts UInt64 to CKN More...
 
static UInt32 UInt32FromCKO (CKO value)
 Converts CKO to UInt32 More...
 
static UInt64 UInt64FromCKO (CKO value)
 Converts CKO to UInt64 More...
 
static CKO UInt32ToCKO (UInt32 value)
 Converts UInt32 to CKO More...
 
static CKO UInt64ToCKO (UInt64 value)
 Converts UInt64 to CKO More...
 
static UInt32 UInt32FromCKP (CKP value)
 Converts CKP to UInt32 More...
 
static UInt64 UInt64FromCKP (CKP value)
 Converts CKP to UInt64 More...
 
static CKP UInt32ToCKP (UInt32 value)
 Converts UInt32 to CKP More...
 
static CKP UInt64ToCKP (UInt64 value)
 Converts UInt64 to CKP More...
 
static UInt32 UInt32FromCKR (CKR value)
 Converts CKR to UInt32 More...
 
static UInt64 UInt64FromCKR (CKR value)
 Converts CKR to UInt64 More...
 
static CKR UInt32ToCKR (UInt32 value)
 Converts UInt32 to CKR More...
 
static CKR UInt64ToCKR (UInt64 value)
 Converts UInt64 to CKR More...
 
static UInt32 UInt32FromCKS (CKS value)
 Converts CKS to UInt32 More...
 
static UInt64 UInt64FromCKS (CKS value)
 Converts CKS to UInt64 More...
 
static CKS UInt32ToCKS (UInt32 value)
 Converts UInt32 to CKS More...
 
static CKS UInt64ToCKS (UInt64 value)
 Converts UInt64 to CKS More...
 
static UInt32 UInt32FromCKU (CKU value)
 Converts CKU to UInt32 More...
 
static UInt64 UInt64FromCKU (CKU value)
 Converts CKU to UInt64 More...
 
static CKU UInt32ToCKU (UInt32 value)
 Converts UInt32 to CKU More...
 
static CKU UInt64ToCKU (UInt64 value)
 Converts UInt64 to CKU More...
 
static UInt32 UInt32FromInt32 (Int32 value)
 Converts Int32 to UInt32 More...
 
static UInt64 UInt64FromInt32 (Int32 value)
 Converts Int32 to UInt64 More...
 
static Int32 UInt32ToInt32 (UInt32 value)
 Converts UInt32 to Int32 More...
 
static Int32 UInt64ToInt32 (UInt64 value)
 Converts UInt64 to Int32 More...
 
static UInt32 UInt32FromUInt32 (UInt32 value)
 Converts UInt32 to UInt32 More...
 
static UInt64 UInt64FromUInt32 (UInt32 value)
 Converts UInt32 to UInt64 More...
 
static UInt32 UInt32ToUInt32 (UInt32 value)
 Converts UInt32 to UInt32 More...
 
static UInt32 UInt64ToUInt32 (UInt64 value)
 Converts UInt64 to UInt32 More...
 
static UInt32 UInt32FromUInt64 (UInt64 value)
 Converts UInt64 to UInt32 More...
 
static UInt64 UInt64FromUInt64 (UInt64 value)
 Converts UInt64 to UInt64 More...
 
static UInt64 UInt32ToUInt64 (UInt32 value)
 Converts UInt32 to UInt64 More...
 
static UInt64 UInt64ToUInt64 (UInt64 value)
 Converts UInt64 to UInt64 More...
 
static UInt32 UInt32FromUInt64 (UInt64? value)
 Converts UInt64? to UInt32? More...
 
static UInt64 UInt64FromUInt64 (UInt64? value)
 Converts UInt64? to UInt64? More...
 
static UInt64 UInt32ToUInt64 (UInt32? value)
 Converts UInt32 to UInt64 More...
 
static UInt64 UInt64ToUInt64 (UInt64? value)
 Converts UInt64 to UInt64 More...
 
static UInt32 UInt32FromBytes (byte[] value)
 Converts byte array to UInt32 More...
 
static UInt64 UInt64FromBytes (byte[] value)
 Converts byte array to UInt64 More...
 
static byte [] UInt32ToBytes (UInt32 value)
 Converts UInt32 to byte array More...
 
static byte [] UInt64ToBytes (UInt64 value)
 Converts UInt64 to byte array More...
 

Detailed Description

Utility class that helps with data type conversions.

Utility class that helps with data type conversions

Member Function Documentation

◆ Base64StringToBytes()

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.Base64StringToBytes ( string  value)
static

Converts Base64 encoded string to byte array

Parameters
valueString that should be converted
Returns
Byte array decoded from string

◆ BoolToBytes()

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.BoolToBytes ( bool  value)
static

Converts bool to byte array

Parameters
valueBool that should be converted
Returns
Byte array with bool value

◆ BytesToBase64String()

static string Net.Pkcs11Interop.Common.ConvertUtils.BytesToBase64String ( byte []  value)
static

Converts byte array to Base64 encoded string

Parameters
valueByte array that should be converted
Returns
String with Base64 encoded value from byte array

◆ BytesToBool()

static bool Net.Pkcs11Interop.Common.ConvertUtils.BytesToBool ( byte []  value)
static

Converts byte array to bool

Parameters
valueByte array that should be converted
Returns
Bool with value from byte array

◆ BytesToHexString()

static string Net.Pkcs11Interop.Common.ConvertUtils.BytesToHexString ( byte []  value)
static

Converts byte array to hex encoded string

Parameters
valueByte array that should be converted
Returns
String with hex encoded value from byte array

◆ BytesToUtf8String() [1/3]

static string Net.Pkcs11Interop.Common.ConvertUtils.BytesToUtf8String ( byte []  value)
static

Converts byte array (not null terminated) to UTF-8 string

Parameters
valueByte array that should be converted
Returns
String with value from byte array

◆ BytesToUtf8String() [2/3]

static string Net.Pkcs11Interop.Common.ConvertUtils.BytesToUtf8String ( byte []  value,
bool  trimEnd 
)
static

Converts byte array to UTF-8 string (not null terminated)

Parameters
valueByte array that should be converted
trimEndFlag indicating whether white space characters should be removed from the end of resulting string
Returns
String with value from byte array

◆ BytesToUtf8String() [3/3]

static string Net.Pkcs11Interop.Common.ConvertUtils.BytesToUtf8String ( byte []  value,
int  index,
int  count 
)
static

Converts specified range of byte array to UTF-8 string (not null terminated)

Parameters
valueByte array that should be processed
indexStarting index of bytes to decode
countNumber of bytes to decode
Returns
String with value from byte array

◆ HexStringToBytes()

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.HexStringToBytes ( string  value)
static

Converts hex encoded string to byte array

Parameters
valueString that should be converted
Returns
Byte array decoded from string

◆ UInt32FromBytes()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromBytes ( byte []  value)
static

Converts byte array to UInt32

Parameters
valueByte array that should be converted
Returns
UInt32 with value from byte array

◆ UInt32FromCKA()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKA ( CKA  value)
static

Converts CKA to UInt32

Parameters
valueCKA that should be converted
Returns
UInt32 with value from CKA

◆ UInt32FromCKC()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKC ( CKC  value)
static

Converts CKC to UInt32

Parameters
valueCKC that should be converted
Returns
UInt32 with value from CKC

◆ UInt32FromCKD()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKD ( CKD  value)
static

Converts CKD to UInt32

Parameters
valueCKD that should be converted
Returns
UInt32 with value from CKD

◆ UInt32FromCKG()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKG ( CKG  value)
static

Converts CKG to UInt32

Parameters
valueCKG that should be converted
Returns
UInt32 with value from CKG

◆ UInt32FromCKH()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKH ( CKH  value)
static

Converts CKH to UInt32

Parameters
valueCKH that should be converted
Returns
UInt32 with value from CKH

◆ UInt32FromCKK()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKK ( CKK  value)
static

Converts CKK to UInt32

Parameters
valueCKK that should be converted
Returns
UInt32 with value from CKK

◆ UInt32FromCKM()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKM ( CKM  value)
static

Converts CKM to UInt32

Parameters
valueCKM that should be converted
Returns
UInt32 with value from CKM

◆ UInt32FromCKN()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKN ( CKN  value)
static

Converts CKN to UInt32

Parameters
valueCKN that should be converted
Returns
UInt32 with value from CKN

◆ UInt32FromCKO()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKO ( CKO  value)
static

Converts CKO to UInt32

Parameters
valueCKO that should be converted
Returns
UInt32 with value from CKO

◆ UInt32FromCKP()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKP ( CKP  value)
static

Converts CKP to UInt32

Parameters
valueCKP that should be converted
Returns
UInt32 with value from CKP

◆ UInt32FromCKR()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKR ( CKR  value)
static

Converts CKR to UInt32

Parameters
valueCKR that should be converted
Returns
UInt32 with value from CKR

◆ UInt32FromCKS()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKS ( CKS  value)
static

Converts CKS to UInt32

Parameters
valueCKS that should be converted
Returns
UInt32 with value from CKS

◆ UInt32FromCKU()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromCKU ( CKU  value)
static

Converts CKU to UInt32

Parameters
valueCKU that should be converted
Returns
UInt32 with value from CKU

◆ UInt32FromInt32()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromInt32 ( Int32  value)
static

Converts Int32 to UInt32

Parameters
valueInt32 that should be converted
Returns
UInt32 with value from Int32

◆ UInt32FromUInt32()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromUInt32 ( UInt32  value)
static

Converts UInt32 to UInt32

Parameters
valueUInt32 that should be converted
Returns
UInt32 with value from UInt32

◆ UInt32FromUInt64() [1/2]

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromUInt64 ( UInt64  value)
static

Converts UInt64 to UInt32

Parameters
valueUInt64 that should be converted
Returns
UInt32 with value from UInt64

◆ UInt32FromUInt64() [2/2]

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32FromUInt64 ( UInt64?  value)
static

Converts UInt64? to UInt32?

Parameters
valueUInt64? that should be converted
Returns
UInt32? with value from UInt64?

◆ UInt32ToBytes()

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToBytes ( UInt32  value)
static

Converts UInt32 to byte array

Parameters
valueUInt32 that should be converted
Returns
Byte array with UInt32 value

◆ UInt32ToCKA()

static CKA Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKA ( UInt32  value)
static

Converts UInt32 to CKA

Parameters
valueUInt32 that should be converted
Returns
CKA with UInt32 value

◆ UInt32ToCKC()

static CKC Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKC ( UInt32  value)
static

Converts UInt32 to CKC

Parameters
valueUInt32 that should be converted
Returns
CKC with UInt32 value

◆ UInt32ToCKD()

static CKD Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKD ( UInt32  value)
static

Converts UInt32 to CKD

Parameters
valueUInt32 that should be converted
Returns
CKD with UInt32 value

◆ UInt32ToCKG()

static CKG Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKG ( UInt32  value)
static

Converts UInt32 to CKG

Parameters
valueUInt32 that should be converted
Returns
CKG with UInt32 value

◆ UInt32ToCKH()

static CKH Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKH ( UInt32  value)
static

Converts UInt32 to CKH

Parameters
valueUInt32 that should be converted
Returns
CKH with UInt32 value

◆ UInt32ToCKK()

static CKK Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKK ( UInt32  value)
static

Converts UInt32 to CKK

Parameters
valueUInt32 that should be converted
Returns
CKK with UInt32 value

◆ UInt32ToCKM()

static CKM Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKM ( UInt32  value)
static

Converts UInt32 to CKM

Parameters
valueUInt32 that should be converted
Returns
CKM with UInt32 value

◆ UInt32ToCKN()

static CKN Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKN ( UInt32  value)
static

Converts UInt32 to CKN

Parameters
valueUInt32 that should be converted
Returns
CKN with UInt32 value

◆ UInt32ToCKO()

static CKO Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKO ( UInt32  value)
static

Converts UInt32 to CKO

Parameters
valueUInt32 that should be converted
Returns
CKO with UInt32 value

◆ UInt32ToCKP()

static CKP Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKP ( UInt32  value)
static

Converts UInt32 to CKP

Parameters
valueUInt32 that should be converted
Returns
CKP with UInt32 value

◆ UInt32ToCKR()

static CKR Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKR ( UInt32  value)
static

Converts UInt32 to CKR

Parameters
valueUInt32 that should be converted
Returns
CKR with UInt32 value

◆ UInt32ToCKS()

static CKS Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKS ( UInt32  value)
static

Converts UInt32 to CKS

Parameters
valueUInt32 that should be converted
Returns
CKS with UInt32 value

◆ UInt32ToCKU()

static CKU Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToCKU ( UInt32  value)
static

Converts UInt32 to CKU

Parameters
valueUInt32 that should be converted
Returns
CKU with UInt32 value

◆ UInt32ToInt32()

static Int32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToInt32 ( UInt32  value)
static

Converts UInt32 to Int32

Parameters
valueUInt32 that should be converted
Returns
Int32 with UInt32 value

◆ UInt32ToUInt32()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToUInt32 ( UInt32  value)
static

Converts UInt32 to UInt32

Parameters
valueUInt32 that should be converted
Returns
UInt32 with UInt32 value

◆ UInt32ToUInt64() [1/2]

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToUInt64 ( UInt32  value)
static

Converts UInt32 to UInt64

Parameters
valueUInt32 that should be converted
Returns
UInt64 with UInt32 value

◆ UInt32ToUInt64() [2/2]

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt32ToUInt64 ( UInt32?  value)
static

Converts UInt32 to UInt64

Parameters
valueUInt32 that should be converted
Returns
UInt64 with UInt32 value

◆ UInt64FromBytes()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromBytes ( byte []  value)
static

Converts byte array to UInt64

Parameters
valueByte array that should be converted
Returns
UInt64 with value from byte array

◆ UInt64FromCKA()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKA ( CKA  value)
static

Converts CKA to UInt64

Parameters
valueCKA that should be converted
Returns
UInt64 with value from CKA

◆ UInt64FromCKC()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKC ( CKC  value)
static

Converts CKC to UInt64

Parameters
valueCKC that should be converted
Returns
UInt64 with value from CKC

◆ UInt64FromCKD()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKD ( CKD  value)
static

Converts CKD to UInt64

Parameters
valueCKD that should be converted
Returns
UInt64 with value from CKD

◆ UInt64FromCKG()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKG ( CKG  value)
static

Converts CKG to UInt64

Parameters
valueCKG that should be converted
Returns
UInt64 with value from CKG

◆ UInt64FromCKH()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKH ( CKH  value)
static

Converts CKH to UInt64

Parameters
valueCKH that should be converted
Returns
UInt64 with value from CKH

◆ UInt64FromCKK()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKK ( CKK  value)
static

Converts CKK to UInt64

Parameters
valueCKK that should be converted
Returns
UInt64 with value from CKK

◆ UInt64FromCKM()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKM ( CKM  value)
static

Converts CKM to UInt64

Parameters
valueCKM that should be converted
Returns
UInt64 with value from CKM

◆ UInt64FromCKN()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKN ( CKN  value)
static

Converts CKN to UInt64

Parameters
valueCKN that should be converted
Returns
UInt64 with value from CKN

◆ UInt64FromCKO()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKO ( CKO  value)
static

Converts CKO to UInt64

Parameters
valueCKO that should be converted
Returns
UInt64 with value from CKO

◆ UInt64FromCKP()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKP ( CKP  value)
static

Converts CKP to UInt64

Parameters
valueCKP that should be converted
Returns
UInt64 with value from CKP

◆ UInt64FromCKR()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKR ( CKR  value)
static

Converts CKR to UInt64

Parameters
valueCKR that should be converted
Returns
UInt64 with value from CKR

◆ UInt64FromCKS()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKS ( CKS  value)
static

Converts CKS to UInt64

Parameters
valueCKS that should be converted
Returns
UInt64 with value from CKS

◆ UInt64FromCKU()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromCKU ( CKU  value)
static

Converts CKU to UInt64

Parameters
valueCKU that should be converted
Returns
UInt64 with value from CKU

◆ UInt64FromInt32()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromInt32 ( Int32  value)
static

Converts Int32 to UInt64

Parameters
valueInt32 that should be converted
Returns
UInt64 with value from Int32

◆ UInt64FromUInt32()

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromUInt32 ( UInt32  value)
static

Converts UInt32 to UInt64

Parameters
valueUInt32 that should be converted
Returns
UInt64 with value from UInt32

◆ UInt64FromUInt64() [1/2]

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromUInt64 ( UInt64  value)
static

Converts UInt64 to UInt64

Parameters
valueUInt64 that should be converted
Returns
UInt64 with value from UInt64

◆ UInt64FromUInt64() [2/2]

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64FromUInt64 ( UInt64?  value)
static

Converts UInt64? to UInt64?

Parameters
valueUInt64? that should be converted
Returns
UInt64? with value from UInt64?

◆ UInt64ToBytes()

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToBytes ( UInt64  value)
static

Converts UInt64 to byte array

Parameters
valueUInt64 that should be converted
Returns
Byte array with UInt64 value

◆ UInt64ToCKA()

static CKA Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKA ( UInt64  value)
static

Converts UInt64 to CKA

Parameters
valueUInt64 that should be converted
Returns
CKA with UInt64 value

◆ UInt64ToCKC()

static CKC Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKC ( UInt64  value)
static

Converts UInt64 to CKC

Parameters
valueUInt64 that should be converted
Returns
CKC with UInt64 value

◆ UInt64ToCKD()

static CKD Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKD ( UInt64  value)
static

Converts UInt64 to CKD

Parameters
valueUInt64 that should be converted
Returns
CKD with UInt64 value

◆ UInt64ToCKG()

static CKG Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKG ( UInt64  value)
static

Converts UInt64 to CKG

Parameters
valueUInt64 that should be converted
Returns
CKG with UInt64 value

◆ UInt64ToCKH()

static CKH Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKH ( UInt64  value)
static

Converts UInt64 to CKH

Parameters
valueUInt64 that should be converted
Returns
CKH with UInt64 value

◆ UInt64ToCKK()

static CKK Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKK ( UInt64  value)
static

Converts UInt64 to CKK

Parameters
valueUInt64 that should be converted
Returns
CKK with UInt64 value

◆ UInt64ToCKM()

static CKM Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKM ( UInt64  value)
static

Converts UInt64 to CKM

Parameters
valueUInt64 that should be converted
Returns
CKM with UInt64 value

◆ UInt64ToCKN()

static CKN Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKN ( UInt64  value)
static

Converts UInt64 to CKN

Parameters
valueUInt64 that should be converted
Returns
CKN with UInt64 value

◆ UInt64ToCKO()

static CKO Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKO ( UInt64  value)
static

Converts UInt64 to CKO

Parameters
valueUInt64 that should be converted
Returns
CKO with UInt64 value

◆ UInt64ToCKP()

static CKP Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKP ( UInt64  value)
static

Converts UInt64 to CKP

Parameters
valueUInt64 that should be converted
Returns
CKP with UInt64 value

◆ UInt64ToCKR()

static CKR Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKR ( UInt64  value)
static

Converts UInt64 to CKR

Parameters
valueUInt64 that should be converted
Returns
CKR with UInt64 value

◆ UInt64ToCKS()

static CKS Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKS ( UInt64  value)
static

Converts UInt64 to CKS

Parameters
valueUInt64 that should be converted
Returns
CKS with UInt64 value

◆ UInt64ToCKU()

static CKU Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToCKU ( UInt64  value)
static

Converts UInt64 to CKU

Parameters
valueUInt64 that should be converted
Returns
CKU with UInt64 value

◆ UInt64ToInt32()

static Int32 Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToInt32 ( UInt64  value)
static

Converts UInt64 to Int32

Parameters
valueUInt64 that should be converted
Returns
Int32 with UInt64 value

◆ UInt64ToUInt32()

static UInt32 Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToUInt32 ( UInt64  value)
static

Converts UInt64 to UInt32

Parameters
valueUInt64 that should be converted
Returns
UInt32 with UInt64 value

◆ UInt64ToUInt64() [1/2]

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToUInt64 ( UInt64  value)
static

Converts UInt64 to UInt64

Parameters
valueUInt64 that should be converted
Returns
UInt64 with UInt64 value

◆ UInt64ToUInt64() [2/2]

static UInt64 Net.Pkcs11Interop.Common.ConvertUtils.UInt64ToUInt64 ( UInt64?  value)
static

Converts UInt64 to UInt64

Parameters
valueUInt64 that should be converted
Returns
UInt64 with UInt64 value

◆ UtcTimeStringToDateTime()

static DateTime Net.Pkcs11Interop.Common.ConvertUtils.UtcTimeStringToDateTime ( string  utcTime)
static

Converts string with UTC time to DateTime

Parameters
utcTimeUTC time that should be converted (formatted as string of length 16 represented in the format YYYYMMDDhhmmssxx).
Returns
DateTime if successful, null otherwise.

◆ Utf8StringToBytes() [1/2]

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.Utf8StringToBytes ( string  value)
static

Converts UTF-8 string to byte array (not null terminated)

Parameters
valueString that should be converted
Returns
Byte array with string value

◆ Utf8StringToBytes() [2/2]

static byte [] Net.Pkcs11Interop.Common.ConvertUtils.Utf8StringToBytes ( string  value,
int  outputLength,
byte  paddingByte 
)
static

Converts UTF-8 string to byte array padded or trimmed to specified length

Parameters
valueString that should be converted
outputLengthExpected length of byte array
paddingBytePadding byte that will be used for padding to expected length
Returns
Byte array with string value padded or trimmed to specified length

The documentation for this class was generated from the following files: