class org.bouncycastle.cms.bc.EnvelopedDataHelper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.cms.bc.EnvelopedDataHelper
super_class: java.lang.Object
{
protected static final java.util.Map BASE_CIPHER_NAMES;
descriptor: Ljava/util/Map;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected static final java.util.Map MAC_ALG_NAMES;
descriptor: Ljava/util/Map;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private static final java.util.Map prfs;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.BASE_CIPHER_NAMES:Ljava/util/Map;
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.MAC_ALG_NAMES:Ljava/util/Map;
2: invokestatic org.bouncycastle.cms.bc.EnvelopedDataHelper.createTable:()Ljava/util/Map;
putstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.prfs:Ljava/util/Map;
3: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.BASE_CIPHER_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.DES_EDE3_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "DESEDE"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.BASE_CIPHER_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.AES128_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "AES"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.BASE_CIPHER_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.AES192_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "AES"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.BASE_CIPHER_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.AES256_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "AES"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.MAC_ALG_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.DES_EDE3_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "DESEDEMac"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.MAC_ALG_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.AES128_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "AESMac"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.MAC_ALG_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.AES192_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "AESMac"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.MAC_ALG_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.AES256_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "AESMac"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.MAC_ALG_NAMES:Ljava/util/Map;
getstatic org.bouncycastle.cms.CMSAlgorithm.RC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "RC2Mac"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: return
LocalVariableTable:
Start End Slot Name Signature
private static java.util.Map createTable();
descriptor: ()Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 0
start local 0 1: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_hmacWithSHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
new org.bouncycastle.cms.bc.EnvelopedDataHelper$1
dup
invokespecial org.bouncycastle.cms.bc.EnvelopedDataHelper$1.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_hmacWithSHA224:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
new org.bouncycastle.cms.bc.EnvelopedDataHelper$2
dup
invokespecial org.bouncycastle.cms.bc.EnvelopedDataHelper$2.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_hmacWithSHA256:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
new org.bouncycastle.cms.bc.EnvelopedDataHelper$3
dup
invokespecial org.bouncycastle.cms.bc.EnvelopedDataHelper$3.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_hmacWithSHA384:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
new org.bouncycastle.cms.bc.EnvelopedDataHelper$4
dup
invokespecial org.bouncycastle.cms.bc.EnvelopedDataHelper$4.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_hmacWithSHA512:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
new org.bouncycastle.cms.bc.EnvelopedDataHelper$5
dup
invokespecial org.bouncycastle.cms.bc.EnvelopedDataHelper$5.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 table Ljava/util/Map;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cms/bc/EnvelopedDataHelper;
static org.bouncycastle.crypto.ExtendedDigest getPRF(org.bouncycastle.asn1.x509.AlgorithmIdentifier);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/crypto/ExtendedDigest;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.bouncycastle.cms.bc.EnvelopedDataHelper.prfs:Ljava/util/Map;
aload 0
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bouncycastle.operator.bc.BcDigestProvider
aconst_null
invokeinterface org.bouncycastle.operator.bc.BcDigestProvider.get:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/crypto/ExtendedDigest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 algID Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
Exceptions:
throws org.bouncycastle.operator.OperatorCreationException
MethodParameters:
Name Flags
algID
static org.bouncycastle.crypto.Wrapper createRFC3211Wrapper(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/crypto/Wrapper;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_aes128_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifne 3
1: getstatic org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_aes192_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifne 3
2: getstatic org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_aes256_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 4
3: StackMap locals:
StackMap stack:
new org.bouncycastle.crypto.engines.RFC3211WrapEngine
dup
new org.bouncycastle.crypto.engines.AESEngine
dup
invokespecial org.bouncycastle.crypto.engines.AESEngine.<init>:()V
invokespecial org.bouncycastle.crypto.engines.RFC3211WrapEngine.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
areturn
4: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.des_EDE3_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 6
5: new org.bouncycastle.crypto.engines.RFC3211WrapEngine
dup
new org.bouncycastle.crypto.engines.DESedeEngine
dup
invokespecial org.bouncycastle.crypto.engines.DESedeEngine.<init>:()V
invokespecial org.bouncycastle.crypto.engines.RFC3211WrapEngine.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
areturn
6: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.desCBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 8
7: new org.bouncycastle.crypto.engines.RFC3211WrapEngine
dup
new org.bouncycastle.crypto.engines.DESEngine
dup
invokespecial org.bouncycastle.crypto.engines.DESEngine.<init>:()V
invokespecial org.bouncycastle.crypto.engines.RFC3211WrapEngine.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
areturn
8: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.RC2_CBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 10
9: new org.bouncycastle.crypto.engines.RFC3211WrapEngine
dup
new org.bouncycastle.crypto.engines.RC2Engine
dup
invokespecial org.bouncycastle.crypto.engines.RC2Engine.<init>:()V
invokespecial org.bouncycastle.crypto.engines.RFC3211WrapEngine.<init>:(Lorg/bouncycastle/crypto/BlockCipher;)V
areturn
10: StackMap locals:
StackMap stack:
new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "cannot recognise wrapper: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
algorithm
static java.lang.Object createContentCipher(boolean, org.bouncycastle.crypto.CipherParameters, org.bouncycastle.asn1.x509.AlgorithmIdentifier);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 0
aload 1
aload 2
invokestatic org.bouncycastle.crypto.util.CipherFactory.createContentCipher:(ZLorg/bouncycastle/crypto/CipherParameters;Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 3
start local 3 3: new org.bouncycastle.cms.CMSException
dup
aload 3
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 forEncryption Z
0 4 1 encKey Lorg/bouncycastle/crypto/CipherParameters;
0 4 2 encryptionAlgID Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
3 4 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
forEncryption
encKey
encryptionAlgID
org.bouncycastle.asn1.x509.AlgorithmIdentifier generateEncryptionAlgID(org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.crypto.params.KeyParameter, java.security.SecureRandom);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/crypto/params/KeyParameter;Ljava/security/SecureRandom;)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0000)
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
arraylength
bipush 8
imul
aload 3
invokestatic org.bouncycastle.crypto.util.AlgorithmIdentifierFactory.generateEncryptionAlgID:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;ILjava/security/SecureRandom;)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 4
start local 4 3: new org.bouncycastle.cms.CMSException
dup
aload 4
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
aload 4
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cms/bc/EnvelopedDataHelper;
0 4 1 encryptionOID Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 4 2 encKey Lorg/bouncycastle/crypto/params/KeyParameter;
0 4 3 random Ljava/security/SecureRandom;
3 4 4 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
encryptionOID
encKey
random
org.bouncycastle.crypto.CipherKeyGenerator createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier, java.security.SecureRandom);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljava/security/SecureRandom;)Lorg/bouncycastle/crypto/CipherKeyGenerator;
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.bouncycastle.crypto.util.CipherKeyGeneratorFactory.createKeyGenerator:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljava/security/SecureRandom;)Lorg/bouncycastle/crypto/CipherKeyGenerator;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 3
start local 3 3: new org.bouncycastle.cms.CMSException
dup
aload 3
invokevirtual java.lang.IllegalArgumentException.getMessage:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cms/bc/EnvelopedDataHelper;
0 4 1 algorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 4 2 random Ljava/security/SecureRandom;
3 4 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
algorithm
random
}
SourceFile: "EnvelopedDataHelper.java"
NestMembers:
org.bouncycastle.cms.bc.EnvelopedDataHelper$1 org.bouncycastle.cms.bc.EnvelopedDataHelper$2 org.bouncycastle.cms.bc.EnvelopedDataHelper$3 org.bouncycastle.cms.bc.EnvelopedDataHelper$4 org.bouncycastle.cms.bc.EnvelopedDataHelper$5
InnerClasses:
org.bouncycastle.cms.bc.EnvelopedDataHelper$1
org.bouncycastle.cms.bc.EnvelopedDataHelper$2
org.bouncycastle.cms.bc.EnvelopedDataHelper$3
org.bouncycastle.cms.bc.EnvelopedDataHelper$4
org.bouncycastle.cms.bc.EnvelopedDataHelper$5