Pkcs11Interop
5.1.2
|
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... | |
Utility class that helps with data type conversions.
Utility class that helps with data type conversions
|
static |
Converts Base64 encoded string to byte array
value | String that should be converted |
|
static |
Converts bool to byte array
value | Bool that should be converted |
|
static |
Converts byte array to Base64 encoded string
value | Byte array that should be converted |
|
static |
Converts byte array to bool
value | Byte array that should be converted |
|
static |
Converts byte array to hex encoded string
value | Byte array that should be converted |
|
static |
Converts byte array (not null terminated) to UTF-8 string
value | Byte array that should be converted |
|
static |
Converts byte array to UTF-8 string (not null terminated)
value | Byte array that should be converted |
trimEnd | Flag indicating whether white space characters should be removed from the end of resulting string |
|
static |
Converts specified range of byte array to UTF-8 string (not null terminated)
value | Byte array that should be processed |
index | Starting index of bytes to decode |
count | Number of bytes to decode |
|
static |
Converts hex encoded string to byte array
value | String that should be converted |
|
static |
Converts byte array to UInt32
value | Byte array that should be converted |
|
static |
Converts CKA to UInt32
value | CKA that should be converted |
|
static |
Converts CKC to UInt32
value | CKC that should be converted |
|
static |
Converts CKD to UInt32
value | CKD that should be converted |
|
static |
Converts CKG to UInt32
value | CKG that should be converted |
|
static |
Converts CKH to UInt32
value | CKH that should be converted |
|
static |
Converts CKK to UInt32
value | CKK that should be converted |
|
static |
Converts CKM to UInt32
value | CKM that should be converted |
|
static |
Converts CKN to UInt32
value | CKN that should be converted |
|
static |
Converts CKO to UInt32
value | CKO that should be converted |
|
static |
Converts CKP to UInt32
value | CKP that should be converted |
|
static |
Converts CKR to UInt32
value | CKR that should be converted |
|
static |
Converts CKS to UInt32
value | CKS that should be converted |
|
static |
Converts CKU to UInt32
value | CKU that should be converted |
|
static |
Converts Int32 to UInt32
value | Int32 that should be converted |
|
static |
Converts UInt32 to UInt32
value | UInt32 that should be converted |
|
static |
Converts UInt64 to UInt32
value | UInt64 that should be converted |
|
static |
Converts UInt64? to UInt32?
value | UInt64? that should be converted |
|
static |
Converts UInt32 to byte array
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKA
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKC
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKD
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKG
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKH
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKK
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKM
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKN
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKO
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKP
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKR
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKS
value | UInt32 that should be converted |
|
static |
Converts UInt32 to CKU
value | UInt32 that should be converted |
|
static |
Converts UInt32 to Int32
value | UInt32 that should be converted |
|
static |
Converts UInt32 to UInt32
value | UInt32 that should be converted |
|
static |
Converts UInt32 to UInt64
value | UInt32 that should be converted |
|
static |
Converts UInt32 to UInt64
value | UInt32 that should be converted |
|
static |
Converts byte array to UInt64
value | Byte array that should be converted |
|
static |
Converts CKA to UInt64
value | CKA that should be converted |
|
static |
Converts CKC to UInt64
value | CKC that should be converted |
|
static |
Converts CKD to UInt64
value | CKD that should be converted |
|
static |
Converts CKG to UInt64
value | CKG that should be converted |
|
static |
Converts CKH to UInt64
value | CKH that should be converted |
|
static |
Converts CKK to UInt64
value | CKK that should be converted |
|
static |
Converts CKM to UInt64
value | CKM that should be converted |
|
static |
Converts CKN to UInt64
value | CKN that should be converted |
|
static |
Converts CKO to UInt64
value | CKO that should be converted |
|
static |
Converts CKP to UInt64
value | CKP that should be converted |
|
static |
Converts CKR to UInt64
value | CKR that should be converted |
|
static |
Converts CKS to UInt64
value | CKS that should be converted |
|
static |
Converts CKU to UInt64
value | CKU that should be converted |
|
static |
Converts Int32 to UInt64
value | Int32 that should be converted |
|
static |
Converts UInt32 to UInt64
value | UInt32 that should be converted |
|
static |
Converts UInt64 to UInt64
value | UInt64 that should be converted |
|
static |
Converts UInt64? to UInt64?
value | UInt64? that should be converted |
|
static |
Converts UInt64 to byte array
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKA
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKC
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKD
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKG
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKH
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKK
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKM
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKN
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKO
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKP
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKR
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKS
value | UInt64 that should be converted |
|
static |
Converts UInt64 to CKU
value | UInt64 that should be converted |
|
static |
Converts UInt64 to Int32
value | UInt64 that should be converted |
|
static |
Converts UInt64 to UInt32
value | UInt64 that should be converted |
|
static |
Converts UInt64 to UInt64
value | UInt64 that should be converted |
|
static |
Converts UInt64 to UInt64
value | UInt64 that should be converted |
|
static |
Converts string with UTC time to DateTime
utcTime | UTC time that should be converted (formatted as string of length 16 represented in the format YYYYMMDDhhmmssxx). |
|
static |
Converts UTF-8 string to byte array (not null terminated)
value | String that should be converted |
|
static |
Converts UTF-8 string to byte array padded or trimmed to specified length
value | String that should be converted |
outputLength | Expected length of byte array |
paddingByte | Padding byte that will be used for padding to expected length |