mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-06-11 02:53:23 +02:00
BackUp
This commit is contained in:
@ -39,6 +39,17 @@ namespace NFC.Crypto
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates Key from String
|
||||
/// </summary>
|
||||
/// <param name="key">Key</param>
|
||||
/// <param name="cipher">Cipher for Key</param>
|
||||
/// <param name="keyVersion">Version of Key</param>
|
||||
public CipherKey(string key, CipherType cipher, byte keyVersion) : this(HexConverter.ConvertFromHexString(key), cipher, keyVersion)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generates Empty Key
|
||||
/// </summary>
|
||||
@ -122,7 +133,7 @@ namespace NFC.Crypto
|
||||
switch (cipher)
|
||||
{
|
||||
case CipherType.TDES:
|
||||
return 8;
|
||||
return 16;
|
||||
case CipherType.TDES_2K:
|
||||
return 16;
|
||||
case CipherType.TDES_3K:
|
||||
|
Reference in New Issue
Block a user