public abstract class org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper extends org.bouncycastle.operator.AsymmetricKeyWrapper
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper
super_class: org.bouncycastle.operator.AsymmetricKeyWrapper
{
private org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey;
descriptor: Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.crypto.params.AsymmetricKeyParameter);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial org.bouncycastle.operator.AsymmetricKeyWrapper.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)V
1: aload 0
aload 2
putfield org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.publicKey:Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/operator/bc/BcAsymmetricKeyWrapper;
0 3 1 encAlgId Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 3 2 publicKey Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
MethodParameters:
Name Flags
encAlgId
publicKey
public org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper setSecureRandom(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)Lorg/bouncycastle/operator/bc/BcAsymmetricKeyWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.random:Ljava/security/SecureRandom;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/operator/bc/BcAsymmetricKeyWrapper;
0 2 1 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
random
public byte[] generateWrappedKey(org.bouncycastle.operator.GenericKey);
descriptor: (Lorg/bouncycastle/operator/GenericKey;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.getAlgorithmIdentifier:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.createAsymmetricWrapper:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/crypto/AsymmetricBlockCipher;
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.publicKey:Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
astore 3
start local 3 2: aload 0
getfield org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.random:Ljava/security/SecureRandom;
ifnull 4
3: new org.bouncycastle.crypto.params.ParametersWithRandom
dup
aload 3
aload 0
getfield org.bouncycastle.operator.bc.BcAsymmetricKeyWrapper.random:Ljava/security/SecureRandom;
invokespecial org.bouncycastle.crypto.params.ParametersWithRandom.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Ljava/security/SecureRandom;)V
astore 3
4: StackMap locals: org.bouncycastle.crypto.AsymmetricBlockCipher org.bouncycastle.crypto.CipherParameters
StackMap stack:
aload 1
invokestatic org.bouncycastle.operator.bc.OperatorUtils.getKeyBytes:(Lorg/bouncycastle/operator/GenericKey;)[B
astore 4
start local 4 5: aload 2
iconst_1
aload 3
invokeinterface org.bouncycastle.crypto.AsymmetricBlockCipher.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
6: aload 2
aload 4
iconst_0
aload 4
arraylength
invokeinterface org.bouncycastle.crypto.AsymmetricBlockCipher.processBlock:([BII)[B
7: areturn
end local 4 8: StackMap locals:
StackMap stack: org.bouncycastle.crypto.InvalidCipherTextException
astore 4
start local 4 9: new org.bouncycastle.operator.OperatorException
dup
ldc "unable to encrypt contents key"
aload 4
invokespecial org.bouncycastle.operator.OperatorException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
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/operator/bc/BcAsymmetricKeyWrapper;
0 10 1 encryptionKey Lorg/bouncycastle/operator/GenericKey;
1 10 2 keyEncryptionCipher Lorg/bouncycastle/crypto/AsymmetricBlockCipher;
2 10 3 params Lorg/bouncycastle/crypto/CipherParameters;
5 8 4 keyEnc [B
9 10 4 e Lorg/bouncycastle/crypto/InvalidCipherTextException;
Exception table:
from to target type
4 7 8 Class org.bouncycastle.crypto.InvalidCipherTextException
Exceptions:
throws org.bouncycastle.operator.OperatorException
MethodParameters:
Name Flags
encryptionKey
protected abstract org.bouncycastle.crypto.AsymmetricBlockCipher createAsymmetricWrapper(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/crypto/AsymmetricBlockCipher;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
algorithm
}
SourceFile: "BcAsymmetricKeyWrapper.java"