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

Pull in code for BLAKE2b hash function #9

Merged
merged 5 commits into from
Jul 2, 2019
Merged

Pull in code for BLAKE2b hash function #9

merged 5 commits into from
Jul 2, 2019

Commits on Jul 1, 2019

  1. Pulled in Blake2B checksum code from golang.org/x/crypto

    The code and test vectors of Blake2B checksum have been pulled in to
    this library. It will allow us to define precompiles for Blake2b
    checksums, if needed. Additionally, we can now test against vectors from
    RFC instead of autogenerating vectors just for F.
    
    I have also modified F implementation removing the loop over block
    content. According to the RFC, this loop is not a part of F function -
    see `blake2b_update` C function in the RFC for reference.
    pdyraga committed Jul 1, 2019
    Configuration menu
    Copy the full SHA
    04b7789 View commit details
    Browse the repository at this point in the history
  2. Reduced number of F function test vectors

    All our test vectors for F functions are autogenerated. Since we now
    test entire checksum, we do not need so many test vectors just for F
    function.
    
    I left less than 20 test vectors, from which we'll generate go-ethereum
    test cases for F precompile.
    pdyraga committed Jul 1, 2019
    Configuration menu
    Copy the full SHA
    c3053c7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8a82dcc View commit details
    Browse the repository at this point in the history
  4. F function code moved to compression package

    This will let us to import only F code from projects that require only F
    compression function and use govendor to manage dependencies (hello,
    go-ethereum!)
    pdyraga committed Jul 1, 2019
    Configuration menu
    Copy the full SHA
    8a47bb5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71c8bd4 View commit details
    Browse the repository at this point in the history