Package org.bouncycastle.cms.jcajce
Class EnvelopedDataHelper
java.lang.Object
org.bouncycastle.cms.jcajce.EnvelopedDataHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map
protected static final Map
protected static final SecretKeySizeProvider
protected static final Map
-
Method Summary
Modifier and TypeMethodDescriptioncreateAsymmetricUnwrapper
(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey) createAsymmetricUnwrapper
(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo) createContentCipher
(Key sKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID) createKeyFactory
(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) createKeyGenerator
(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) createSymmetricUnwrapper
(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey) org.bouncycastle.asn1.x509.AlgorithmIdentifier
getAlgorithmIdentifier
(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec) getJceKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, GenericKey key) void
keySizeCheck
(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm, Key key)
-
Field Details
-
KEY_SIZE_PROVIDER
-
BASE_CIPHER_NAMES
-
CIPHER_ALG_NAMES
-
MAC_ALG_NAMES
-
-
Method Details
-
getJceKey
-
keySizeCheck
public void keySizeCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm, Key key) throws CMSException - Throws:
CMSException
-
createContentCipher
public Cipher createContentCipher(Key sKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID) throws CMSException - Throws:
CMSException
-
createKeyGenerator
public KeyGenerator createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) throws CMSException - Throws:
CMSException
-
createKeyFactory
public KeyFactory createKeyFactory(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) throws CMSException - Throws:
CMSException
-
createAsymmetricUnwrapper
public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey) -
createAsymmetricUnwrapper
public JceKTSKeyUnwrapper createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo) -
createSymmetricUnwrapper
public SymmetricKeyUnwrapper createSymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey) -
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec)
-