forked from I2P_Developers/i2p.i2p
Crypto: Remove unused Chacha method
This commit is contained in:
@ -126,23 +126,6 @@ public final class ChaChaCore {
|
|||||||
output[15] = (int)(iv >> 32);
|
output[15] = (int)(iv >> 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes the 64-bit initialization vector and counter in a ChaCha20 block.
|
|
||||||
*
|
|
||||||
* @param output The output block, which must consist of at
|
|
||||||
* least 16 words and must have been initialized by initKey256()
|
|
||||||
* or initKey128().
|
|
||||||
* @param iv The 64-bit initialization vector value.
|
|
||||||
* @param counter The 64-bit counter value.
|
|
||||||
*/
|
|
||||||
public static void initIV(int[] output, long iv, long counter)
|
|
||||||
{
|
|
||||||
output[12] = (int)counter;
|
|
||||||
output[13] = (int)(counter >> 32);
|
|
||||||
output[14] = (int)iv;
|
|
||||||
output[15] = (int)(iv >> 32);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static int leftRotate16(int v)
|
private static int leftRotate16(int v)
|
||||||
{
|
{
|
||||||
return v << 16 | (v >>> 16);
|
return v << 16 | (v >>> 16);
|
||||||
|
Reference in New Issue
Block a user