public abstract class org.bouncycastle.cms.bc.BcPasswordRecipient implements org.bouncycastle.cms.PasswordRecipient
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.cms.bc.BcPasswordRecipient
super_class: java.lang.Object
{
private final char[] password;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int schemeID;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(char[]);
descriptor: ([C)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.bouncycastle.cms.bc.BcPasswordRecipient.schemeID:I
2: aload 0
aload 1
putfield org.bouncycastle.cms.bc.BcPasswordRecipient.password:[C
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
0 4 1 password [C
MethodParameters:
Name Flags
password
public org.bouncycastle.cms.bc.BcPasswordRecipient setPasswordConversionScheme(int);
descriptor: (I)Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.bouncycastle.cms.bc.BcPasswordRecipient.schemeID:I
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
0 2 1 schemeID I
MethodParameters:
Name Flags
schemeID
protected org.bouncycastle.crypto.params.KeyParameter (org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier, byte[], byte[]);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;[B[B)Lorg/bouncycastle/crypto/params/KeyParameter;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokestatic org.bouncycastle.cms.bc.EnvelopedDataHelper.createRFC3211Wrapper:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/crypto/Wrapper;
astore 5
start local 5 1: aload 5
iconst_0
new org.bouncycastle.crypto.params.ParametersWithIV
dup
new org.bouncycastle.crypto.params.KeyParameter
dup
aload 3
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([B)V
aload 1
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getParameters:()Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.ASN1OctetString.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1OctetString;
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
invokespecial org.bouncycastle.crypto.params.ParametersWithIV.<init>:(Lorg/bouncycastle/crypto/CipherParameters;[B)V
invokeinterface org.bouncycastle.crypto.Wrapper.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
2: new org.bouncycastle.crypto.params.KeyParameter
dup
aload 5
aload 4
iconst_0
aload 4
arraylength
invokeinterface org.bouncycastle.crypto.Wrapper.unwrap:([BII)[B
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([B)V
3: areturn
4: StackMap locals: org.bouncycastle.cms.bc.BcPasswordRecipient org.bouncycastle.asn1.x509.AlgorithmIdentifier org.bouncycastle.asn1.x509.AlgorithmIdentifier byte[] byte[] org.bouncycastle.crypto.Wrapper
StackMap stack: org.bouncycastle.crypto.InvalidCipherTextException
astore 6
start local 6 5: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "unable to unwrap key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual org.bouncycastle.crypto.InvalidCipherTextException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
0 6 1 keyEncryptionAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 6 2 contentEncryptionAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 6 3 derivedKey [B
0 6 4 encryptedContentEncryptionKey [B
1 6 5 keyEncryptionCipher Lorg/bouncycastle/crypto/Wrapper;
5 6 6 e Lorg/bouncycastle/crypto/InvalidCipherTextException;
Exception table:
from to target type
2 3 4 Class org.bouncycastle.crypto.InvalidCipherTextException
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
keyEncryptionAlgorithm
contentEncryptionAlgorithm
derivedKey
encryptedContentEncryptionKey
public byte[] calculateDerivedKey(int, org.bouncycastle.asn1.x509.AlgorithmIdentifier, int);
descriptor: (ILorg/bouncycastle/asn1/x509/AlgorithmIdentifier;I)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getParameters:()Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.pkcs.PBKDF2Params.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/pkcs/PBKDF2Params;
astore 4
start local 4 1: iload 1
ifne 2
aload 0
getfield org.bouncycastle.cms.bc.BcPasswordRecipient.password:[C
invokestatic org.bouncycastle.crypto.PBEParametersGenerator.PKCS5PasswordToBytes:([C)[B
goto 3
StackMap locals: org.bouncycastle.asn1.pkcs.PBKDF2Params
StackMap stack:
2: aload 0
getfield org.bouncycastle.cms.bc.BcPasswordRecipient.password:[C
invokestatic org.bouncycastle.crypto.PBEParametersGenerator.PKCS5PasswordToUTF8Bytes:([C)[B
StackMap locals:
StackMap stack: byte[]
3: astore 5
start local 5 4: new org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator
dup
aload 4
invokevirtual org.bouncycastle.asn1.pkcs.PBKDF2Params.getPrf:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokestatic org.bouncycastle.cms.bc.EnvelopedDataHelper.getPRF:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/crypto/ExtendedDigest;
invokespecial org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
astore 6
start local 6 5: aload 6
aload 5
aload 4
invokevirtual org.bouncycastle.asn1.pkcs.PBKDF2Params.getSalt:()[B
aload 4
invokevirtual org.bouncycastle.asn1.pkcs.PBKDF2Params.getIterationCount:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.init:([B[BI)V
6: aload 6
iload 3
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedParameters:(I)Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.KeyParameter
invokevirtual org.bouncycastle.crypto.params.KeyParameter.getKey:()[B
7: areturn
end local 6 8: StackMap locals: org.bouncycastle.cms.bc.BcPasswordRecipient int org.bouncycastle.asn1.x509.AlgorithmIdentifier int org.bouncycastle.asn1.pkcs.PBKDF2Params byte[]
StackMap stack: java.lang.Exception
astore 6
start local 6 9: new org.bouncycastle.cms.CMSException
dup
new java.lang.StringBuilder
dup
ldc "exception creating derived key: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
invokespecial org.bouncycastle.cms.CMSException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
0 10 1 schemeID I
0 10 2 derivationAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 10 3 keySize I
1 10 4 params Lorg/bouncycastle/asn1/pkcs/PBKDF2Params;
4 10 5 encodedPassword [B
5 8 6 gen Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
9 10 6 e Ljava/lang/Exception;
Exception table:
from to target type
4 7 8 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.cms.CMSException
MethodParameters:
Name Flags
schemeID
derivationAlgorithm
keySize
public int getPasswordConversionScheme();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cms.bc.BcPasswordRecipient.schemeID:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
public char[] getPassword();
descriptor: ()[C
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cms.bc.BcPasswordRecipient.password:[C
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cms/bc/BcPasswordRecipient;
}
SourceFile: "BcPasswordRecipient.java"