public class EnvelopedDataHelper extends Object
Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
JceAsymmetricKeyUnwrapper |
createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
PrivateKey keyEncryptionKey) |
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) |
protected static final SecretKeySizeProvider KEY_SIZE_PROVIDER
protected static final Map BASE_CIPHER_NAMES
protected static final Map CIPHER_ALG_NAMES
protected static final Map MAC_ALG_NAMES
public Key getJceKey(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, GenericKey key)
public void keySizeCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm, Key key) throws CMSException
CMSException
public Cipher createContentCipher(Key sKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID) throws CMSException
CMSException
public KeyGenerator createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) throws CMSException
CMSException
public KeyFactory createKeyFactory(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) throws CMSException
CMSException
public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
public SymmetricKeyUnwrapper createSymmetricUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec)
Copyright © 2016 BouncyCastle.org. All rights reserved.