| Package | Description |
|---|---|
| org.cryptacular.bean | |
| org.cryptacular.generator.sp80038a | |
| org.cryptacular.generator.sp80038d | |
| org.cryptacular.util |
| Modifier and Type | Field and Description |
|---|---|
private Nonce |
AbstractCipherBean.nonce
Nonce generator.
|
| Modifier and Type | Method and Description |
|---|---|
Nonce |
AbstractCipherBean.getNonce() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractCipherBean.setNonce(Nonce nonce)
Sets the nonce/IV generation strategy.
|
| Constructor and Description |
|---|
AbstractBlockCipherBean(java.security.KeyStore keyStore,
java.lang.String keyAlias,
java.lang.String keyPassword,
Nonce nonce)
Creates a new instance by specifying all properties.
|
AbstractCipherBean(java.security.KeyStore keyStore,
java.lang.String keyAlias,
java.lang.String keyPassword,
Nonce nonce)
Creates a new instance by specifying all properties.
|
AEADBlockCipherBean(Spec<org.bouncycastle.crypto.modes.AEADBlockCipher> blockCipherSpec,
java.security.KeyStore keyStore,
java.lang.String keyAlias,
java.lang.String keyPassword,
Nonce nonce)
Creates a new instance by specifying all properties.
|
BufferedBlockCipherBean(Spec<org.bouncycastle.crypto.BufferedBlockCipher> blockCipherSpec,
java.security.KeyStore keyStore,
java.lang.String keyAlias,
java.lang.String keyPassword,
Nonce nonce)
Creates a new instance by specifying all properties.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BigIntegerCounterNonce
Uses a
BigInteger to back a counter in order to produce nonces of arbitrary length. |
class |
EncryptedNonce
Nonce generation strategy that produces a random value according to NIST
SP-800-38a, appendix C, method 1 (encrypted nonce), suitable for use with any block cipher mode described in that
standard except OFB.
|
class |
LongCounterNonce
Simple counter nonce that uses a long integer counter internally and produces 8-byte nonces.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CounterNonce
Deterministic nonce generation strategy that uses a counter for the invocation field as described in NIST SP-800-38D, section 8.2.1.
|
class |
RBGNonce
RBG-based nonce generation strategy that uses a RBG component to produce values for the invocation field as described
in NIST SP-800-38D, section 8.2.2.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
CipherUtil.encrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher,
javax.crypto.SecretKey key,
Nonce nonce,
byte[] data)
Encrypts data using an AEAD cipher.
|
static void |
CipherUtil.encrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher,
javax.crypto.SecretKey key,
Nonce nonce,
java.io.InputStream input,
java.io.OutputStream output)
Encrypts data using an AEAD cipher.
|
static byte[] |
CipherUtil.encrypt(org.bouncycastle.crypto.BlockCipher cipher,
javax.crypto.SecretKey key,
Nonce nonce,
byte[] data)
Encrypts data using the given block cipher with PKCS5 padding.
|
static void |
CipherUtil.encrypt(org.bouncycastle.crypto.BlockCipher cipher,
javax.crypto.SecretKey key,
Nonce nonce,
java.io.InputStream input,
java.io.OutputStream output)
Encrypts data using the given block cipher with PKCS5 padding.
|