Top Inners Fields
org.bouncycastle.jce.provider

public Interface BrokenPBE

Additional top-level class in compilation unit: OldPKCS12ParametersGenerator.

Known Direct Implementers
org.bouncycastle.jce.provider.BrokenJCEBlockCipher
Imports
java.security.spec.AlgorithmParameterSpec, javax.crypto.spec.PBEParameterSpec, org.bouncycastle.crypto.CipherParameters, .Digest, .PBEParametersGenerator, org.bouncycastle.crypto.digests.MD5Digest, .RIPEMD160Digest, .SHA1Digest, org.bouncycastle.crypto.generators.PKCS12ParametersGenerator, .PKCS5S1ParametersGenerator, .PKCS5S2ParametersGenerator, org.bouncycastle.crypto.params.KeyParameter, .ParametersWithIV, org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
BrokenPBE.Util

uses the appropriate mixer to generate the key and IV if neccessary.

Field Summary

Modifier and TypeField 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

Field Detail

MD5back to summary
public static final int MD5
OLD_PKCS12back to summary
public static final int OLD_PKCS12
PKCS12back to summary
public static final int PKCS12
PKCS5S1back to summary
public static final int PKCS5S1
PKCS5S2back to summary
public static final int PKCS5S2
RIPEMD160back to summary
public static final int RIPEMD160
SHA1back to summary
public static final int SHA1
org.bouncycastle.jce.provider back to summary

public Class BrokenPBE.Util

extends Object
Class Inheritance

uses the appropriate mixer to generate the key and IV if neccessary.

Constructor Summary

AccessConstructor and Description
public
Util()

Method Summary

Modifier and TypeMethod and Description
private static PBEParametersGenerator
makePBEGenerator(int type, int hash)

pack-priv static CipherParameters
makePBEMacParameters(BCPBEKey pbeKey, 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.

pack-priv static CipherParameters
makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, int type, int hash, String targetAlgorithm, int keySize, int ivSize)

construct a key and iv (if neccessary) suitable for use with a Cipher.

private static void
setOddParity(byte[]
the byte array to set the parity on.
bytes
)

a faulty parity routine...

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilback to summary
public Util()

Method Detail

makePBEGeneratorback to summary
private static PBEParametersGenerator makePBEGenerator(int type, int hash)
makePBEMacParametersback to summary
pack-priv static CipherParameters makePBEMacParameters(BCPBEKey pbeKey, 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.

makePBEParametersback to summary
pack-priv static CipherParameters makePBEParameters(BCPBEKey pbeKey, AlgorithmParameterSpec spec, int type, int hash, String targetAlgorithm, int keySize, int ivSize)

construct a key and iv (if neccessary) suitable for use with a Cipher.

setOddParityback to summary
private static void setOddParity(byte[] bytes)

a faulty parity routine...

Parameters
bytes:byte[]

the byte array to set the parity on.