map hash algo name to block size
use correct default key size for pbkdf2 deriveKey()