| Modifier and Type | Class and Description |
|---|---|
| public static class | PBE.Util
uses the appropriate mixer to generate the key and IV if necessary. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| GOST3411 | back to summary |
|---|---|
| public static final int GOST3411 | |
| MD2 | back to summary |
|---|---|
| public static final int MD2 | |
| MD5 | back to summary |
|---|---|
| public static final int MD5 | |
| OPENSSL | back to summary |
|---|---|
| public static final int OPENSSL | |
| PKCS12 | back to summary |
|---|---|
| public static final int PKCS12 | |
| PKCS5S1 | back to summary |
|---|---|
| public static final int PKCS5S1 | |
| PKCS5S1_UTF8 | back to summary |
|---|---|
| public static final int PKCS5S1_UTF8 | |
| PKCS5S2 | back to summary |
|---|---|
| public static final int PKCS5S2 | |
| PKCS5S2_UTF8 | back to summary |
|---|---|
| public static final int PKCS5S2_UTF8 | |
| RIPEMD160 | back to summary |
|---|---|
| public static final int RIPEMD160 | |
| SHA1 | back to summary |
|---|---|
| public static final int SHA1 | |
| SHA224 | back to summary |
|---|---|
| public static final int SHA224 | |
| SHA256 | back to summary |
|---|---|
| public static final int SHA256 | |
| SHA384 | back to summary |
|---|---|
| public static final int SHA384 | |
| SHA3_224 | back to summary |
|---|---|
| public static final int SHA3_224 | |
| SHA3_256 | back to summary |
|---|---|
| public static final int SHA3_256 | |
| SHA3_384 | back to summary |
|---|---|
| public static final int SHA3_384 | |
| SHA3_512 | back to summary |
|---|---|
| public static final int SHA3_512 | |
| SHA512 | back to summary |
|---|---|
| public static final int SHA512 | |
| SM3 | back to summary |
|---|---|
| public static final int SM3 | |
| TIGER | back to summary |
|---|---|
| public static final int TIGER | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| private static PBEParametersGenerator | |
| public static CipherParameters | makePBEMacParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec)
generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater. |
| public static CipherParameters | makePBEMacParameters(PBEKeySpec keySpec, int type, int hash, int keySize)
generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater. |
| public static CipherParameters | makePBEMacParameters(SecretKey key, int type, int hash, int keySize, PBEParameterSpec pbeSpec)
generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater. |
| public static CipherParameters | makePBEParameters(byte[] pbeKey, int scheme, int digest, int keySize, int ivSize, AlgorithmParameterSpec spec, String targetAlgorithm)
construct a key and iv (if necessary) suitable for use with a Cipher. |
| public static CipherParameters | makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, String targetAlgorithm)
construct a key and iv (if necessary) suitable for use with a Cipher. |
| public static CipherParameters | makePBEParameters(PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize)
construct a key and iv (if necessary) suitable for use with a Cipher. |
| Util | back to summary |
|---|---|
| public Util() | |
| convertPassword | back to summary |
|---|---|
| private static byte[] convertPassword(int type, PBEKeySpec keySpec) | |
| makePBEGenerator | back to summary |
|---|---|
| private static PBEParametersGenerator makePBEGenerator(int type, int hash) | |
| makePBEMacParameters | back to summary |
|---|---|
| public static CipherParameters makePBEMacParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec) generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater. | |
| makePBEMacParameters | back to summary |
|---|---|
| public static CipherParameters makePBEMacParameters(PBEKeySpec keySpec, int type, int hash, int keySize) generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater. | |
| makePBEMacParameters | back to summary |
|---|---|
| public static CipherParameters makePBEMacParameters(SecretKey key, int type, int hash, int keySize, PBEParameterSpec pbeSpec) generate a PBE based key suitable for a MAC algorithm, the key size is chosen according the MAC size, or the hashing algorithm, whichever is greater. | |
| makePBEParameters | back to summary |
|---|---|
| public static CipherParameters makePBEParameters(byte[] pbeKey, int scheme, int digest, int keySize, int ivSize, AlgorithmParameterSpec spec, String targetAlgorithm) throws InvalidAlgorithmParameterException construct a key and iv (if necessary) suitable for use with a Cipher. | |
| makePBEParameters | back to summary |
|---|---|
| public static CipherParameters makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, String targetAlgorithm) construct a key and iv (if necessary) suitable for use with a Cipher. | |
| makePBEParameters | back to summary |
|---|---|
| public static CipherParameters makePBEParameters(PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize) construct a key and iv (if necessary) suitable for use with a Cipher. | |