Beispiel #1
0
 private static byte[] CombineKeyfileAndPassword(byte[] passwordBytes, byte[] keyfileBytes)
 {
     passwordBytes = Blake2.KeyedHash(passwordBytes, keyfileBytes);
     Utilities.ZeroArray(keyfileBytes);
     return(passwordBytes);
 }
Beispiel #2
0
 private static byte[] CombineKeyfileAndPassword(byte[] passwordBytes, byte[] keyfileBytes)
 {
     passwordBytes = Blake2.KeyedHash(passwordBytes, keyfileBytes);
     CryptographicOperations.ZeroMemory(keyfileBytes);
     return(passwordBytes);
 }