public class org.bouncycastle.operator.bc.BcSymmetricKeyWrapper extends org.bouncycastle.operator.SymmetricKeyWrapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.operator.bc.BcSymmetricKeyWrapper
super_class: org.bouncycastle.operator.SymmetricKeyWrapper
{
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.Wrapper wrapper;
descriptor: Lorg/bouncycastle/crypto/Wrapper;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.params.KeyParameter wrappingKey;
descriptor: Lorg/bouncycastle/crypto/params/KeyParameter;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.crypto.Wrapper, org.bouncycastle.crypto.params.KeyParameter);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/crypto/Wrapper;Lorg/bouncycastle/crypto/params/KeyParameter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 // org.bouncycastle.operator.bc.BcSymmetricKeyWrapper this
start local 1 // org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm
start local 2 // org.bouncycastle.crypto.Wrapper wrapper
start local 3 // org.bouncycastle.crypto.params.KeyParameter wrappingKey
0: .line 22
aload 0 /* this */
aload 1 /* wrappingAlgorithm */
invokespecial org.bouncycastle.operator.SymmetricKeyWrapper.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)V
1: .line 24
aload 0 /* this */
aload 2 /* wrapper */
putfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrapper:Lorg/bouncycastle/crypto/Wrapper;
2: .line 25
aload 0 /* this */
aload 3 /* wrappingKey */
putfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrappingKey:Lorg/bouncycastle/crypto/params/KeyParameter;
3: .line 26
return
end local 3 // org.bouncycastle.crypto.params.KeyParameter wrappingKey
end local 2 // org.bouncycastle.crypto.Wrapper wrapper
end local 1 // org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm
end local 0 // org.bouncycastle.operator.bc.BcSymmetricKeyWrapper this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/operator/bc/BcSymmetricKeyWrapper;
0 4 1 wrappingAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 4 2 wrapper Lorg/bouncycastle/crypto/Wrapper;
0 4 3 wrappingKey Lorg/bouncycastle/crypto/params/KeyParameter;
MethodParameters:
Name Flags
wrappingAlgorithm
wrapper
wrappingKey
public org.bouncycastle.operator.bc.BcSymmetricKeyWrapper setSecureRandom(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)Lorg/bouncycastle/operator/bc/BcSymmetricKeyWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // org.bouncycastle.operator.bc.BcSymmetricKeyWrapper this
start local 1 // java.security.SecureRandom random
0: .line 30
aload 0 /* this */
aload 1 /* random */
putfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.random:Ljava/security/SecureRandom;
1: .line 32
aload 0 /* this */
areturn
end local 1 // java.security.SecureRandom random
end local 0 // org.bouncycastle.operator.bc.BcSymmetricKeyWrapper this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/operator/bc/BcSymmetricKeyWrapper;
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=6, locals=3, args_size=2
start local 0 // org.bouncycastle.operator.bc.BcSymmetricKeyWrapper this
start local 1 // org.bouncycastle.operator.GenericKey encryptionKey
0: .line 38
aload 1 /* encryptionKey */
invokestatic org.bouncycastle.operator.bc.OperatorUtils.getKeyBytes:(Lorg/bouncycastle/operator/GenericKey;)[B
astore 2 /* contentEncryptionKeySpec */
start local 2 // byte[] contentEncryptionKeySpec
1: .line 40
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.random:Ljava/security/SecureRandom;
ifnonnull 4
2: .line 42
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrapper:Lorg/bouncycastle/crypto/Wrapper;
iconst_1
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrappingKey:Lorg/bouncycastle/crypto/params/KeyParameter;
invokeinterface org.bouncycastle.crypto.Wrapper.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
3: .line 43
goto 5
4: .line 46
StackMap locals: byte[]
StackMap stack:
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrapper:Lorg/bouncycastle/crypto/Wrapper;
iconst_1
new org.bouncycastle.crypto.params.ParametersWithRandom
dup
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrappingKey:Lorg/bouncycastle/crypto/params/KeyParameter;
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.random:Ljava/security/SecureRandom;
invokespecial org.bouncycastle.crypto.params.ParametersWithRandom.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Ljava/security/SecureRandom;)V
invokeinterface org.bouncycastle.crypto.Wrapper.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
5: .line 49
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.bouncycastle.operator.bc.BcSymmetricKeyWrapper.wrapper:Lorg/bouncycastle/crypto/Wrapper;
aload 2 /* contentEncryptionKeySpec */
iconst_0
aload 2 /* contentEncryptionKeySpec */
arraylength
invokeinterface org.bouncycastle.crypto.Wrapper.wrap:([BII)[B
areturn
end local 2 // byte[] contentEncryptionKeySpec
end local 1 // org.bouncycastle.operator.GenericKey encryptionKey
end local 0 // org.bouncycastle.operator.bc.BcSymmetricKeyWrapper this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/operator/bc/BcSymmetricKeyWrapper;
0 6 1 encryptionKey Lorg/bouncycastle/operator/GenericKey;
1 6 2 contentEncryptionKeySpec [B
Exceptions:
throws org.bouncycastle.operator.OperatorException
MethodParameters:
Name Flags
encryptionKey
}
SourceFile: "BcSymmetricKeyWrapper.java"