| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | Kangaroo.
The Kangaroo Base. |
| public static class | Kangaroo.
Kangaroo Parameters. |
| private static class | Kangaroo.
The Kangaroo Sponge. |
| public static class | Kangaroo.
KangarooTwelve. |
| public static class | Kangaroo.
MarsupilamiFourteen. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | DIGESTLEN
Default digest length. |
| Access | Constructor and Description |
|---|---|
| public |
| DIGESTLEN | back to summary |
|---|---|
| private static final int DIGESTLEN Default digest length. | |
| Kangaroo | back to summary |
|---|---|
| public Kangaroo() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | BLKSIZE
Block Size. |
| private static final byte[] | FINAL
Final marker. |
| private static final byte[] | FIRST
First marker. |
| private static final byte[] | INTERMEDIATE
Intermediate marker. |
| private final CryptoServicePurpose | |
| private static final byte[] | SINGLE
Single marker. |
| private final byte[] | singleByte
The single byte buffer. |
| private boolean | squeezing
Are we squeezing?. |
| private final int | theChainLen
The chain length. |
| private int | theCurrNode
The current node. |
| private final Kangaroo. | theLeaf
The Leaf Sponge. |
| private byte[] | thePersonal
The personalisation. |
| private int | theProcessed
The data processed in the current node. |
| private final Kangaroo. | theTree
The Tree Sponge. |
| Access | Constructor and Description |
|---|---|
| pack-priv | KangarooBase(final int
the strength pStrength, final int the rounds. pRounds, final int the digest length pLength, CryptoServicePurpose purpose)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public int | doFinal(final byte[]
the array the digest is to be copied into. pOut, 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 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. |
| public void | |
| private static byte[] | Returns: the encoded lengththe length to encode strLen)right Encode a length. |
| private void | processData(final byte[]
the input buffer pIn, final int the starting offset in the input buffer pInOffSet, final int the length of data to process pLen)Process data. |
| public void | reset()
Implements org. reset the digest back to it's initial state. |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | update(final byte
the input byte to be entered. pIn)Implements org. update the message digest with a single byte. |
| public void | update(final byte[]
the byte array containing the data. pIn, final int the offset into the byte array where the data starts. pInOff, final int the length of the data. pLen)Implements org. update the message digest with a block of bytes. |
| BLKSIZE | back to summary |
|---|---|
| private static final int BLKSIZE Block Size. | |
| FINAL | back to summary |
|---|---|
| private static final byte[] FINAL Final marker. | |
| FIRST | back to summary |
|---|---|
| private static final byte[] FIRST First marker. | |
| INTERMEDIATE | back to summary |
|---|---|
| private static final byte[] INTERMEDIATE Intermediate marker. | |
| purpose | back to summary |
|---|---|
| private final CryptoServicePurpose purpose | |
| SINGLE | back to summary |
|---|---|
| private static final byte[] SINGLE Single marker. | |
| singleByte | back to summary |
|---|---|
| private final byte[] singleByte The single byte buffer. | |
| squeezing | back to summary |
|---|---|
| private boolean squeezing Are we squeezing?. | |
| theChainLen | back to summary |
|---|---|
| private final int theChainLen The chain length. | |
| theCurrNode | back to summary |
|---|---|
| private int theCurrNode The current node. | |
| theLeaf | back to summary |
|---|---|
| private final Kangaroo. The Leaf Sponge. | |
| thePersonal | back to summary |
|---|---|
| private byte[] thePersonal The personalisation. | |
| theProcessed | back to summary |
|---|---|
| private int theProcessed The data processed in the current node. | |
| theTree | back to summary |
|---|---|
| private final Kangaroo. The Tree Sponge. | |
| KangarooBase | back to summary |
|---|---|
| pack-priv KangarooBase(final int pStrength, final int pRounds, final int pLength, CryptoServicePurpose purpose) Constructor.
| |
| buildPersonal | back to summary |
|---|---|
| private void buildPersonal(final byte[] pPersonal) Constructor.
| |
| doFinal | back to summary |
|---|---|
| public int doFinal(final byte[] pOut, 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.
| |
| 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.
| |
| init | back to summary |
|---|---|
| public void init(final Kangaroo. Initialise the digest.
| |
| lengthEncode | back to summary |
|---|---|
| private static byte[] lengthEncode(final long strLen) right Encode a length.
| |
| processData | back to summary |
|---|---|
| private void processData(final byte[] pIn, final int pInOffSet, final int pLen) Process data.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the digest back to it's initial state. | |
| switchFinal | back to summary |
|---|---|
| private void switchFinal() Switch multiple node to squeezing. | |
| switchLeaf | back to summary |
|---|---|
| private void switchLeaf(final boolean pMoreToCome) Complete Leaf.
| |
| switchSingle | back to summary |
|---|---|
| private void switchSingle() Switch single node to squeezing. | |
| switchToSqueezing | back to summary |
|---|---|
| private void switchToSqueezing() Switch to squeezing. | |
| update | back to summary |
|---|---|
| public void update(final byte pIn) Implements org. Doc from org. update the message digest with a single byte.
| |
| update | back to summary |
|---|---|
| public void update(final byte[] pIn, final int pInOff, final int pLen) Implements org. Doc from org. update the message digest with a block of bytes.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class | Kangaroo.
Parameter Builder. |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | thePersonal
The personalisation. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] |
| thePersonal | back to summary |
|---|---|
| private byte[] thePersonal The personalisation. | |
| KangarooParameters | back to summary |
|---|---|
| public KangarooParameters() | |
| getPersonalisation | back to summary |
|---|---|
| public byte[] getPersonalisation() Obtain the personalisation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | thePersonal
The personalisation. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Kangaroo. | |
| public Kangaroo. | Returns: the Builderthe personalisation pPersonal)Set the personalisation. |
| thePersonal | back to summary |
|---|---|
| private byte[] thePersonal The personalisation. | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public Kangaroo. Build the parameters.
| |
| setPersonalisation | back to summary |
|---|---|
| public Kangaroo. Set the personalisation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | bytesInQueue
The numnber of bytes in the queue. |
| private static long[] | KeccakRoundConstants
The round constants. |
| private boolean | squeezing
Are we squeezing? |
| private final byte[] | theQueue
The queue. |
| private final int | theRateBytes
The rateBytes. |
| private final int | theRounds
The number of rounds. |
| private final long[] | theState
The state. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | absorb(final byte[]
the data buffer data, final int the starting offset in the buffer. off, final int the length of data to absorb len)Absorb data into sponge. |
| private void | |
| private void | KangarooAbsorb(final byte[]
the data to absorb data, final int the starting offset in the data off)Absorb a block of data. |
| private void | |
| private void | |
| private void | |
| private void | squeeze(final byte[]
the output buffer output, final int the offset in the output buffer offset, final int the output length outputLength)Squeeze data out. |
| bytesInQueue | back to summary |
|---|---|
| private int bytesInQueue The numnber of bytes in the queue. | |
| KeccakRoundConstants | back to summary |
|---|---|
| private static long[] KeccakRoundConstants The round constants. | |
| squeezing | back to summary |
|---|---|
| private boolean squeezing Are we squeezing? | |
| theQueue | back to summary |
|---|---|
| private final byte[] theQueue The queue. | |
| theRateBytes | back to summary |
|---|---|
| private final int theRateBytes The rateBytes. | |
| theRounds | back to summary |
|---|---|
| private final int theRounds The number of rounds. | |
| theState | back to summary |
|---|---|
| private final long[] theState The state. | |
| KangarooSponge | back to summary |
|---|---|
| pack-priv KangarooSponge(final int pStrength, final int pRounds) Constructor.
| |
| absorb | back to summary |
|---|---|
| private void absorb(final byte[] data, final int off, final int len) Absorb data into sponge.
| |
| initSponge | back to summary |
|---|---|
| private void initSponge() Initialise the sponge. | |
| KangarooAbsorb | back to summary |
|---|---|
| private void KangarooAbsorb(final byte[] data, final int off) Absorb a block of data.
| |
| KangarooExtract | back to summary |
|---|---|
| private void KangarooExtract() Extract a block of data to the queue. | |
| KangarooPermutation | back to summary |
|---|---|
| private void KangarooPermutation() Permutation (KP). | |
| padAndSwitchToSqueezingPhase | back to summary |
|---|---|
| private void padAndSwitchToSqueezingPhase() Handle padding. | |
| squeeze | back to summary |
|---|---|
| private void squeeze(final byte[] output, final int offset, final int outputLength) Squeeze data out.
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| KangarooTwelve | back to summary |
|---|---|
| public KangarooTwelve() Constructor. | |
| KangarooTwelve | back to summary |
|---|---|
| public KangarooTwelve(final int pLength, CryptoServicePurpose purpose) Constructor.
| |
| KangarooTwelve | back to summary |
|---|---|
| public KangarooTwelve(CryptoServicePurpose purpose) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| MarsupilamiFourteen | back to summary |
|---|---|
| public MarsupilamiFourteen() Constructor. | |
| MarsupilamiFourteen | back to summary |
|---|---|
| public MarsupilamiFourteen(final int pLength, CryptoServicePurpose purpose) Constructor.
| |
| MarsupilamiFourteen | back to summary |
|---|---|
| public MarsupilamiFourteen(CryptoServicePurpose purpose) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |