sha1: allow limiting the size of the data passed to SHA1_Update()