Skip to content

Commit

Permalink
Updated BLAKE2 source code
Browse files Browse the repository at this point in the history
Updated source to BLAKE2/BLAKE2@ed1974e
  • Loading branch information
vrza committed Feb 24, 2023
1 parent 36116d6 commit 0090de4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/BLAKE2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This is the reference source code package of BLAKE2, which includes
optimized for speed on CPUs supporting SSE2, SSSE3, SSE4.1, AVX, or
XOP.

* `neon/`: Implementations of BLAKE2{s,b} using the NEON/ASIMD ARM instruction set.

* `power8/`: Implementations of BLAKE2{s,b} for POWER8, using the VSX and Altivec extensions.

* `csharp/`: C# implementation of BLAKE2b.

* `b2sum/`: Command line utility to hash files, based on the `sse/`
Expand Down
2 changes: 1 addition & 1 deletion src/BLAKE2/neon/blake2xs.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1;
}

if (NULL != key && keylen > BLAKE2B_KEYBYTES) {
if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/BLAKE2/power8/blake2xs.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1;
}

if (NULL != key && keylen > BLAKE2B_KEYBYTES) {
if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/BLAKE2/ref/blake2xs-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1;
}

if (NULL != key && keylen > BLAKE2B_KEYBYTES) {
if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/BLAKE2/sse/blake2xs.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key,
return -1;
}

if (NULL != key && keylen > BLAKE2B_KEYBYTES) {
if (NULL != key && keylen > BLAKE2S_KEYBYTES) {
return -1;
}

Expand Down

0 comments on commit 0090de4

Please sign in to comment.