mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8341527: AVX-512 intrinsic for SHA3
Reviewed-by: sviswanathan
This commit is contained in:
parent
4ce19ca110
commit
9cfb0f7f7a
9 changed files with 426 additions and 5 deletions
|
@ -32,6 +32,7 @@ import java.security.ProviderException;
|
|||
import java.util.Arrays;
|
||||
import java.util.Objects;
|
||||
|
||||
import jdk.internal.util.Preconditions;
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
|
||||
import static java.lang.Math.min;
|
||||
|
@ -99,6 +100,7 @@ public abstract class SHA3 extends DigestBase {
|
|||
|
||||
private void implCompressCheck(byte[] b, int ofs) {
|
||||
Objects.requireNonNull(b);
|
||||
Preconditions.checkIndex(ofs + blockSize - 1, b.length, Preconditions.AIOOBE_FORMATTER);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue