Re: Python cSHAKE hash function for Fedora?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks, George.

The instructions to install pycryptodome says not to install over PyCrypto, but does not tell how to figure this out.  I tried a locate on pycrypto and came up empty.  I am kind of assuming that means I don't have it install.

Also I am assuming I should run pip as sudo, and should I use pip3?

On 4/19/23 07:48, George N. White III wrote:
On Tue, Apr 18, 2023 at 8:44 PM Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
cSHAKE is a variant of SHA3 defined in NIST SP800-185.  This is
different from SHAKE defined in FIPS-202.

I use cSHAKE in a number of my IETF standards (e.g. rfc9374).  I would
like to be able to have a decent way to perform cSHAKE in a python
script, but it does not seem to exist.  OpenSSL supports SHAKE but not
cSHAKE (it seems).

sooo what to do.

I have found:

https://github.com/Hemoth/cSHAKE

This is for python2., Fedora has python3.


which seems reasonable, but I am not experienced enough with this end of
things to do the building of the module to use per the instructions in
the script and of course wonder if there is something better out there.

I searched my Fedora mail folder and don't see any thread discussing cSHAKE.

Does anyone have experience/knowledge of how to get a cSHAKE function
call on Fedora in python?

https://github.com/lowRISC/opentitan/issues/6694 says cSHAKE from the above
has been merged into https://www.pycryptodome.org/.

Looking at the ChangeLog:

3.12.0 (4 December 2021): resolved GH#566: cSHAKE128/256 generated a wrong output for customization strings longer than 255 bytes.
3.11.0 (8 October 2021): Added cSHAKE128 and cSHAKE256 (of SHA-3 family). Thanks to Michael Schaffner.
 
~%  dnf search pycryptodome
Last metadata expiration check: 0:34:24 ago on Wed Apr 19 08:10:09 2023.
=================== Name & Summary Matched: pycryptodome =======================
python3-pycryptodomex-selftest.x86_64 : PyCryptodome test suite module
=================== Name Matched: pycryptodome ================================
python3-pycryptodomex.x86_64 : A self-contained cryptographic library for Python


--
George N. White III


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux