class org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor implements org.bouncycastle.operator.OutputEncryptor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor
super_class: java.lang.Object
{
private javax.crypto.SecretKey encKey;
descriptor: Ljavax/crypto/SecretKey;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0002) ACC_PRIVATE
private javax.crypto.Cipher cipher;
descriptor: Ljavax/crypto/Cipher;
flags: (0x0002) ACC_PRIVATE
final org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder this$0;
descriptor: Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder, org.bouncycastle.asn1.ASN1ObjectIdentifier, int, java.security.AlgorithmParameters, java.security.SecureRandom);
descriptor: (Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder;Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;ILjava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=6
start local 0 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
putfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.this$0:Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 1
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder.helper:Lorg/bouncycastle/cms/jcajce/EnvelopedDataHelper;
aload 2
invokevirtual org.bouncycastle.cms.jcajce.EnvelopedDataHelper.createKeyGenerator:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Ljavax/crypto/KeyGenerator;
astore 6
start local 6 3: aload 5
ifnonnull 5
4: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
astore 5
5: StackMap locals: org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder org.bouncycastle.asn1.ASN1ObjectIdentifier int java.security.AlgorithmParameters java.security.SecureRandom javax.crypto.KeyGenerator
StackMap stack:
iload 3
ifge 8
6: aload 6
aload 5
invokevirtual javax.crypto.KeyGenerator.init:(Ljava/security/SecureRandom;)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 6
iload 3
aload 5
invokevirtual javax.crypto.KeyGenerator.init:(ILjava/security/SecureRandom;)V
9: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder.helper:Lorg/bouncycastle/cms/jcajce/EnvelopedDataHelper;
aload 2
invokevirtual org.bouncycastle.cms.jcajce.EnvelopedDataHelper.createCipher:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Ljavax/crypto/Cipher;
putfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.cipher:Ljavax/crypto/Cipher;
10: aload 0
aload 6
invokevirtual javax.crypto.KeyGenerator.generateKey:()Ljavax/crypto/SecretKey;
putfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
11: aload 4
ifnonnull 13
12: aload 1
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder.helper:Lorg/bouncycastle/cms/jcajce/EnvelopedDataHelper;
aload 2
aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
aload 5
invokevirtual org.bouncycastle.cms.jcajce.EnvelopedDataHelper.generateParameters:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljavax/crypto/SecretKey;Ljava/security/SecureRandom;)Ljava/security/AlgorithmParameters;
astore 4
13: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.cipher:Ljavax/crypto/Cipher;
iconst_1
aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
aload 4
aload 5
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
14: goto 17
15: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 7
start local 7 16: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "unable to initialize cipher: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.security.GeneralSecurityException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 7
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 7 17: StackMap locals:
StackMap stack:
aload 4
ifnonnull 19
18: aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getParameters:()Ljava/security/AlgorithmParameters;
astore 4
19: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder.helper:Lorg/bouncycastle/cms/jcajce/EnvelopedDataHelper;
aload 2
aload 4
invokevirtual org.bouncycastle.cms.jcajce.EnvelopedDataHelper.getAlgorithmIdentifier:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljava/security/AlgorithmParameters;)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
putfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.algorithmIdentifier:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
20: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder$CMSOutputEncryptor;
0 21 2 encryptionOID Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 21 3 keySize I
0 21 4 params Ljava/security/AlgorithmParameters;
0 21 5 random Ljava/security/SecureRandom;
3 21 6 keyGen Ljavax/crypto/KeyGenerator;
16 17 7 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
13 14 15 Class java.security.GeneralSecurityException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
this$0 final
encryptionOID
keySize
params
random
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier();
descriptor: ()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.algorithmIdentifier:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder$CMSOutputEncryptor;
public java.io.OutputStream getOutputStream(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new javax.crypto.CipherOutputStream
dup
aload 1
aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.cipher:Ljavax/crypto/Cipher;
invokespecial javax.crypto.CipherOutputStream.<init>:(Ljava/io/OutputStream;Ljavax/crypto/Cipher;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder$CMSOutputEncryptor;
0 1 1 dOut Ljava/io/OutputStream;
MethodParameters:
Name Flags
dOut
public org.bouncycastle.operator.GenericKey getKey();
descriptor: ()Lorg/bouncycastle/operator/GenericKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.bouncycastle.operator.jcajce.JceGenericKey
dup
aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.algorithmIdentifier:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 0
getfield org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
invokespecial org.bouncycastle.operator.jcajce.JceGenericKey.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Ljava/security/Key;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cms/jcajce/JceCMSContentEncryptorBuilder$CMSOutputEncryptor;
}
SourceFile: "JceCMSContentEncryptorBuilder.java"
NestHost: org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder
InnerClasses:
private CMSOutputEncryptor = org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder$CMSOutputEncryptor of org.bouncycastle.cms.jcajce.JceCMSContentEncryptorBuilder