|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.jce.provider.BrokenPBE.Util
public static class BrokenPBE.Util
uses the appropriate mixer to generate the key and IV if neccessary.
Constructor Summary | |
---|---|
BrokenPBE.Util()
|
Method Summary | |
---|---|
private static PBEParametersGenerator |
makePBEGenerator(int type,
int hash)
|
(package private) static CipherParameters |
makePBEMacParameters(JCEPBEKey pbeKey,
java.security.spec.AlgorithmParameterSpec spec,
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. |
(package private) static CipherParameters |
makePBEParameters(JCEPBEKey pbeKey,
java.security.spec.AlgorithmParameterSpec spec,
int type,
int hash,
java.lang.String targetAlgorithm,
int keySize,
int ivSize)
construct a key and iv (if neccessary) suitable for use with a Cipher. |
private static void |
setOddParity(byte[] bytes)
a faulty parity routine... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrokenPBE.Util()
Method Detail |
---|
private static void setOddParity(byte[] bytes)
bytes
- the byte array to set the parity on.private static PBEParametersGenerator makePBEGenerator(int type, int hash)
static CipherParameters makePBEParameters(JCEPBEKey pbeKey, java.security.spec.AlgorithmParameterSpec spec, int type, int hash, java.lang.String targetAlgorithm, int keySize, int ivSize)
static CipherParameters makePBEMacParameters(JCEPBEKey pbeKey, java.security.spec.AlgorithmParameterSpec spec, int type, int hash, int keySize)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |