⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pkiapplet.jca

📁 Java card pki applet for J2ME JSR177 source code
💻 JCA
📖 第 1 页 / 共 5 页
字号:
// converted by version 1.3
// on Fri Jun 11 09:23:52 PDT 2004

.package com/sun/satsa/pkiapplet {
	.aid 0xA0:0x0:0x0:0x0:0x63:0x50:0x4B:0x49;
	.version 1.0;

	.imports {
		0xA0:0x0:0x0:0x0:0x62:0x0:0x1 1.0;		//java/lang
		0xA0:0x0:0x0:0x0:0x62:0x1:0x1 1.2;		//javacard/framework
		0xA0:0x0:0x0:0x0:0x62:0x1:0x2 1.2;		//javacard/security
		0xA0:0x0:0x0:0x0:0x62:0x2:0x1 1.2;		//javacardx/crypto
	}

	.applet {
		0xA0:0x0:0x0:0x0:0x63:0x50:0x4B:0x43:0x53:0x2D:0x31:0x35 PKIApplet;
	}

	.constantPool {
		// 0
		instanceFieldRef DFile File/parent;
		// 1
		instanceFieldRef short File/id;
		// 2
		instanceFieldRef short File/type;
		// 3
		instanceFieldRef short EFile/offset;
		// 4
		instanceFieldRef short EFile/length;
		// 5
		instanceFieldRef byte[] EFile/data;
		// 6
		instanceFieldRef File[] DFile/files;
		// 7
		instanceFieldRef PKIApplet PKIApplet$PrivateKey/this$0;
		// 8
		instanceFieldRef short PKIApplet$PrivateKey/id;
		// 9
		instanceFieldRef 1.9[] PKIApplet/PINs;
		// 10
		instanceFieldRef 1.9 PKIApplet$PrivateKey/PIN;
		// 11
		instanceFieldRef boolean PKIApplet$PrivateKey/nonRepudiation;
		// 12
		instanceFieldRef 2.8 PKIApplet$PrivateKey/value;
		// 13
		instanceFieldRef 3.1 PKIApplet/cipher;
		// 14
		instanceFieldRef 2.11 PKIApplet/digest;
		// 15
		instanceFieldRef DFile PKIApplet/base;
		// 16
		instanceFieldRef File PKIApplet/current;
		// 17
		instanceFieldRef boolean PKIApplet/isSERestored;
		// 18
		instanceFieldRef byte[] PKIApplet/PIN_REFs;
		// 19
		instanceFieldRef PKIApplet$PrivateKey[] PKIApplet/keys;
		// 20
		instanceFieldRef DFile PKIApplet/top;
		// 21
		instanceFieldRef boolean PKIApplet/isKeyFileSet;
		// 22
		instanceFieldRef short PKIApplet/keyNum;
		// 23
		virtualMethodRef 1.9.5()V;		// javacard/framework/OwnerPIN.reset()V
		// 24
		staticMethodRef 1.3.0()V;		// javacard/framework/Applet.<init>()V
		// 25
		staticFieldRef byte[] Data/PINs;
		// 26
		staticMethodRef 1.5.1(S)V;		// javacard/framework/CardRuntimeException.throwIt(S)V
		// 27
		staticMethodRef 3.1.0(BZ)Ljavacardx/crypto/Cipher;;		// javacardx/crypto/Cipher.getInstance(BZ)Ljavacardx/crypto/Cipher;
			.descriptor	Ljavacardx/crypto/Cipher;	3.1;

		// 28
		staticMethodRef Parser/getByte()B;
		// 29
		staticFieldRef boolean PKIApplet/supportKeyGeneration;
		// 30
		staticMethodRef 2.11.0(BZ)Ljavacard/security/MessageDigest;;		// javacard/security/MessageDigest.getInstance(BZ)Ljavacard/security/MessageDigest;
			.descriptor	Ljavacard/security/MessageDigest;	2.11;

		// 31
		staticMethodRef 0.0.0()V;		// java/lang/Object.<init>()V
		// 32
		virtualMethodRef 1.3.1()V;		// javacard/framework/Applet.register()V
		// 33
		classRef PKIApplet;
		// 34
		staticMethodRef PKIApplet/<init>()V;
		// 35
		virtualMethodRef PKIApplet/init()V;
		// 36
		staticMethodRef 2.13.0(BSZ)Ljavacard/security/Key;;		// javacard/security/KeyBuilder.buildKey(BSZ)Ljavacard/security/Key;
			.descriptor	Ljavacard/security/Key;	2.0;

		// 37
		classRef 2.8;		// javacard/security/RSAPrivateKey
		// 38
		staticMethodRef File/<init>()V;
		// 39
		staticMethodRef Parser/init([B)V;
		// 40
		staticFieldRef short Data/freePINSlots;
		// 41
		staticMethodRef Parser/getShort()S;
		// 42
		classRef 1.9;		// javacard/framework/OwnerPIN
		// 43
		staticFieldRef short Data/freeKeySlots;
		// 44
		classRef PKIApplet$PrivateKey;
		// 45
		staticFieldRef byte[] Data/PrivateKeys;
		// 46
		staticFieldRef byte[] Data/Files;
		// 47
		virtualMethodRef PKIApplet/readFile(Lcom/sun/satsa/pkiapplet/DFile;)Lcom/sun/satsa/pkiapplet/File;;
		// 48
		classRef DFile;
		// 49
		staticFieldRef short Parser/offset;
		// 50
		staticMethodRef 1.7.1(S)V;		// javacard/framework/ISOException.throwIt(S)V
		// 51
		staticMethodRef 1.8.18()V;		// javacard/framework/JCSystem.requestObjectDeletion()V
		// 52
		staticMethodRef 1.9.0(BB)V;		// javacard/framework/OwnerPIN.<init>(BB)V
		// 53
		virtualMethodRef 1.9.8([BSB)V;		// javacard/framework/OwnerPIN.update([BSB)V
		// 54
		staticMethodRef PKIApplet$PrivateKey/<init>(Lcom/sun/satsa/pkiapplet/PKIApplet;)V;
		// 55
		classRef EFile;
		// 56
		staticMethodRef EFile/<init>(Lcom/sun/satsa/pkiapplet/DFile;SSSS[B)V;
		// 57
		staticMethodRef 1.16.2([BS[BSS)S;		// javacard/framework/Util.arrayCopyNonAtomic([BS[BSS)S
		// 58
		staticMethodRef DFile/<init>(Lcom/sun/satsa/pkiapplet/DFile;SS)V;
		// 59
		classRef File;
		// 60
		virtualMethodRef 1.10.1()[B;		// javacard/framework/APDU.getBuffer()[B
		// 61
		virtualMethodRef PKIApplet/selectFile(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 62
		virtualMethodRef PKIApplet/read(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 63
		virtualMethodRef PKIApplet/update(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 64
		virtualMethodRef PKIApplet/verify(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 65
		virtualMethodRef PKIApplet/manageSE(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 66
		virtualMethodRef PKIApplet/sign(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 67
		virtualMethodRef PKIApplet/newKey(Ljavacard/framework/APDU;)V;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 68
		staticMethodRef 1.16.4([BS)S;		// javacard/framework/Util.getShort([BS)S
		// 69
		staticMethodRef PKIApplet/checkDataSize(S)V;
		// 70
		virtualMethodRef PKIApplet/select(S)Lcom/sun/satsa/pkiapplet/File;;
		// 71
		virtualMethodRef File/isDF()Z;
		// 72
		staticMethodRef 1.16.6([BSS)S;		// javacard/framework/Util.setShort([BSS)S
		// 73
		virtualMethodRef 1.10.8(SS)V;		// javacard/framework/APDU.setOutgoingAndSend(SS)V
		// 74
		virtualMethodRef DFile/getFile(S)Lcom/sun/satsa/pkiapplet/File;;
		// 75
		virtualMethodRef 1.10.7()S;		// javacard/framework/APDU.setOutgoing()S
		// 76
		virtualMethodRef 1.10.9(S)V;		// javacard/framework/APDU.setOutgoingLength(S)V
		// 77
		virtualMethodRef 1.10.5([BSS)V;		// javacard/framework/APDU.sendBytesLong([BSS)V
		// 78
		virtualMethodRef 1.10.6()S;		// javacard/framework/APDU.setIncomingAndReceive()S
		// 79
		virtualMethodRef 1.10.3(S)S;		// javacard/framework/APDU.receiveBytes(S)S
		// 80
		virtualMethodRef 1.9.2()B;		// javacard/framework/OwnerPIN.getTriesRemaining()B
		// 81
		virtualMethodRef 1.9.1([BSB)Z;		// javacard/framework/OwnerPIN.check([BSB)Z
		// 82
		classRef 0.5;		// java/lang/ArrayIndexOutOfBoundsException
		// 83
		staticMethodRef Parser/skip(S)V;
		// 84
		virtualMethodRef PKIApplet/isValidated(Ljavacard/framework/OwnerPIN;)Z;
			.descriptor	Ljavacard/framework/OwnerPIN;	1.9;

		// 85
		virtualMethodRef PKIApplet/getFile([BSS)Lcom/sun/satsa/pkiapplet/File;;
		// 86
		classRef 0.2;		// java/lang/Exception
		// 87
		staticFieldRef byte Data/newPINRef;
		// 88
		staticFieldRef short Data/newPINOffset;
		// 89
		staticMethodRef 1.16.1([BS[BSS)S;		// javacard/framework/Util.arrayCopy([BS[BSS)S
		// 90
		classRef 2.16;		// javacard/security/KeyPair
		// 91
		staticMethodRef 2.16.0(BS)V;		// javacard/security/KeyPair.<init>(BS)V
		// 92
		virtualMethodRef 2.16.1()V;		// javacard/security/KeyPair.genKeyPair()V
		// 93
		staticFieldRef byte Data/newKeyID;
		// 94
		virtualMethodRef 2.16.2()Ljavacard/security/PrivateKey;;		// javacard/security/KeyPair.getPrivate()Ljavacard/security/PrivateKey;
			.descriptor	Ljavacard/security/PrivateKey;	2.2;

		// 95
		staticMethodRef PKIApplet$PrivateKey/<init>(Lcom/sun/satsa/pkiapplet/PKIApplet;SLjavacard/framework/OwnerPIN;ZLjavacard/security/RSAPrivateKey;)V;
			.descriptor	Ljavacard/framework/OwnerPIN;	1.9;
			.descriptor	Ljavacard/security/RSAPrivateKey;	2.8;

		// 96
		virtualMethodRef 2.16.3()Ljavacard/security/PublicKey;;		// javacard/security/KeyPair.getPublic()Ljavacard/security/PublicKey;
			.descriptor	Ljavacard/security/PublicKey;	2.3;

		// 97
		classRef 2.9;		// javacard/security/RSAPublicKey
		// 98
		staticFieldRef short Data/newFileID;
		// 99
		staticMethodRef PKIApplet/encodePublicKey(Ljavacard/security/RSAPublicKey;[B)[B;
			.descriptor	Ljavacard/security/RSAPublicKey;	2.9;

		// 100
		virtualMethodRef PKIApplet/getKeyHash(Ljavacard/security/RSAPublicKey;[B)[B;
			.descriptor	Ljavacard/security/RSAPublicKey;	2.9;

		// 101
		staticFieldRef short Data/newPubKeyOffset;
		// 102
		staticFieldRef short Data/newPrivKeyOffset;
		// 103
		staticFieldRef byte Data/newPINID;
		// 104
		staticMethodRef 1.8.1()V;		// javacard/framework/JCSystem.beginTransaction()V
		// 105
		staticMethodRef 1.8.2()V;		// javacard/framework/JCSystem.commitTransaction()V
		// 106
		staticMethodRef PKIApplet/getDERSize(S)S;
		// 107
		staticMethodRef PKIApplet/putLength([BSS)S;
		// 108
		virtualMethodRef 2.11.1([BSS[BS)S;		// javacard/security/MessageDigest.doFinal([BSS[BS)S
		// 109
		virtualMethodRef PKIApplet$PrivateKey/checkAccess()Z;
		// 110
		virtualMethodRef 3.1.3(Ljavacard/security/Key;B)V;		// javacardx/crypto/Cipher.init(Ljavacard/security/Key;B)V
			.descriptor	Ljavacard/security/Key;	2.0;

		// 111
		staticFieldRef byte[] PKIApplet/signBuffer;
		// 112
		virtualMethodRef 3.1.1([BSS[BS)S;		// javacardx/crypto/Cipher.doFinal([BSS[BS)S
		// 113
		classRef 2.0;		// javacard/security/Key
		// 114
		staticMethodRef 1.16.3([BSSB)S;		// javacard/framework/Util.arrayFillNonAtomic([BSSB)S
		// 115
		staticMethodRef 1.10.4()Ljavacard/framework/APDU;;		// javacard/framework/APDU.getCurrentAPDU()Ljavacard/framework/APDU;
			.descriptor	Ljavacard/framework/APDU;	1.10;

		// 116
		staticFieldRef boolean PKIApplet/verifyPINs;
		// 117
		virtualMethodRef 1.9.4()Z;		// javacard/framework/OwnerPIN.isValidated()Z
		// 118
		staticFieldRef byte[] Parser/data;
	}

	.class  File extends 0.0 {		// extends java/lang/Object

		.fields {
			 DFile parent 0;		// Lcom/sun/satsa/pkiapplet/DFile;
			 short id 1;		// S
			 short type 2;		// S
			static final byte DIR = 1;		// B
			static final byte PIN = 3;		// B
			static final byte PrivateKeyFile = 4;		// B
			static final byte WIM = 9;		// B
			static final byte READ = 16;		// B
			static final byte UPDATE = 48;		// B
			static final int EMPTY = 64;		// I
		}

		.publicMethodTable 1 {
			equals(Ljava/lang/Object;)Z;
		}

		.packageMethodTable 0 {
			isDF()Z;
		}

		.method  <init>()V {
			.stack 1;
			.locals 0;

				L0:	aload_0;
					invokespecial 31;		// java/lang/Object.<init>()V
					return;
		}

		.method  isDF()Z 128 {
			.stack 1;
			.locals 0;

				L0:	sconst_1;
					sreturn;
		}

	}

	.class public Data 0 extends 0.0 {		// extends java/lang/Object

		.fields {
			static final byte WIM_GENERIC_RSA_ID = 68;		// B
			static short freeKeySlots = 4;		// S
			static short newFileID = 21504;		// S
			static byte newKeyID = 40;		// B
			static short freePINSlots = 4;		// S

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -