change pbkdf2.derive len parameter to use byte length instead of bit length to be consistent with other functions