Substitution and Permutation KeyGenerator key locking