cpython/Modules/_hacl
Gregory P. Smith d777790bab
gh-99108: Build the hashlib HACL* code as a static library. (#101917)
This builds HACL* as a library in one place.

A followup to #101707 which broke some WASM builds. This fixes 2/4 of them, but the enscripten toolchain in the others don't deduplicate linker arguments and error out. A follow-on PR will address those.
2023-02-14 15:57:01 -08:00
..
include/krml gh-99108: Build the hashlib HACL* code as a static library. (#101917) 2023-02-14 15:57:01 -08:00
internal gh-99108: Import SHA2-384/512 from HACL* (#101707) 2023-02-14 01:25:16 -08:00
Hacl_Streaming_SHA2.c gh-99108: Import SHA2-384/512 from HACL* (#101707) 2023-02-14 01:25:16 -08:00
Hacl_Streaming_SHA2.h gh-99108: Import SHA2-384/512 from HACL* (#101707) 2023-02-14 01:25:16 -08:00
README.md gh-99108: Replace SHA2-224 & 256 with verified code from HACL* (#99109) 2023-02-06 18:11:01 -08:00
python_hacl_namespaces.h gh-99108: Build the hashlib HACL* code as a static library. (#101917) 2023-02-14 15:57:01 -08:00
refresh.sh gh-99108: Import SHA2-384/512 from HACL* (#101707) 2023-02-14 01:25:16 -08:00

README.md

Algorithm implementations used by the hashlib module.

This code comes from the HACL* project.

HACL* is a cryptographic library that has been formally verified for memory safety, functional correctness, and secret independence.

Updating HACL*

Use the refresh.sh script in this directory to pull in a new upstream code version. The upstream git hash used for the most recent code pull is recorded in the script. Modify the script as needed to bring in more if changes are needed based on upstream code refactoring.

Never manually edit HACL* files. Always add transformation shell code to the refresh.sh script to perform any necessary edits. If there are serious code changes needed, work with the upstream repository.

Local files

  1. ./include/python_hacl_namespaces.h
  2. ./README.md
  3. ./refresh.sh

ACKS