PR# 19406 It is not possible to use a shared instance of HMAC_SHA256 because `reset' does not restore the corr

Problem Report Summary
Submitter: finnianr
Category: Other
Priority: Low
Date: 2017/11/15
Class: Bug
Severity: Non-critical
Number: 19406
Release: 16.05
Confidential: No
Status: Closed
Responsible: jfiat_es
Environment: linux
Synopsis: It is not possible to use a shared instance of HMAC_SHA256 because `reset' does not restore the corr

Description
Test `test_rfc_4231_2_ascii' in the attached test suite fails because `hmac.reset' does not restore the state of the instance back to what it was after initialization with `make_ascii_key'.
Comment this line out and the test passes.
To Reproduce
See `test_rfc_4231_2_ascii' in attached test suite.
Problem Report Interactions
From:jfiat_es    Date:2017/11/20    Status: Closed    Download   
Dear Finnian,

Thank you for your contribution to "eel".
We were no able to include your tests set class, as it relies on Eiffel-Loop.
But we were anyway able to reproduce the issue of {HMAC_SHA256}.reset .

We fixed the issue on HMAC and SHA256 following an approach similar to what you suggested.

Please look at https://github.com/EiffelSoftware/EiffelStudio/commit/41e2f8d5bc04347c6c45266dba18619ef55bcee4

From:finnianr    Date:2017/11/15    Download   
Attachments for problem report #19406

Attachment: digest_routines_test_set.e     Size:2388
Attachment: digest_routines_test_set.e     Size:2388