Package org.bouncycastle.cms.jcajce
Class EnvelopedDataHelper
- java.lang.Object
-
- org.bouncycastle.cms.jcajce.EnvelopedDataHelper
-
public class EnvelopedDataHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map
BASE_CIPHER_NAMES
protected static Map
CIPHER_ALG_NAMES
protected static SecretKeySizeProvider
KEY_SIZE_PROVIDER
protected static Map
MAC_ALG_NAMES
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JceAsymmetricKeyUnwrapper
createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
JceKTSKeyUnwrapper
createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo)
Cipher
createContentCipher(Key sKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID)
KeyFactory
createKeyFactory(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
KeyGenerator
createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
SymmetricKeyUnwrapper
createSymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey)
org.bouncycastle.asn1.x509.AlgorithmIdentifier
getAlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec)
Key
getJceKey(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, GenericKey key)
void
keySizeCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm, Key key)
-
-
-
Field Detail
-
KEY_SIZE_PROVIDER
protected static final SecretKeySizeProvider KEY_SIZE_PROVIDER
-
BASE_CIPHER_NAMES
protected static final Map BASE_CIPHER_NAMES
-
CIPHER_ALG_NAMES
protected static final Map CIPHER_ALG_NAMES
-
MAC_ALG_NAMES
protected static final Map MAC_ALG_NAMES
-
-
Method Detail
-
getJceKey
public Key getJceKey(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, GenericKey key)
-
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)
-
-