Top Fields Constructors Methods
org.bouncycastle.openssl.bc

pack-priv Class PEMUtilities

extends Object
Class Inheritance
Imports
java.util.HashMap, .HashSet, .Map, .Set, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.crypto.BlockCipher, .BufferedBlockCipher, .PBEParametersGenerator, org.bouncycastle.crypto.digests.SHA1Digest, org.bouncycastle.crypto.engines.AESEngine, .BlowfishEngine, .DESEngine, .DESedeEngine, .RC2Engine, org.bouncycastle.crypto.generators.OpenSSLPBEParametersGenerator, .PKCS5S2ParametersGenerator, org.bouncycastle.crypto.modes.CBCBlockCipher, .CFBBlockCipher, .OFBBlockCipher, org.bouncycastle.crypto.paddings.BlockCipherPadding, .PKCS7Padding, .PaddedBufferedBlockCipher, org.bouncycastle.crypto.params.KeyParameter, .ParametersWithIV, .RC2Parameters, org.bouncycastle.openssl.EncryptionException, .PEMException, org.bouncycastle.util.Integers

Field Summary

Modifier and TypeField and Description
private static final Map<K, V>
private static final Set<E>
private static final Set<E>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
crypt(boolean encrypt, byte[] bytes, char[] password, String dekAlgName, byte[] iv)

public static KeyParameter
generateSecretKeyForPKCS5Scheme2(String algorithm, char[] password, byte[] salt, int iterationCount)

private static KeyParameter
getKey(char[] password, int keyLength, byte[] salt)

private static KeyParameter
getKey(char[] password, int keyLength, byte[] salt, boolean des2)

pack-priv static int
getKeySize(String algorithm)

public static boolean
pack-priv static boolean
pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

KEYSIZESback to summary
private static final Map<K, V> KEYSIZES
PKCS5_SCHEME_1back to summary
private static final Set<E> PKCS5_SCHEME_1
PKCS5_SCHEME_2back to summary
private static final Set<E> PKCS5_SCHEME_2

Constructor Detail

PEMUtilitiesback to summary
pack-priv PEMUtilities()

Method Detail

cryptback to summary
pack-priv static byte[] crypt(boolean encrypt, byte[] bytes, char[] password, String dekAlgName, byte[] iv) throws PEMException
generateSecretKeyForPKCS5Scheme2back to summary
public static KeyParameter generateSecretKeyForPKCS5Scheme2(String algorithm, char[] password, byte[] salt, int iterationCount)
getKeyback to summary
private static KeyParameter getKey(char[] password, int keyLength, byte[] salt) throws PEMException
getKeyback to summary
private static KeyParameter getKey(char[] password, int keyLength, byte[] salt, boolean des2) throws PEMException
getKeySizeback to summary
pack-priv static int getKeySize(String algorithm)
isPKCS12back to summary
public static boolean isPKCS12(ASN1ObjectIdentifier algOid)
isPKCS5Scheme1back to summary
pack-priv static boolean isPKCS5Scheme1(ASN1ObjectIdentifier algOid)
isPKCS5Scheme2back to summary
pack-priv static boolean isPKCS5Scheme2(ASN1ObjectIdentifier algOid)