New submission from DannyNiu <danny...@hotmail.com>:

The SHAKE family functions are the first formally defined XOFs (eXtensible 
Output Functions), previous implementations such as MGF from PKCS#1 relies on 
ad-hoc construction. 

In the current library, SHAKE-* are given digest-like interface, where their 
output has to be always obtained from the start; where as in reality, there 
exists applications that consumes such output progressively, such as 
deterministic key generation from fixed seed, and more specifically, as the 
random oracle used in Crystals-Dilithium post-quantum digital signature scheme. 

Therefore, I'd like developers consider adding ``shake.read(len)'' function to 
support IO-like consumption in hashlib.

----------
components: Library (Lib)
messages: 351084
nosy: dannyniu
priority: normal
severity: normal
status: open
title: IO-like interface for SHAKE-* and other XOFs.
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38017>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to