This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Implement correct block_size and tests for HMAC-SHA3
Type: enhancement Stage:
Components: Extension Modules, Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes, jcea, python-dev
Priority: normal Keywords:

Created on 2012-10-14 20:15 by christian.heimes, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg172910 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2012-10-14 20:15
HMAC-SHA3 hasn't been specified yet. Once an official RFC or NIST document is out I can implement the correct block_size attribute and add test vectors. In the mean time I'm disabling SHA3 by returning NotImplemented from block_size.

This ticket a reminder for myself.
msg172911 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-14 20:16
New changeset 40a1652349e9 by Christian Heimes in branch 'default':
Issue #16234: Modify sha3's block_size method to return NotImplemented.
http://hg.python.org/cpython/rev/40a1652349e9
msg176079 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2012-11-21 21:14
HMAC-SHA3 hasn't been standardized yet. I'm not even sure their will be an official HMAC-SHA3 standard anytime soon. Keccak uses a sponge design that isn't vulnerable to length extension attacks like Merkle–Damgård based hashing algorithms (MD5, SHA-1, SHA-2).

My standalone package now contains some experimental code and tests based on http://www.di-mgt.com.au/hmac_sha3_testvectors.html .
History
Date User Action Args
2022-04-11 14:57:37adminsetgithub: 60438
2016-06-12 11:23:48christian.heimessetstatus: open -> closed
resolution: out of date
2012-11-21 21:14:56christian.heimessetmessages: + msg176079
2012-10-15 01:29:22jceasetnosy: + jcea
2012-10-14 20:16:38python-devsetnosy: + python-dev
messages: + msg172911
2012-10-14 20:15:55christian.heimescreate