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