fix PBKDF2 iteration count checking
fix PBKDF2 passphrase length checking
fix PBKDF1 iteration count checking
fix PBKDF1 key length checking
add key-length checking for PBKDF2