| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | ChaCha20.
ChaCha20 key generator. |
| public static class | ChaCha20.
Factory for basic ChaCha20 encryption/decryption operators. |
| public static class | ChaCha20.
Parameters for ChaCha20 cipher. |
| Modifier and Type | Field and Description |
|---|---|
| public static final GeneralAlgorithm | ALGORITHM
Raw ChaCha20 algorithm, can be used for creating general purpose ChaCha20 keys. |
| private static final ChaCha20. | |
| public static final ChaCha20. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static ValidatedSymmetricKey |
| ALGORITHM | back to summary |
|---|---|
| public static final GeneralAlgorithm ALGORITHM Raw ChaCha20 algorithm, can be used for creating general purpose ChaCha20 keys. | |
| ENGINE_PROVIDER | back to summary |
|---|---|
| private static final ChaCha20. | |
| STREAM | back to summary |
|---|---|
| public static final ChaCha20. | |
| ChaCha20 | back to summary |
|---|---|
| private ChaCha20() | |
| invalidKeySize | back to summary |
|---|---|
| private static boolean invalidKeySize(int keyLength) | |
| validateKey | back to summary |
|---|---|
| private static ValidatedSymmetricKey validateKey(SymmetricKey key, Algorithm algorithm) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public StreamCipher |
| input | back to summary |
|---|---|
| pack-priv static final byte[] input | |
| iv | back to summary |
|---|---|
| pack-priv static final byte[] iv | |
| key | back to summary |
|---|---|
| pack-priv static final byte[] key | |
| output | back to summary |
|---|---|
| pack-priv static final byte[] output | |
| EngineProvider | back to summary |
|---|---|
| private EngineProvider() | |
| createEngine | back to summary |
|---|---|
| public StreamCipher createEngine() Implements org. | |
| Modifier and Type | Field and Description |
|---|---|
| private final GeneralAlgorithm | |
| private static final int | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SymmetricKey | doGenerateKey()
Implements abstract org. |
| algorithm | back to summary |
|---|---|
| private final GeneralAlgorithm algorithm | |
| keySizeInBits | back to summary |
|---|---|
| private static final int keySizeInBits | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| KeyGenerator | back to summary |
|---|---|
| public KeyGenerator(SecureRandom random) | |
| KeyGenerator | back to summary |
|---|---|
| public KeyGenerator(GeneralParameters<T extends Algorithm> parameterSet, SecureRandom random) | |
| KeyGenerator | back to summary |
|---|---|
| private KeyGenerator(GeneralAlgorithm algorithm, SecureRandom random) | |
| doGenerateKey | back to summary |
|---|---|
| public SymmetricKey doGenerateKey() Implements abstract org. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected StreamCipher | createCipher(boolean forEncryption, SymmetricKey key, ChaCha20.
Implements abstract org. |
| OperatorFactory | back to summary |
|---|---|
| public OperatorFactory() | |
| createCipher | back to summary |
|---|---|
| protected StreamCipher createCipher(boolean forEncryption, SymmetricKey key, ChaCha20. Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected ChaCha20. | create(GeneralAlgorithm algorithm, byte[] iv)
Implements abstract org. |
| public ChaCha20. | withIV(SecureRandom
the SecureRandom to use as the source of IV data. random)Overrides org. Implements org. |
| Parameters | back to summary |
|---|---|
| private Parameters(GeneralAlgorithm algorithm, byte[] iv) | |
| Parameters | back to summary |
|---|---|
| pack-priv Parameters(GeneralAlgorithm algorithm) | |
| create | back to summary |
|---|---|
| protected ChaCha20. Implements abstract org. | |
| withIV | back to summary |
|---|---|
| public ChaCha20. Overrides org. Implements org. Doc from org. Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
| |