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 SecretKeySizeProvider |
KEY_SIZE_PROVIDER |
protected static java.util.Map |
MAC_ALG_NAMES |
Modifier and Type | Method and Description |
---|---|
JceAsymmetricKeyUnwrapper |
createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey) |
JceKTSKeyUnwrapper |
createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey,
byte[] partyUInfo,
byte[] partyVInfo) |
javax.crypto.Cipher |
createContentCipher(java.security.Key sKey,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID) |
AsymmetricKeyUnwrapper |
createKEMUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
java.security.PrivateKey keyEncryptionKey) |
java.security.KeyFactory |
createKeyFactory(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) |
javax.crypto.KeyGenerator |
createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) |
SymmetricKeyUnwrapper |
createSymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
javax.crypto.SecretKey keyEncryptionKey) |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID,
java.security.spec.AlgorithmParameterSpec paramSpec) |
java.security.Key |
getJceKey(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
GenericKey key) |
void |
keySizeCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm,
java.security.Key key) |
protected static final 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(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, GenericKey key)
public void keySizeCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm, java.security.Key key) throws CMSException
CMSException
public javax.crypto.Cipher createContentCipher(java.security.Key sKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID) throws CMSException
CMSException
public javax.crypto.KeyGenerator createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) throws CMSException
CMSException
public java.security.KeyFactory createKeyFactory(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) throws CMSException
CMSException
public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, java.security.PrivateKey keyEncryptionKey)
public JceKTSKeyUnwrapper createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, java.security.PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo)
public SymmetricKeyUnwrapper createSymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, javax.crypto.SecretKey keyEncryptionKey)
public AsymmetricKeyUnwrapper createKEMUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, java.security.PrivateKey keyEncryptionKey)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID, java.security.spec.AlgorithmParameterSpec paramSpec)