public class EnvelopedDataHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map |
BASE_CIPHER_NAMES |
protected static java.util.Map |
CIPHER_ALG_NAMES |
protected static org.bouncycastle.operator.SecretKeySizeProvider |
KEY_SIZE_PROVIDER |
protected static java.util.Map |
MAC_ALG_NAMES |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.operator.jcajce.JceAsymmetricKeyUnwrapper |
createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey) |
org.bouncycastle.operator.jcajce.JceKTSKeyUnwrapper |
createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey,
byte[] partyUInfo,
byte[] partyVInfo) |
javax.crypto.Cipher |
createContentCipher(java.security.Key sKey,
AlgorithmIdentifier encryptionAlgID) |
java.security.KeyFactory |
createKeyFactory(ASN1ObjectIdentifier algorithm) |
javax.crypto.KeyGenerator |
createKeyGenerator(ASN1ObjectIdentifier algorithm) |
org.bouncycastle.operator.SymmetricKeyUnwrapper |
createSymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
javax.crypto.SecretKey keyEncryptionKey) |
AlgorithmIdentifier |
getAlgorithmIdentifier(ASN1ObjectIdentifier macOID,
java.security.spec.AlgorithmParameterSpec paramSpec) |
java.security.Key |
getJceKey(ASN1ObjectIdentifier algorithm,
org.bouncycastle.operator.GenericKey key) |
void |
keySizeCheck(AlgorithmIdentifier keyAlgorithm,
java.security.Key key) |
protected static final org.bouncycastle.operator.SecretKeySizeProvider KEY_SIZE_PROVIDER
protected static final java.util.Map BASE_CIPHER_NAMES
protected static final java.util.Map CIPHER_ALG_NAMES
protected static final java.util.Map MAC_ALG_NAMES
public java.security.Key getJceKey(ASN1ObjectIdentifier algorithm,
org.bouncycastle.operator.GenericKey key)
public void keySizeCheck(AlgorithmIdentifier keyAlgorithm,
java.security.Key key)
throws CMSException
CMSExceptionpublic javax.crypto.Cipher createContentCipher(java.security.Key sKey,
AlgorithmIdentifier encryptionAlgID)
throws CMSException
CMSExceptionpublic javax.crypto.KeyGenerator createKeyGenerator(ASN1ObjectIdentifier algorithm)
throws CMSException
CMSExceptionpublic java.security.KeyFactory createKeyFactory(ASN1ObjectIdentifier algorithm)
throws CMSException
CMSExceptionpublic org.bouncycastle.operator.jcajce.JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey)
public org.bouncycastle.operator.jcajce.JceKTSKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey,
byte[] partyUInfo,
byte[] partyVInfo)
public org.bouncycastle.operator.SymmetricKeyUnwrapper createSymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
javax.crypto.SecretKey keyEncryptionKey)
public AlgorithmIdentifier getAlgorithmIdentifier(ASN1ObjectIdentifier macOID,
java.security.spec.AlgorithmParameterSpec paramSpec)