fix hackage whinge about missing upper bound on base
tidy up pbkdf2 iv generation