| Modifier and Type | Field and Description |
|---|---|
| private MutableIntegerModuloP | |
| private final byte[] | |
| private static final int | |
| private int | |
| private final boolean | |
| private static final IntegerFieldModuloP | |
| private static final int | |
| private byte[] | |
| private final MutableIntegerModuloP | |
| private IntegerModuloP | |
| private static final int | |
| private IntegerModuloP | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte[] | Returns: the authentication tag as a byte array.Finish the authentication operation and reset the MAC for a new authentication operation. |
| pack-priv int | Returns: the length of the auth tag, which is always 16 bytes.Returns the length of the MAC (authentication tag). |
| pack-priv void | engineInit(Key
the newKey, AlgorithmParameterSpec Key which will be used for the authentication.this parameter is unused. params)Initialize the Poly1305 object |
| pack-priv void | engineReset()
Reset the Poly1305 object, discarding any current operation but maintaining the same key. |
| pack-priv void | engineUpdate(ByteBuffer
the buf)ByteBuffer containing the data to be consumed.
Upon return the buffer's position will be equal to its limit.Update the MAC with bytes from a |
| pack-priv void | engineUpdate(byte[]
the input bytes. input, int the starting index from which to update the MAC. offset, int the number of bytes to process. len)Update the MAC with bytes from an array. |
| pack-priv void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private static void | |
| private void | setRSVals()
Partition the authentication key into the R and S components, clamp the R value, and instantiate IntegerModuloP objects to R and S's numeric values. |
| a | back to summary |
|---|---|
| private MutableIntegerModuloP a | |
| block | back to summary |
|---|---|
| private final byte[] block | |
| BLOCK_LENGTH | back to summary |
|---|---|
| private static final int BLOCK_LENGTH | |
| blockOffset | back to summary |
|---|---|
| private int blockOffset | |
| checkWeakKey | back to summary |
|---|---|
| private final boolean checkWeakKey | |
| ipl1305 | back to summary |
|---|---|
| private static final IntegerFieldModuloP ipl1305 | |
| KEY_LENGTH | back to summary |
|---|---|
| private static final int KEY_LENGTH | |
| keyBytes | back to summary |
|---|---|
| private byte[] keyBytes | |
| n | back to summary |
|---|---|
| private final MutableIntegerModuloP n | |
| r | back to summary |
|---|---|
| private IntegerModuloP r | |
| RS_LENGTH | back to summary |
|---|---|
| private static final int RS_LENGTH | |
| s | back to summary |
|---|---|
| private IntegerModuloP s | |
| TAG_LENGTH | back to summary |
|---|---|
| private static final int TAG_LENGTH | |
| Poly1305 | back to summary |
|---|---|
| pack-priv Poly1305() | |
| Poly1305 | back to summary |
|---|---|
| pack-priv Poly1305(boolean checkKey) | |
| engineDoFinal | back to summary |
|---|---|
| pack-priv byte[] engineDoFinal() Finish the authentication operation and reset the MAC for a new authentication operation.
| |
| engineGetMacLength | back to summary |
|---|---|
| pack-priv int engineGetMacLength() Returns the length of the MAC (authentication tag).
| |
| engineInit | back to summary |
|---|---|
| pack-priv void engineInit(Key newKey, AlgorithmParameterSpec params) throws InvalidKeyException Initialize the Poly1305 object
| |
| engineReset | back to summary |
|---|---|
| pack-priv void engineReset() Reset the Poly1305 object, discarding any current operation but maintaining the same key. | |
| engineUpdate | back to summary |
|---|---|
| pack-priv void engineUpdate(ByteBuffer buf) Update the MAC with bytes from a
| |
| engineUpdate | back to summary |
|---|---|
| pack-priv void engineUpdate(byte[] input, int offset, int len) Update the MAC with bytes from an array.
| |
| engineUpdate | back to summary |
|---|---|
| pack-priv void engineUpdate(byte input) Update the MAC with a single byte of input
| |
| processBlock | back to summary |
|---|---|
| private void processBlock(ByteBuffer buf, int len) Process a single block of data. This should only be called when the block array is complete. That may not necessarily be a full 16 bytes if the last block has less than 16 bytes. | |
| processBlock | back to summary |
|---|---|
| private void processBlock(byte[] block, int offset, int length) | |
| processMultipleBlocks | back to summary |
|---|---|
private void processMultipleBlocks(byte[] input, int offset, int length, long[] aLimbs, long[] rLimbs)
| |
| processMultipleBlocks | back to summary |
|---|---|
| private void processMultipleBlocks(ByteBuffer buf, int blockMultipleLength) | |
| processMultipleBlocksCheck | back to summary |
|---|---|
| private static void processMultipleBlocksCheck(byte[] input, int offset, int length, long[] aLimbs, long[] rLimbs) | |
| setRSVals | back to summary |
|---|---|
| private void setRSVals() throws InvalidKeyException Partition the authentication key into the R and S components, clamp the R value, and instantiate IntegerModuloP objects to R and S's numeric values. | |