Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

precompiles: Add SHA256 implementation #924

Merged
merged 7 commits into from
Jun 25, 2024
Merged

precompiles: Add SHA256 implementation #924

merged 7 commits into from
Jun 25, 2024

Commits on Jun 25, 2024

  1. precompiles: Copy SHA256 implementation from Silkworm

    Copy the C implementation of SHA256 from Silkworm to evmone
    without any modifications.
    The original source file:
    https://github.com/erigontech/silkworm/blob/capi-0.19.0/silkworm/core/crypto/sha256.c
    chfast committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    f1da081 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba49438 View commit details
    Browse the repository at this point in the history
  3. precompiles: Convert SHA256 implementation to C++

    Convert C implementation of SHA256 to C++. evmone is declared as
    C++ only project. This also enabled previously missed coverage
    for the sha256.cpp file.
    chfast committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    9a12e78 View commit details
    Browse the repository at this point in the history
  4. precompiles: Improve SHA256 code quality

    Improve SHA256 code quality by:
    - fixing/disabling some clang-tidy warnings,
    - adding `BufferState` constructor,
    - using `std::rotr()`,
    - using C++ attributes.
    chfast committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    317b8fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5556303 View commit details
    Browse the repository at this point in the history
  6. precompiles: Use std::byte, drop "cpu ext" in SHA256

    Use `std::byte` instead of `uint8_t`
    and drop the `use_cpu_extensions` parameter.
    chfast committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    c4218b3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    66cb577 View commit details
    Browse the repository at this point in the history