| Modifier and Type | Field and Description |
|---|---|
| private static final int | BLOCKLEN
Buffer length. |
| private static final int | CHAINING0
Chaining0 State Locations. |
| private static final int | CHAINING1
Chaining1 State Location. |
| private static final int | CHAINING2
Chaining2 State Location. |
| private static final int | CHAINING3
Chaining3 State Location. |
| private static final int | CHAINING4
Chaining4 State Location. |
| private static final int | CHAINING5
Chaining5 State Location. |
| private static final int | CHAINING6
Chaining6 State Location. |
| private static final int | CHAINING7
Chaining7 State Location. |
| private static final int | CHUNKEND
ChunkEnd Flag. |
| private static final int | CHUNKLEN
Chunk length. |
| private static final int | CHUNKSTART
ChunkStart Flag. |
| private static final int | COUNT0
Count0 State Location. |
| private static final int | COUNT1
Count1 State Location. |
| private static final int | DATALEN
DataLen State Location. |
| private static final int | DERIVECONTEXT
DeriveContext Flag. |
| private static final int | DERIVEKEY
DeriveKey Flag. |
| private static final String | ERR_OUTPUTTING
Already outputting error. |
| private static final int | FLAGS
Flags State Location. |
| private static final int[] | IV
Blake3 Initialization Vector. |
| private static final int | IV0
IV0 State Locations. |
| private static final int | IV1
IV1 State Location. |
| private static final int | IV2
IV2 State Location. |
| private static final int | IV3
IV3 State Location. |
| private static final int | KEYEDHASH
KeyedHash Flag. |
| private static final int | NUMWORDS
Number of Words. |
| private long | outputAvailable
How many more bytes can we output? |
| private boolean | outputting
Are we outputting? |
| private static final int | PARENT
Parent Flag. |
| private final CryptoServicePurpose | |
| private static final int | ROOT
Root Flag. |
| private static final int | ROUNDS
Number of Rounds. |
| private static final byte[] | SIGMA
Message word permutations. |
| private final byte[] | theBuffer
The byte input/output buffer. |
| private final int[] | theChaining
The chaining value. |
| private long | theCounter
The block counter. |
| private int | theCurrBytes
The # of bytes in the current block. |
| private final int | theDigestLen
The default digestLength. |
| private final byte[] | theIndices
The indices. |
| private final int[] | theK
The key. |
| private final int[] | theM
The message Buffer. |
| private int | theMode
The current mode. |
| private int | theOutputDataLen
The output dataLen. |
| private int | theOutputMode
The output mode. |
| private int | thePos
The position of the next byte in the buffer. |
| private final Stack | theStack
The chainingStack. |
| private final int[] | theV
The state. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Blake3Digest(final int
size of digest (in bits) pDigestSize, CryptoServicePurpose usage purpose. purpose)Base constructor with purpose. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | compressBlock(final byte[]
the message buffer pMessage, final int the position within the message buffer pMsgPos)Compress next block of the message. |
| private void | |
| public Memoable | copy()
Implements org. Produce a copy of this object with its configuration and in its current state. |
| public int | doFinal(final byte[]
the array the digest is to be copied into. pOutput, final int the offset into the out array the digest is to start at. pOutOffset)Implements org. close the digest, producing the final digest value. |
| public int | doFinal(final byte[]
output array to write the output bytes to. pOut, final int offset to start writing the bytes at. pOutOffset, final int the number of output bytes requested. pOutLen)Implements org. Output the results of the final calculation for this digest to outLen number of bytes. |
| public int | doOutput(final byte[]
output array to write the output bytes to. pOut, final int offset to start writing the bytes at. pOutOffset, final int the number of output bytes requested. pOutLen)Implements org. Start outputting the results of the final calculation for this digest. |
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| public int | getByteLength()
Implements org. Return the size in bytes of the internal buffer the digest applies it's compression function to. |
| public int | getDigestSize()
Implements org. return the size, in bytes, of the digest produced by this message digest. |
| private void | |
| public void | |
| private void | initChunkBlock(final int
the dataLength pDataLen, final boolean is this the final chunk? pFinal)Initialise chunk block. |
| private void | |
| private void | |
| private void | |
| private void | initM(final byte[]
the source message pMessage, final int the message position pMsgPos)Initialise M from message. |
| private void | |
| private void | |
| private void | mixG(final int
the message index msgIdx, final int position A in V posA, final int position B in V posB, final int position C in V posC, final int poistion D in V posD)Mix function G. |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | reset()
Implements org. reset the digest back to it's initial state. |
| public void | reset(final Memoable
an object originally pSource)copied from an object of the same type as this instance.Implements org. Restore a copied object state into this object. |
| private void | |
| private void | |
| public void | update(final byte
the input byte to be entered. b)Implements org. update the message digest with a single byte. |
| public void | update(final byte[]
the byte array containing the data. pMessage, final int the offset into the byte array where the data starts. pOffset, final int the length of the data. pLen)Implements org. update the message digest with a block of bytes. |
| BLOCKLEN | back to summary |
|---|---|
| private static final int BLOCKLEN Buffer length. | |
| CHAINING0 | back to summary |
|---|---|
| private static final int CHAINING0 Chaining0 State Locations. | |
| CHAINING1 | back to summary |
|---|---|
| private static final int CHAINING1 Chaining1 State Location. | |
| CHAINING2 | back to summary |
|---|---|
| private static final int CHAINING2 Chaining2 State Location. | |
| CHAINING3 | back to summary |
|---|---|
| private static final int CHAINING3 Chaining3 State Location. | |
| CHAINING4 | back to summary |
|---|---|
| private static final int CHAINING4 Chaining4 State Location. | |
| CHAINING5 | back to summary |
|---|---|
| private static final int CHAINING5 Chaining5 State Location. | |
| CHAINING6 | back to summary |
|---|---|
| private static final int CHAINING6 Chaining6 State Location. | |
| CHAINING7 | back to summary |
|---|---|
| private static final int CHAINING7 Chaining7 State Location. | |
| CHUNKEND | back to summary |
|---|---|
| private static final int CHUNKEND ChunkEnd Flag. | |
| CHUNKLEN | back to summary |
|---|---|
| private static final int CHUNKLEN Chunk length. | |
| CHUNKSTART | back to summary |
|---|---|
| private static final int CHUNKSTART ChunkStart Flag. | |
| COUNT0 | back to summary |
|---|---|
| private static final int COUNT0 Count0 State Location. | |
| COUNT1 | back to summary |
|---|---|
| private static final int COUNT1 Count1 State Location. | |
| DATALEN | back to summary |
|---|---|
| private static final int DATALEN DataLen State Location. | |
| DERIVECONTEXT | back to summary |
|---|---|
| private static final int DERIVECONTEXT DeriveContext Flag. | |
| DERIVEKEY | back to summary |
|---|---|
| private static final int DERIVEKEY DeriveKey Flag. | |
| ERR_OUTPUTTING | back to summary |
|---|---|
| private static final String ERR_OUTPUTTING Already outputting error. | |
| FLAGS | back to summary |
|---|---|
| private static final int FLAGS Flags State Location. | |
| IV | back to summary |
|---|---|
| private static final int[] IV Blake3 Initialization Vector. | |
| IV0 | back to summary |
|---|---|
| private static final int IV0 IV0 State Locations. | |
| IV1 | back to summary |
|---|---|
| private static final int IV1 IV1 State Location. | |
| IV2 | back to summary |
|---|---|
| private static final int IV2 IV2 State Location. | |
| IV3 | back to summary |
|---|---|
| private static final int IV3 IV3 State Location. | |
| KEYEDHASH | back to summary |
|---|---|
| private static final int KEYEDHASH KeyedHash Flag. | |
| NUMWORDS | back to summary |
|---|---|
| private static final int NUMWORDS Number of Words. | |
| outputAvailable | back to summary |
|---|---|
| private long outputAvailable How many more bytes can we output? | |
| outputting | back to summary |
|---|---|
| private boolean outputting Are we outputting? | |
| PARENT | back to summary |
|---|---|
| private static final int PARENT Parent Flag. | |
| purpose | back to summary |
|---|---|
| private final CryptoServicePurpose purpose | |
| ROOT | back to summary |
|---|---|
| private static final int ROOT Root Flag. | |
| ROUNDS | back to summary |
|---|---|
| private static final int ROUNDS Number of Rounds. | |
| SIGMA | back to summary |
|---|---|
| private static final byte[] SIGMA Message word permutations. | |
| theBuffer | back to summary |
|---|---|
| private final byte[] theBuffer The byte input/output buffer. | |
| theChaining | back to summary |
|---|---|
| private final int[] theChaining The chaining value. | |
| theCounter | back to summary |
|---|---|
| private long theCounter The block counter. | |
| theCurrBytes | back to summary |
|---|---|
| private int theCurrBytes The # of bytes in the current block. | |
| theDigestLen | back to summary |
|---|---|
| private final int theDigestLen The default digestLength. | |
| theIndices | back to summary |
|---|---|
| private final byte[] theIndices The indices. | |
| theK | back to summary |
|---|---|
| private final int[] theK The key. | |
| theM | back to summary |
|---|---|
| private final int[] theM The message Buffer. | |
| theMode | back to summary |
|---|---|
| private int theMode The current mode. | |
| theOutputDataLen | back to summary |
|---|---|
| private int theOutputDataLen The output dataLen. | |
| theOutputMode | back to summary |
|---|---|
| private int theOutputMode The output mode. | |
| thePos | back to summary |
|---|---|
| private int thePos The position of the next byte in the buffer. | |
| theStack | back to summary |
|---|---|
| private final Stack<E> theStack The chainingStack. | |
| theV | back to summary |
|---|---|
| private final int[] theV The state. | |
| Blake3Digest | back to summary |
|---|---|
| public Blake3Digest() Constructor. | |
| Blake3Digest | back to summary |
|---|---|
| public Blake3Digest(final int pDigestSize) Constructor.
| |
| Blake3Digest | back to summary |
|---|---|
| public Blake3Digest(final int pDigestSize, CryptoServicePurpose purpose) Base constructor with purpose.
| |
| Blake3Digest | back to summary |
|---|---|
| public Blake3Digest(final Blake3Digest pSource) Constructor.
| |
| adjustChaining | back to summary |
|---|---|
| private void adjustChaining() Adjust Chaining after compression. | |
| adjustStack | back to summary |
|---|---|
| private void adjustStack() Adjust the stack. | |
| compress | back to summary |
|---|---|
| private void compress() Perform compression. | |
| compressBlock | back to summary |
|---|---|
| private void compressBlock(final byte[] pMessage, final int pMsgPos) Compress next block of the message.
| |
| compressFinalBlock | back to summary |
|---|---|
| private void compressFinalBlock(final int pDataLen) Compress final block.
| |
| copy | back to summary |
|---|---|
| public Memoable copy() Implements org. Doc from org. Produce a copy of this object with its configuration and in its current state. The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(final byte[] pOutput, final int pOutOffset) Implements org. Doc from org. close the digest, producing the final digest value. The doFinal call leaves the digest reset.
| |
| doFinal | back to summary |
|---|---|
| public int doFinal(final byte[] pOut, final int pOutOffset, final int pOutLen) Implements org. Doc from org. Output the results of the final calculation for this digest to outLen number of bytes.
| |
| doOutput | back to summary |
|---|---|
| public int doOutput(final byte[] pOut, final int pOutOffset, final int pOutLen) Implements org. Doc from org. Start outputting the results of the final calculation for this digest. Unlike doFinal, this method will continue producing output until the Xof is explicitly reset, or signals otherwise.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |
| getByteLength | back to summary |
|---|---|
| public int getByteLength() Implements org. Doc from org. Return the size in bytes of the internal buffer the digest applies it's compression function to.
| |
| getDigestSize | back to summary |
|---|---|
| public int getDigestSize() Implements org. Doc from org. return the size, in bytes, of the digest produced by this message digest.
| |
| incrementBlockCount | back to summary |
|---|---|
| private void incrementBlockCount() IncrementBlockCount. | |
| init | back to summary |
|---|---|
| public void init(final Blake3Parameters pParams) Initialise.
| |
| initChunkBlock | back to summary |
|---|---|
| private void initChunkBlock(final int pDataLen, final boolean pFinal) Initialise chunk block.
| |
| initIndices | back to summary |
|---|---|
| private void initIndices() initialise the indices. | |
| initKey | back to summary |
|---|---|
| private void initKey(final byte[] pKey) Initialise key.
| |
| initKeyFromContext | back to summary |
|---|---|
| private void initKeyFromContext() Initialise key from context. | |
| initM | back to summary |
|---|---|
| private void initM(final byte[] pMessage, final int pMsgPos) Initialise M from message.
| |
| initNullKey | back to summary |
|---|---|
| private void initNullKey() Initialise null key. | |
| initParentBlock | back to summary |
|---|---|
| private void initParentBlock() Initialise parent block. | |
| mixG | back to summary |
|---|---|
| private void mixG(final int msgIdx, final int posA, final int posB, final int posC, final int posD) Mix function G.
| |
| nextOutputBlock | back to summary |
|---|---|
| private void nextOutputBlock() Initialise output block. | |
| performRound | back to summary |
|---|---|
| private void performRound() Perform a round. | |
| permuteIndices | back to summary |
|---|---|
| private void permuteIndices() PermuteIndices. | |
| processStack | back to summary |
|---|---|
| private void processStack() Process the stack. | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the digest back to it's initial state. | |
| reset | back to summary |
|---|---|
| public void reset(final Memoable pSource) Implements org. Doc from org. Restore a copied object state into this object. Implementations of this method should try to avoid or minimise memory allocation to perform the reset. | |
| resetBlockCount | back to summary |
|---|---|
| private void resetBlockCount() ResetBlockCount. | |
| setRoot | back to summary |
|---|---|
| private void setRoot() Set root indication. | |
| update | back to summary |
|---|---|
| public void update(final byte b) Implements org. Doc from org. update the message digest with a single byte.
| |
| update | back to summary |
|---|---|
| public void update(final byte[] pMessage, final int pOffset, final int pLen) Implements org. Doc from org. update the message digest with a block of bytes.
| |