class org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor implements org.bouncycastle.operator.OutputEncryptor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor
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.cert.crmf.jcajce.JceCRMFEncryptorBuilder this$0;
descriptor: Lorg/bouncycastle/cert/crmf/jcajce/JceCRMFEncryptorBuilder;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder, org.bouncycastle.asn1.ASN1ObjectIdentifier, int, java.security.SecureRandom);
descriptor: (Lorg/bouncycastle/cert/crmf/jcajce/JceCRMFEncryptorBuilder;Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;ILjava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=5
start local 0 start local 2 start local 3 start local 4 0: aload 0
aload 1
putfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.this$0:Lorg/bouncycastle/cert/crmf/jcajce/JceCRMFEncryptorBuilder;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 1
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.helper:Lorg/bouncycastle/cert/crmf/jcajce/CRMFHelper;
aload 2
invokevirtual org.bouncycastle.cert.crmf.jcajce.CRMFHelper.createKeyGenerator:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Ljavax/crypto/KeyGenerator;
astore 5
start local 5 3: aload 4
ifnonnull 5
4: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
astore 4
5: StackMap locals: org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder org.bouncycastle.asn1.ASN1ObjectIdentifier int java.security.SecureRandom javax.crypto.KeyGenerator
StackMap stack:
iload 3
ifge 7
6: getstatic org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.KEY_SIZE_PROVIDER:Lorg/bouncycastle/operator/SecretKeySizeProvider;
aload 2
invokeinterface org.bouncycastle.operator.SecretKeySizeProvider.getKeySize:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)I
istore 3
7: StackMap locals:
StackMap stack:
iload 3
ifge 10
8: aload 5
aload 4
invokevirtual javax.crypto.KeyGenerator.init:(Ljava/security/SecureRandom;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 5
iload 3
aload 4
invokevirtual javax.crypto.KeyGenerator.init:(ILjava/security/SecureRandom;)V
11: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.helper:Lorg/bouncycastle/cert/crmf/jcajce/CRMFHelper;
aload 2
invokevirtual org.bouncycastle.cert.crmf.jcajce.CRMFHelper.createCipher:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Ljavax/crypto/Cipher;
putfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.cipher:Ljavax/crypto/Cipher;
12: aload 0
aload 5
invokevirtual javax.crypto.KeyGenerator.generateKey:()Ljavax/crypto/SecretKey;
putfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
13: aload 1
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.helper:Lorg/bouncycastle/cert/crmf/jcajce/CRMFHelper;
aload 2
aload 0
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
aload 4
invokevirtual org.bouncycastle.cert.crmf.jcajce.CRMFHelper.generateParameters:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljavax/crypto/SecretKey;Ljava/security/SecureRandom;)Ljava/security/AlgorithmParameters;
astore 6
start local 6 14: aload 0
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.cipher:Ljavax/crypto/Cipher;
iconst_1
aload 0
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.encKey:Ljavax/crypto/SecretKey;
aload 6
aload 4
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V
15: goto 18
16: StackMap locals: org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder org.bouncycastle.asn1.ASN1ObjectIdentifier int java.security.SecureRandom javax.crypto.KeyGenerator java.security.AlgorithmParameters
StackMap stack: java.security.GeneralSecurityException
astore 7
start local 7 17: new org.bouncycastle.cert.crmf.CRMFException
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.cert.crmf.CRMFException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 18: StackMap locals:
StackMap stack:
aload 6
ifnonnull 20
19: aload 0
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.cipher:Ljavax/crypto/Cipher;
invokevirtual javax.crypto.Cipher.getParameters:()Ljava/security/AlgorithmParameters;
astore 6
20: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder.helper:Lorg/bouncycastle/cert/crmf/jcajce/CRMFHelper;
aload 2
aload 6
invokevirtual org.bouncycastle.cert.crmf.jcajce.CRMFHelper.getAlgorithmIdentifier:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Ljava/security/AlgorithmParameters;)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
putfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.algorithmIdentifier:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
21: 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 22 0 this Lorg/bouncycastle/cert/crmf/jcajce/JceCRMFEncryptorBuilder$CRMFOutputEncryptor;
0 22 2 encryptionOID Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
0 22 3 keySize I
0 22 4 random Ljava/security/SecureRandom;
3 22 5 keyGen Ljavax/crypto/KeyGenerator;
14 22 6 params Ljava/security/AlgorithmParameters;
17 18 7 e Ljava/security/GeneralSecurityException;
Exception table:
from to target type
14 15 16 Class java.security.GeneralSecurityException
Exceptions:
throws org.bouncycastle.cert.crmf.CRMFException
MethodParameters:
Name Flags
this$0 final
encryptionOID
keySize
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.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.algorithmIdentifier:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/crmf/jcajce/JceCRMFEncryptorBuilder$CRMFOutputEncryptor;
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.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.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/cert/crmf/jcajce/JceCRMFEncryptorBuilder$CRMFOutputEncryptor;
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.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.algorithmIdentifier:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 0
getfield org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor.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/cert/crmf/jcajce/JceCRMFEncryptorBuilder$CRMFOutputEncryptor;
}
SourceFile: "JceCRMFEncryptorBuilder.java"
NestHost: org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder
InnerClasses:
private CRMFOutputEncryptor = org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder$CRMFOutputEncryptor of org.bouncycastle.cert.crmf.jcajce.JceCRMFEncryptorBuilder