Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-221

HmacUtils.updateHmac calls reset() unnecessarily

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • 1.11
    • None

    Description

      The HmacUtils.updateHmac() methods call reset().
      This means that it's not possible to build up a digest using multiple such calls.

      The only useful operation that can be performed afterwards is to call one of the Mac.doFinal() methods.

      Unfortunately it's probably too late to change this.
      However it should at least be documented.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: