This function is used in the implementation of GCM mode.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final VarHandle | |
| private static final int | |
| private final long[] | |
| private final long[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | GHASH(byte[]
the hash subkey subkeyH)Initializes the cipher in the specified mode with the given key and iv. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public GHASH | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv int | |
| public int | doFinal(byte[] in, int inOfs, int inLen, byte[] out, int outOfs)
Implements com.
|
| public int | |
| private static void | |
| private static void | |
| private static void | |
| private void | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| public int | update(byte[] in, int inOfs, int inLen, byte[] out, int outOfs)
Implements com. None of the out or dst values are necessary, they are to satisfy the GCM interface requirement |
| public int | update(byte[] in, int inOfs, int inLen, ByteBuffer dst)
Implements com.
|
| public int |
| AES_BLOCK_SIZE | back to summary |
|---|---|
| private static final int AES_BLOCK_SIZE | |
| asLongView | back to summary |
|---|---|
| private static final VarHandle asLongView | |
| MAX_LEN | back to summary |
|---|---|
| private static final int MAX_LEN | |
| state | back to summary |
|---|---|
| private final long[] state | |
| subkeyHtbl | back to summary |
|---|---|
| private final long[] subkeyHtbl | |
| GHASH | back to summary |
|---|---|
| pack-priv GHASH(byte[] subkeyH) throws ProviderException Initializes the cipher in the specified mode with the given key and iv.
| |
| GHASH | back to summary |
|---|---|
| private GHASH(GHASH g) | |
| blockMult | back to summary |
|---|---|
| private static void blockMult(long[] st, long[] subH) | |
| clone | back to summary |
|---|---|
| public GHASH clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| digest | back to summary |
|---|---|
| pack-priv byte[] digest() | |
| doFinal | back to summary |
|---|---|
| pack-priv int doFinal(ByteBuffer src, int inLen) | |
| doFinal | back to summary |
|---|---|
| pack-priv int doFinal(byte[] in, int inOfs, int inLen) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] in, int inOfs, int inLen, byte[] out, int outOfs) Implements com.
| |
| doFinal | back to summary |
|---|---|
| public int doFinal(ByteBuffer src, ByteBuffer dst) Implements com.
| |
| ghashRangeCheck | back to summary |
|---|---|
| private static void ghashRangeCheck(byte[] in, int inOfs, int inLen, long[] st, long[] subH) | |
| processBlock | back to summary |
|---|---|
| private static void processBlock(byte[] data, int ofs, long[] st, long[] subH) | |
| processBlocks | back to summary |
|---|---|
private static void processBlocks(byte[] data, int inOfs, int blocks, long[] st, long[] subH)
| |
| processBlocksDirect | back to summary |
|---|---|
| private void processBlocksDirect(ByteBuffer ct, int inLen) | |
| update | back to summary |
|---|---|
| pack-priv int update(byte[] in) | |
| update | back to summary |
|---|---|
| pack-priv int update(byte[] in, int inOfs, int inLen) | |
| update | back to summary |
|---|---|
| pack-priv int update(ByteBuffer ct, int inLen) | |
| update | back to summary |
|---|---|
| public int update(byte[] in, int inOfs, int inLen, byte[] out, int outOfs) Implements com. None of the out or dst values are necessary, they are to satisfy the GCM interface requirement
| |
| update | back to summary |
|---|---|
| public int update(byte[] in, int inOfs, int inLen, ByteBuffer dst) Implements com.
| |
| update | back to summary |
|---|---|
| public int update(ByteBuffer src, ByteBuffer dst) Implements com.
| |