Updated non-zero XOR check to match longer keys in some circumstances; bugfix for Flash check