Top Inners Fields Constructors Methods
org.bouncycastle.cms.jcajce

public Class EnvelopedDataHelper

extends Object
Class Inheritance
Imports
java.security.AlgorithmParameterGenerator, .AlgorithmParameters, .GeneralSecurityException, .InvalidAlgorithmParameterException, .InvalidKeyException, .Key, .KeyFactory, .KeyPairGenerator, .NoSuchAlgorithmException, .NoSuchProviderException, .PrivateKey, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, java.util.HashMap, .HashSet, .Map, .Set, javax.crypto.Cipher, .KeyAgreement, .KeyGenerator, .Mac, .NoSuchPaddingException, .SecretKey, .SecretKeyFactory, javax.crypto.spec.IvParameterSpec, .PBEKeySpec, .RC2ParameterSpec, .SecretKeySpec, org.bouncycastle.asn1.ASN1Encodable, .ASN1Null, .ASN1ObjectIdentifier, .ASN1OctetString, .DERNull, .DEROctetString, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PBKDF2Params, .PKCSObjectIdentifiers, .RC2CBCParameter, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.cms.CMSAlgorithm, .CMSEnvelopedDataGenerator, .CMSException, .PasswordRecipient, org.bouncycastle.operator.DefaultSecretKeySizeProvider, .GenericKey, .SecretKeySizeProvider, .SymmetricKeyUnwrapper, org.bouncycastle.operator.jcajce.JceAsymmetricKeyUnwrapper, .JceKTSKeyUnwrapper

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface

Field Summary

Modifier and TypeField and Description
private static final Set<E>
protected static final Map<K, V>
protected static final Map<K, V>
private JcaJceExtHelper
protected static final SecretKeySizeProvider
protected static final Map<K, V>
private static final Map<K, V>
private static final short[]
private static final short[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
calculateDerivedKey(int schemeID, char[] password, AlgorithmIdentifier derivationAlgorithm, int keySize)

pack-priv AlgorithmParameterGenerator
pack-priv AlgorithmParameters
public JceAsymmetricKeyUnwrapper
createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)

public JceKTSKeyUnwrapper
createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo)

pack-priv Cipher
public Cipher
createContentCipher(final Key sKey, final AlgorithmIdentifier encryptionAlgID)

pack-priv Mac
createContentMac(final Key sKey, final AlgorithmIdentifier macAlgId)

pack-priv KeyAgreement
public KeyFactory
public KeyGenerator
pack-priv KeyPairGenerator
pack-priv Mac
pack-priv Cipher
pack-priv SecretKeyFactory
createSecretKeyFactory(String keyFactoryAlgorithm)

public SymmetricKeyUnwrapper
createSymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey)

pack-priv static Object
pack-priv AlgorithmParameters
pack-priv AlgorithmIdentifier
public AlgorithmIdentifier
pack-priv String
pack-priv Key
public Key
pack-priv boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authEnvelopedAlgorithmsback to summary
private static final Set<E> authEnvelopedAlgorithms
BASE_CIPHER_NAMESback to summary
protected static final Map<K, V> BASE_CIPHER_NAMES
CIPHER_ALG_NAMESback to summary
protected static final Map<K, V> CIPHER_ALG_NAMES
helperback to summary
private JcaJceExtHelper helper
KEY_SIZE_PROVIDERback to summary
protected static final SecretKeySizeProvider KEY_SIZE_PROVIDER
MAC_ALG_NAMESback to summary
protected static final Map<K, V> MAC_ALG_NAMES
PBKDF2_ALG_NAMESback to summary
private static final Map<K, V> PBKDF2_ALG_NAMES
rc2Ekbback to summary
private static final short[] rc2Ekb
rc2Tableback to summary
private static final short[] rc2Table

Constructor Detail

EnvelopedDataHelperback to summary
pack-priv EnvelopedDataHelper(JcaJceExtHelper helper)

Method Detail

calculateDerivedKeyback to summary
pack-priv byte[] calculateDerivedKey(int schemeID, char[] password, AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException
createAlgorithmParameterGeneratorback to summary
pack-priv AlgorithmParameterGenerator createAlgorithmParameterGenerator(ASN1ObjectIdentifier algorithm) throws GeneralSecurityException
createAlgorithmParametersback to summary
pack-priv AlgorithmParameters createAlgorithmParameters(ASN1ObjectIdentifier algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
createAsymmetricUnwrapperback to summary
public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
createAsymmetricUnwrapperback to summary
public JceKTSKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo)
createCipherback to summary
pack-priv Cipher createCipher(ASN1ObjectIdentifier algorithm) throws CMSException
createContentCipherback to summary
public Cipher createContentCipher(final Key sKey, final AlgorithmIdentifier encryptionAlgID) throws CMSException
createContentMacback to summary
pack-priv Mac createContentMac(final Key sKey, final AlgorithmIdentifier macAlgId) throws CMSException
createKeyAgreementback to summary
pack-priv KeyAgreement createKeyAgreement(ASN1ObjectIdentifier algorithm) throws CMSException
createKeyFactoryback to summary
public KeyFactory createKeyFactory(ASN1ObjectIdentifier algorithm) throws CMSException
createKeyGeneratorback to summary
public KeyGenerator createKeyGenerator(ASN1ObjectIdentifier algorithm) throws CMSException
createKeyPairGeneratorback to summary
pack-priv KeyPairGenerator createKeyPairGenerator(ASN1ObjectIdentifier algorithm) throws CMSException
createMacback to summary
pack-priv Mac createMac(ASN1ObjectIdentifier algorithm) throws CMSException
createRFC3211Wrapperback to summary
pack-priv Cipher createRFC3211Wrapper(ASN1ObjectIdentifier algorithm) throws CMSException
createSecretKeyFactoryback to summary
pack-priv SecretKeyFactory createSecretKeyFactory(String keyFactoryAlgorithm) throws NoSuchProviderException, NoSuchAlgorithmException
createSymmetricUnwrapperback to summary
public SymmetricKeyUnwrapper createSymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey)
executeback to summary
pack-priv static Object execute(EnvelopedDataHelper.JCECallback callback) throws CMSException
generateParametersback to summary
pack-priv AlgorithmParameters generateParameters(ASN1ObjectIdentifier encryptionOID, SecretKey encKey, SecureRandom rand) throws CMSException
getAlgorithmIdentifierback to summary
pack-priv AlgorithmIdentifier getAlgorithmIdentifier(ASN1ObjectIdentifier encryptionOID, AlgorithmParameters params) throws CMSException
getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier(ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec)
getBaseCipherNameback to summary
pack-priv String getBaseCipherName(ASN1ObjectIdentifier algorithm)
getJceKeyback to summary
pack-priv Key getJceKey(GenericKey key)
getJceKeyback to summary
public Key getJceKey(ASN1ObjectIdentifier algorithm, GenericKey key)
isAuthEnvelopedback to summary
pack-priv boolean isAuthEnveloped(ASN1ObjectIdentifier algorithm)
keySizeCheckback to summary
public void keySizeCheck(AlgorithmIdentifier keyAlgorithm, Key key) throws CMSException
org.bouncycastle.cms.jcajce back to summary

pack-priv Interface EnvelopedDataHelper.JCECallback


Method Summary

Modifier and TypeMethod and Description
public Object

Method Detail

doInJCEback to summary
public Object doInJCE() throws CMSException, InvalidAlgorithmParameterException, InvalidKeyException, InvalidParameterSpecException, NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException