Class EnvelopedDataHelper

java.lang.Object
org.bouncycastle.cms.jcajce.EnvelopedDataHelper

public class EnvelopedDataHelper extends Object
  • Field Details

    • 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 Details

    • getJceKey

      public Key getJceKey(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, GenericKey key)
    • getJceKey

      public Key getJceKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId, GenericKey key) throws CMSException
      Throws:
      CMSException
    • 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)
    • createKEMUnwrapper

      public AsymmetricKeyUnwrapper createKEMUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
    • getAlgorithmIdentifier

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec)