Improve robustness of valid() in pkzip format.
Make valid() in sunmd5 format robust.
Fix a crash in dynamic with an overlong salt.