commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CODEC-221) HmacUtils.updateHmac calls reset() unnecessarily
Date Thu, 19 May 2016 15:35:13 GMT

     [ https://issues.apache.org/jira/browse/CODEC-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved CODEC-221.
------------------------
    Resolution: Fixed

URL: http://svn.apache.org/viewvc?rev=1744597&view=rev
Log:
CODEC-221 HmacUtils.updateHmac calls reset() unnecessarily

Modified:
    commons/proper/codec/trunk/src/changes/changes.xml
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/HmacUtils.java


> HmacUtils.updateHmac calls reset() unnecessarily
> ------------------------------------------------
>
>                 Key: CODEC-221
>                 URL: https://issues.apache.org/jira/browse/CODEC-221
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.10
>            Reporter: Sebb
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message