| Package | Description |
|---|---|
| org.cryptacular.adapter | |
| org.cryptacular.bean | |
| org.cryptacular.util |
| Modifier and Type | Method and Description |
|---|---|
int |
BlockCipherAdapter.doFinal(byte[] out,
int outOff)
Finish the encryption/decryption operation (e.g.
|
int |
AEADBlockCipherAdapter.doFinal(byte[] out,
int outOff) |
int |
BufferedBlockCipherAdapter.doFinal(byte[] out,
int outOff) |
void |
CipherAdapter.init(boolean forEncryption,
org.bouncycastle.crypto.CipherParameters params)
Initialize the underlying cipher.
|
void |
AEADBlockCipherAdapter.init(boolean forEncryption,
org.bouncycastle.crypto.CipherParameters params) |
void |
BufferedBlockCipherAdapter.init(boolean forEncryption,
org.bouncycastle.crypto.CipherParameters params) |
int |
CipherAdapter.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
Process an array of bytes, producing output if necessary.
|
int |
AEADBlockCipherAdapter.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
int |
BufferedBlockCipherAdapter.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleHashBean.compare(byte[] hash,
java.lang.Object... data)
Compares a known hash value with the hash of the given data.
|
boolean |
EncodingHashBean.compare(java.lang.String hash,
java.lang.Object... data)
Compares a known hash value with the hash of the given data.
|
boolean |
HashBean.compare(T hash,
java.lang.Object... data)
Compares a known hash value with the hash of the given data.
|
byte[] |
CipherBean.decrypt(byte[] input)
Decrypts the input data using a block cipher.
|
byte[] |
AbstractCipherBean.decrypt(byte[] input) |
void |
CipherBean.decrypt(java.io.InputStream input,
java.io.OutputStream output)
Decrypts the data from the input stream onto the output stream using a symmetric cipher.
|
void |
AbstractCipherBean.decrypt(java.io.InputStream input,
java.io.OutputStream output) |
byte[] |
CipherBean.encrypt(byte[] input)
Encrypts the input data using a symmetric cipher.
|
byte[] |
AbstractCipherBean.encrypt(byte[] input) |
void |
CipherBean.encrypt(java.io.InputStream input,
java.io.OutputStream output)
Encrypts the data from the input stream onto the output stream using a symmetric cipher.
|
void |
AbstractCipherBean.encrypt(java.io.InputStream input,
java.io.OutputStream output) |
byte[] |
SimpleHashBean.hash(java.lang.Object... data) |
java.lang.String |
EncodingHashBean.hash(java.lang.Object... data)
Hashes the given data.
|
T |
HashBean.hash(java.lang.Object... data)
Hashes the given data.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
HashUtil.compareHash(org.bouncycastle.crypto.Digest digest,
byte[] hash,
int iterations,
java.lang.Object... data)
Determines whether the hash of the given input equals a known value.
|
static boolean |
HashUtil.compareHash(org.bouncycastle.crypto.Digest digest,
SaltedHash hash,
int iterations,
boolean saltAfterData,
java.lang.Object... data)
Determines whether the salted hash of the given input equals a known hash value.
|
static byte[] |
CipherUtil.decrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher,
javax.crypto.SecretKey key,
byte[] data)
Decrypts data using an AEAD cipher.
|
static void |
CipherUtil.decrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher,
javax.crypto.SecretKey key,
java.io.InputStream input,
java.io.OutputStream output)
Decrypts data using an AEAD cipher.
|
static byte[] |
CipherUtil.decrypt(org.bouncycastle.crypto.BlockCipher cipher,
javax.crypto.SecretKey key,
byte[] data)
Decrypts data using the given block cipher with PKCS5 padding.
|
static void |
CipherUtil.decrypt(org.bouncycastle.crypto.BlockCipher cipher,
javax.crypto.SecretKey key,
java.io.InputStream input,
java.io.OutputStream output)
Decrypts data using the given block cipher with PKCS5 padding.
|
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.
|
static byte[] |
HashUtil.hash(org.bouncycastle.crypto.Digest digest,
int iterations,
java.lang.Object... data)
Computes the iterated hash of the given data using the given algorithm.
|
static byte[] |
HashUtil.hash(org.bouncycastle.crypto.Digest digest,
java.lang.Object... data)
Computes the hash of the given data using the given algorithm.
|
static boolean |
KeyPairUtil.isKeyPair(java.security.interfaces.DSAPublicKey pubKey,
java.security.interfaces.DSAPrivateKey privKey)
Determines whether the given DSA public and private keys form a proper key pair by computing and verifying a
digital signature with the keys.
|
static boolean |
KeyPairUtil.isKeyPair(java.security.interfaces.ECPublicKey pubKey,
java.security.interfaces.ECPrivateKey privKey)
Determines whether the given EC public and private keys form a proper key pair by computing and verifying a digital
signature with the keys.
|
static boolean |
KeyPairUtil.isKeyPair(java.security.PublicKey pubKey,
java.security.PrivateKey privKey)
Determines whether the given public and private keys form a proper key pair by computing and verifying a digital
signature with the keys.
|
static boolean |
KeyPairUtil.isKeyPair(java.security.interfaces.RSAPublicKey pubKey,
java.security.interfaces.RSAPrivateKey privKey)
Determines whether the given RSA public and private keys form a proper key pair by computing and verifying a
digital signature with the keys.
|