public static class ChaCha20Poly1305.ChaCha20 extends Object
Modifier and Type | Class and Description |
---|---|
class |
ChaCha20Poly1305.ChaCha20.WrongKeySizeException |
class |
ChaCha20Poly1305.ChaCha20.WrongNonceSizeException |
Modifier and Type | Field and Description |
---|---|
static int |
KEY_SIZE |
static int |
NONCE_SIZE_IETF |
static int |
NONCE_SIZE_REF |
Constructor and Description |
---|
ChaCha20(byte[] key,
byte[] nonce,
int counter) |
Modifier and Type | Method and Description |
---|---|
void |
encrypt(byte[] dst,
int doff,
byte[] src,
int soff,
int len) |
protected void |
quarterRound(int[] x,
int a,
int b,
int c,
int d) |
protected int |
ROTATE(int v,
int c) |
public static final int KEY_SIZE
public static final int NONCE_SIZE_REF
public static final int NONCE_SIZE_IETF
public ChaCha20(byte[] key, byte[] nonce, int counter) throws ChaCha20Poly1305.ChaCha20.WrongKeySizeException, ChaCha20Poly1305.ChaCha20.WrongNonceSizeException
Copyright © 2024. All rights reserved.