初始化
This commit is contained in:
56
Bat/GenCap.bat
Normal file
56
Bat/GenCap.bat
Normal file
@@ -0,0 +1,56 @@
|
||||
@ECHO OFF
|
||||
@REM SET PATH=""
|
||||
@rem %JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.converter.Converter %*
|
||||
|
||||
SET _BUILD_DIR=%CD%
|
||||
SET _PROJ_PATH="%_BUILD_DIR%\.."
|
||||
SET _DELIVERY_PATH=%_BUILD_DIR%\Delivery
|
||||
|
||||
SET _SRC_PATH=%_PROJ_PATH%\Project\Src
|
||||
SET _CAP_PATH=%_PROJ_PATH%\Project\bin\com\cscn\javacard
|
||||
SET _OUT_PATH=%_PROJ_PATH%\Project\bin
|
||||
SET _TOOLS_PATH=%_PROJ_PATH%\Tools
|
||||
|
||||
CD ..\Project
|
||||
DEL /Q %_DELIVERY_PATH%\*.*
|
||||
DEL /Q %_CAP_PATH%\*.*
|
||||
RMDIR /S /Q %_OUT_PATH%
|
||||
MKDIR %_OUT_PATH%
|
||||
REM PAUSE
|
||||
|
||||
SET JAVA_HOME=%_TOOLS_PATH%\jdk1.5.0_19
|
||||
SET JC_HOME=%_TOOLS_PATH%\jcdk222
|
||||
SET PATH=%JAVA_HOME%\bin;%JC_HOME%\bin;%PATH%
|
||||
|
||||
SET EXT_API_PATH=%_TOOLS_PATH%\ext_api
|
||||
SET _JavaC_HOME=%_TOOLS_PATH%\jdk1.5.0_19\jre\bin
|
||||
SET _CLASS_PATH=%_TOOLS_PATH%\jcdk222\lib\api.jar;%EXT_API_PATH%\gp221.jar
|
||||
|
||||
SET JCDK_EXPORT_DIR=%_TOOLS_PATH%\api_exp\JCDK222
|
||||
SET PROJ_EXPORT_DIR=%_OUT_PATH%
|
||||
SET EXT_EXPORT_DIR=%_TOOLS_PATH%\api_exp\gp221
|
||||
SET EXPORT_DIR=%JCDK_EXPORT_DIR%;%PROJ_EXPORT_DIR%;%EXT_EXPORT_DIR%
|
||||
|
||||
REM COMPILE JAVA TO CLASS
|
||||
ECHO **********************************************
|
||||
ECHO *** Compile Java Source Code ***
|
||||
ECHO **********************************************
|
||||
ECHO Setting Build Path
|
||||
REM use <-verbose> display compile info
|
||||
REM SET COMPILE_PARAM=-nowarn -verbose
|
||||
SET COMPILE_PARAM= -nowarn
|
||||
|
||||
ECHO Compiling Java Card API source code
|
||||
Call javac %COMPILE_PARAM% -classpath %_CLASS_PATH% %_SRC_PATH%\*.java -d %_OUT_PATH% -g
|
||||
|
||||
ECHO **********************************************
|
||||
ECHO *** Convert Java Card Assembly File ***
|
||||
ECHO **********************************************
|
||||
|
||||
CALL converter -nowarn -i -classdir .\bin -exportpath %EXPORT_DIR% -out EXP CAP -applet 0xA0:0x00:0x00:0x03:0x00:0x73:0x74:0x61:0x72:0x2E:0x61:0x70:0x70 com.cscn.XwSecurity com.cscn 0xA0:0x00:0x00:0x03:0x00:0x73:0x74:0x61:0x72:0x2E:0x70:0x6B:0x67 1.0
|
||||
|
||||
ECHO **********************************************
|
||||
ECHO *** Copy Exp and Cap File ***
|
||||
ECHO **********************************************
|
||||
COPY %_CAP_PATH%\*.* %_BUILD_DIR%\Delivery\
|
||||
PAUSE
|
||||
18
LICENSE
18
LICENSE
@@ -1,18 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 gj
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
||||
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
19
Project/Src/com/cscn/Method.java
Normal file
19
Project/Src/com/cscn/Method.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.cscn;
|
||||
|
||||
import javacard.framework.APDU;
|
||||
|
||||
public class Method {
|
||||
|
||||
public void processData(APDU apdu)
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public void updateKey(APDU apdu)
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
82
Project/Src/com/cscn/XwSecurity.java
Normal file
82
Project/Src/com/cscn/XwSecurity.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package com.cscn;
|
||||
|
||||
import javacard.framework.APDU;
|
||||
import javacard.framework.Applet;
|
||||
import javacard.framework.ISO7816;
|
||||
import javacard.framework.ISOException;
|
||||
import org.globalplatform.GPSystem;
|
||||
import org.globalplatform.SecureChannel;
|
||||
|
||||
/**
|
||||
* @author liuww
|
||||
*
|
||||
*/
|
||||
public class XwSecurity extends Applet {
|
||||
|
||||
public static final byte INS_PROCESS_DATA = (byte)0xCA;
|
||||
|
||||
public static final byte INS_STORE_DATA = (byte)0xE2;
|
||||
|
||||
public static final byte INS_INITIAL_UPDATE = (byte)0x50;
|
||||
|
||||
public static final byte INS_EXTERNAL_AUTH = (byte)0x82;
|
||||
|
||||
private Method method;
|
||||
|
||||
public XwSecurity(byte[] bArray, short bOffset, byte bLength) {
|
||||
// TODO Auto-generated constructor stub
|
||||
method = new Method();
|
||||
|
||||
register(bArray, (short)(bOffset + 1), bArray[bOffset]);
|
||||
}
|
||||
|
||||
public static void install(byte[] bArray, short bOffset, byte bLength)
|
||||
{
|
||||
// GP-compliant JavaCard applet registration
|
||||
new XwSecurity(bArray, bOffset, bLength);
|
||||
}
|
||||
|
||||
public void process(APDU apdu)
|
||||
{
|
||||
// Good practice: Return 9000 on SELECT
|
||||
if(selectingApplet())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(method == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
byte[] buf = apdu.getBuffer();
|
||||
switch (buf[ISO7816.OFFSET_INS])
|
||||
{
|
||||
case INS_INITIAL_UPDATE:
|
||||
SecureChannel sc = GPSystem.getSecureChannel();
|
||||
sc.processSecurity(apdu);
|
||||
break;
|
||||
|
||||
case INS_EXTERNAL_AUTH:
|
||||
sc = GPSystem.getSecureChannel();
|
||||
sc.processSecurity(apdu);
|
||||
break;
|
||||
|
||||
case INS_PROCESS_DATA:
|
||||
method.processData(apdu);
|
||||
break;
|
||||
|
||||
case INS_STORE_DATA:
|
||||
method.updateKey(apdu);
|
||||
break;
|
||||
|
||||
default:
|
||||
// good practice: If you don't know the INStruction, say so:
|
||||
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
package com.zuc.zuc256;
|
||||
package com.cscn;
|
||||
|
||||
|
||||
import static com.zuc.zuc256.Zuc256Util.L1;
|
||||
import static com.zuc.zuc256.Zuc256Util.L2;
|
||||
import static com.zuc.zuc256.Zuc256Util.add31;
|
||||
import static com.zuc.zuc256.Zuc256Util.makeU31;
|
||||
import static com.zuc.zuc256.Zuc256Util.makeU32;
|
||||
import static com.zuc.zuc256.Zuc256Util.rot31;
|
||||
import static com.cscn.Zuc256Util.L1;
|
||||
import static com.cscn.Zuc256Util.L2;
|
||||
import static com.cscn.Zuc256Util.add31;
|
||||
import static com.cscn.Zuc256Util.makeU31;
|
||||
import static com.cscn.Zuc256Util.makeU32;
|
||||
import static com.cscn.Zuc256Util.rot31;
|
||||
|
||||
/**
|
||||
* ZUC-256 核心:状态初始化、密钥字生成、密钥流生成。
|
||||
66
Project/Src/com/cscn/Zuc256Demo.java
Normal file
66
Project/Src/com/cscn/Zuc256Demo.java
Normal file
@@ -0,0 +1,66 @@
|
||||
//package com.cscn;
|
||||
//
|
||||
///**
|
||||
// * 演示主函数
|
||||
// */
|
||||
//public final class Zuc256Demo {
|
||||
//
|
||||
// public static void main(String[] args) {
|
||||
// // 1. 明文
|
||||
// byte[] plaintext = "ZUC256对称加解密测试:1234567890".getBytes();
|
||||
// int plaintextLen = plaintext.length;
|
||||
// System.out.println("明文: " + new String(plaintext));
|
||||
// printHex("明文(十六进制)", plaintext, plaintextLen);
|
||||
//
|
||||
// // 2. 密钥(32字节ASCII)
|
||||
// byte[] key = "0123456789abcdef0123456789abcdef".getBytes();
|
||||
// printHex("密钥", key, 32);
|
||||
//
|
||||
// // 3. 初始向量(25字节ASCII)
|
||||
// byte[] inputIv25Byte = "0123456789abcdefg01234567".getBytes();
|
||||
// byte[] iv = new byte[23];
|
||||
// extractIv(inputIv25Byte, iv);
|
||||
// printHex("提取后的IV", iv, 23);
|
||||
//
|
||||
// // 4. 分配加密/解密缓冲区
|
||||
// byte[] ciphertext = new byte[plaintextLen];
|
||||
// byte[] decryptedtext = new byte[plaintextLen];
|
||||
//
|
||||
// // 5. 加密
|
||||
// Zuc256State stateEnc = new Zuc256State();
|
||||
// Zuc256Core.initState(stateEnc, key, iv);
|
||||
// zuc256Crypt(stateEnc, plaintext, plaintextLen, ciphertext);
|
||||
// printHex("密文", ciphertext, plaintextLen);
|
||||
//
|
||||
// // 6. 解密(重新初始化状态)
|
||||
// Zuc256State stateDec = new Zuc256State();
|
||||
// Zuc256Core.initState(stateDec, key, iv);
|
||||
// zuc256Crypt(stateDec, ciphertext, plaintextLen, decryptedtext);
|
||||
// printHex("解密后", decryptedtext, plaintextLen);
|
||||
// System.out.println("解密文本: " + new String(decryptedtext));
|
||||
//
|
||||
// // 7. 验证结果
|
||||
// if (Arrays.equals(plaintext, decryptedtext)) {
|
||||
// System.out.println("=== 测试成功: 解密结果与明文一致 ===");
|
||||
// } else {
|
||||
// System.out.println("=== 测试失败: 解密结果与明文不一致 ===");
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // 一次性加密
|
||||
// public static void zuc256Crypt(Zuc256State state, byte[] in, int inlen, byte[] out) {
|
||||
// if (state == null || in == null || out == null) return;
|
||||
//
|
||||
// Zuc256EncryptCtx ctx = new Zuc256EncryptCtx(state);
|
||||
//
|
||||
// // 执行加解密
|
||||
// ctx.update(in, inlen, out);
|
||||
// int remainingOffset = (inlen / 4) * 4;
|
||||
// byte[] finishOut = new byte[out.length - remainingOffset];
|
||||
// if (finishOut.length > 0) {
|
||||
// System.arraycopy(out, remainingOffset, finishOut, 0, finishOut.length);
|
||||
// }
|
||||
// ctx.finish(finishOut);
|
||||
// System.arraycopy(finishOut, 0, out, remainingOffset, finishOut.length);
|
||||
// }
|
||||
//}
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.zuc.zuc256;
|
||||
package com.cscn;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static com.zuc.zuc256.Zuc256Core.zuc256GenerateKeystream;
|
||||
import static com.zuc.zuc256.Zuc256Core.zuc256GenerateKeyword;
|
||||
import static com.zuc.zuc256.Zuc256Util.getU32;
|
||||
import static com.zuc.zuc256.Zuc256Util.putU32;
|
||||
import static com.cscn.Zuc256Core.zuc256GenerateKeystream;
|
||||
import static com.cscn.Zuc256Core.zuc256GenerateKeyword;
|
||||
import static com.cscn.Zuc256Util.getU32;
|
||||
import static com.cscn.Zuc256Util.putU32;
|
||||
|
||||
|
||||
/**
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zuc.zuc256;
|
||||
package com.cscn;
|
||||
|
||||
/**
|
||||
* MAC上下文类
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zuc.zuc256;
|
||||
package com.cscn;
|
||||
|
||||
/**
|
||||
* ZUC状态类
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zuc.zuc256;
|
||||
package com.cscn;
|
||||
|
||||
/**
|
||||
* 常量表:S0/S1 与 ZUC256_D。
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zuc.zuc256;
|
||||
package com.cscn;
|
||||
|
||||
/**
|
||||
* 辅助工具:装载/存储、位运算、线性变换、打印等。
|
||||
40
SConscript
40
SConscript
@@ -1,40 +0,0 @@
|
||||
import os
|
||||
from SCons.Script import *
|
||||
|
||||
# 导入环境
|
||||
Import('env')
|
||||
|
||||
# 项目根目录
|
||||
CWD = os.getcwd()
|
||||
|
||||
# 收集源码(.c 和 .S 文件)
|
||||
sources = Glob(os.path.join(CWD, 'src/*.c')) + Glob(os.path.join(CWD, 'src/*.S'))
|
||||
|
||||
# 编译选项
|
||||
cpppath = [
|
||||
CWD,
|
||||
os.path.join(CWD, 'inc'), # 仅使用项目内的头文件目录
|
||||
]
|
||||
|
||||
# 确保 build 目录存在
|
||||
BUILD_DIR = 'build'
|
||||
if not os.path.exists(BUILD_DIR):
|
||||
os.makedirs(BUILD_DIR)
|
||||
|
||||
# 逐个编译源码生成目标文件(输出到 build 目录)
|
||||
objs = []
|
||||
for src in sources:
|
||||
src_path = str(src) # 转换为字符串路径
|
||||
obj_name = os.path.basename(src_path).replace('.c', '.o').replace('.S', '.o')
|
||||
obj_path = os.path.join(CWD, BUILD_DIR, obj_name)
|
||||
|
||||
obj = env.Object(
|
||||
target=obj_path,
|
||||
source=src_path,
|
||||
CPPPATH=cpppath,
|
||||
)
|
||||
objs.append(obj)
|
||||
|
||||
# 返回目标文件列表,给 SConstruct 链接用
|
||||
Return('objs')
|
||||
|
||||
47
SConstruct
47
SConstruct
@@ -1,47 +0,0 @@
|
||||
import os
|
||||
from SCons.Script import *
|
||||
|
||||
# 确保 build 目录存在
|
||||
BUILD_DIR = 'build'
|
||||
if not os.path.exists(BUILD_DIR):
|
||||
os.makedirs(BUILD_DIR)
|
||||
|
||||
# 导入配置(修改为导入algo.py)
|
||||
from algo import *
|
||||
|
||||
# 初始化构建环境
|
||||
env = Environment(
|
||||
tools=['default'],
|
||||
CC=CC,
|
||||
CXX=CXX,
|
||||
AS=AS,
|
||||
AR=AR,
|
||||
LINK=LINK,
|
||||
CCFLAGS=CFLAGS,
|
||||
CXXFLAGS=CFLAGS,
|
||||
ASFLAGS=AFLAGS,
|
||||
LINKFLAGS=LFLAGS,
|
||||
CPPPATH=['inc'], # 仅使用项目内的头文件目录
|
||||
)
|
||||
|
||||
# 递归构建源码(SConscript 负责收集编译文件)
|
||||
src_objs = env.SConscript('SConscript', exports='env')
|
||||
|
||||
# 链接生成 elf 文件(输出到 build 目录)
|
||||
elf_target = os.path.join(BUILD_DIR, TARGET_NAME)
|
||||
elf_file = env.Program(elf_target, src_objs)
|
||||
|
||||
# 后处理:生成 bin、asm 等文件
|
||||
post_commands = env.Command(
|
||||
os.path.join(BUILD_DIR, 'post_actions'), # 虚拟目标,确保命令执行
|
||||
elf_file,
|
||||
POST_ACTION
|
||||
)
|
||||
|
||||
# 关联默认构建目标(执行 scons 时默认编译+后处理)
|
||||
Default(elf_file)
|
||||
Default(post_commands)
|
||||
|
||||
# 清理规则(删除 build 目录及内容)
|
||||
Clean(elf_file, BUILD_DIR)
|
||||
|
||||
BIN
Tools/api_exp/JCDK222/java/io/javacard/io.exp
Normal file
BIN
Tools/api_exp/JCDK222/java/io/javacard/io.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/java/lang/javacard/lang.exp
Normal file
BIN
Tools/api_exp/JCDK222/java/lang/javacard/lang.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/java/rmi/javacard/rmi.exp
Normal file
BIN
Tools/api_exp/JCDK222/java/rmi/javacard/rmi.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacard/framework/javacard/framework.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacard/framework/javacard/framework.exp
Normal file
Binary file not shown.
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacard/security/javacard/security.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacard/security/javacard/security.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/apdu/javacard/apdu.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/apdu/javacard/apdu.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/biometry/javacard/biometry.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/biometry/javacard/biometry.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/crypto/javacard/crypto.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/crypto/javacard/crypto.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/external/javacard/external.exp
vendored
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/external/javacard/external.exp
vendored
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/framework/math/javacard/math.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/framework/math/javacard/math.exp
Normal file
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/framework/tlv/javacard/tlv.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/framework/tlv/javacard/tlv.exp
Normal file
Binary file not shown.
Binary file not shown.
BIN
Tools/api_exp/JCDK222/javacardx/framework/util/javacard/util.exp
Normal file
BIN
Tools/api_exp/JCDK222/javacardx/framework/util/javacard/util.exp
Normal file
Binary file not shown.
Binary file not shown.
BIN
Tools/ext_api/gp221.jar
Normal file
BIN
Tools/ext_api/gp221.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/api_export_files/java/io/javacard/io.exp
Normal file
BIN
Tools/jcdk222/api_export_files/java/io/javacard/io.exp
Normal file
Binary file not shown.
BIN
Tools/jcdk222/api_export_files/java/lang/javacard/lang.exp
Normal file
BIN
Tools/jcdk222/api_export_files/java/lang/javacard/lang.exp
Normal file
Binary file not shown.
BIN
Tools/jcdk222/api_export_files/java/rmi/javacard/rmi.exp
Normal file
BIN
Tools/jcdk222/api_export_files/java/rmi/javacard/rmi.exp
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Tools/jcdk222/api_export_files/javacardx/apdu/javacard/apdu.exp
Normal file
BIN
Tools/jcdk222/api_export_files/javacardx/apdu/javacard/apdu.exp
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Tools/jcdk222/api_export_files/javacardx/external/javacard/external.exp
vendored
Normal file
BIN
Tools/jcdk222/api_export_files/javacardx/external/javacard/external.exp
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
Tools/jcdk222/bin/apdutool.bat
Normal file
25
Tools/jcdk222/bin/apdutool.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.apdutool.Main %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/capdump.bat
Normal file
25
Tools/jcdk222/bin/capdump.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.capdump.CapDump %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/capgen.bat
Normal file
25
Tools/jcdk222/bin/capgen.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.jcasm.cap.Main %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/converter.bat
Normal file
25
Tools/jcdk222/bin/converter.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.converter.Converter %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
BIN
Tools/jcdk222/bin/cref.exe
Normal file
BIN
Tools/jcdk222/bin/cref.exe
Normal file
Binary file not shown.
25
Tools/jcdk222/bin/exp2text.bat
Normal file
25
Tools/jcdk222/bin/exp2text.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.converter.Exp2Text %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/jcwde.bat
Normal file
25
Tools/jcdk222/bin/jcwde.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.jcwde.Main %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
BIN
Tools/jcdk222/bin/jpcsclite.dll
Normal file
BIN
Tools/jcdk222/bin/jpcsclite.dll
Normal file
Binary file not shown.
25
Tools/jcdk222/bin/scriptgen.bat
Normal file
25
Tools/jcdk222/bin/scriptgen.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.scriptgen.Main %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/verifycap.bat
Normal file
25
Tools/jcdk222/bin/verifycap.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.offcardverifier.Verifier %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/verifyexp.bat
Normal file
25
Tools/jcdk222/bin/verifyexp.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.offcardverifier.VerifyExp %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
25
Tools/jcdk222/bin/verifyrev.bat
Normal file
25
Tools/jcdk222/bin/verifyrev.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
REM Use is subject to license terms.
|
||||
REM
|
||||
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
if not "%JAVA_HOME%" == "" goto check_tool
|
||||
echo Please set the JAVA_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:check_tool
|
||||
if not "%JC_HOME%" == "" goto doit
|
||||
echo Please set the JC_HOME environment variable.
|
||||
goto end
|
||||
|
||||
:doit
|
||||
set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;
|
||||
|
||||
%JAVA_HOME%\bin\java -classpath %_CLASSES% com.sun.javacard.offcardverifier.VerifyRev %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
if "%OS%" == "Windows_NT" endlocal
|
||||
BIN
Tools/jcdk222/lib/apduio.jar
Normal file
BIN
Tools/jcdk222/lib/apduio.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/apdutool.jar
Normal file
BIN
Tools/jcdk222/lib/apdutool.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/api.jar
Normal file
BIN
Tools/jcdk222/lib/api.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/api_16.jar
Normal file
BIN
Tools/jcdk222/lib/api_16.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/capdump.jar
Normal file
BIN
Tools/jcdk222/lib/capdump.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/converter.jar
Normal file
BIN
Tools/jcdk222/lib/converter.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/installer.jar
Normal file
BIN
Tools/jcdk222/lib/installer.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/javacardframework.jar
Normal file
BIN
Tools/jcdk222/lib/javacardframework.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/jcclientsamples.jar
Normal file
BIN
Tools/jcdk222/lib/jcclientsamples.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/jcrmiclientframework.jar
Normal file
BIN
Tools/jcdk222/lib/jcrmiclientframework.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/jcwde.jar
Normal file
BIN
Tools/jcdk222/lib/jcwde.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/jcwde_16.jar
Normal file
BIN
Tools/jcdk222/lib/jcwde_16.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/offcardverifier.jar
Normal file
BIN
Tools/jcdk222/lib/offcardverifier.jar
Normal file
Binary file not shown.
BIN
Tools/jcdk222/lib/scriptgen.jar
Normal file
BIN
Tools/jcdk222/lib/scriptgen.jar
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/HtmlConverter.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/HtmlConverter.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/appletviewer.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/appletviewer.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/apt.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/apt.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/beanreg.dll
Normal file
BIN
Tools/jdk1.5.0_19/bin/beanreg.dll
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/extcheck.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/extcheck.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/idlj.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/idlj.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jar.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jar.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jarsigner.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jarsigner.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/java.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/java.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/javac.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/javac.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/javadoc.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/javadoc.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/javah.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/javah.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/javap.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/javap.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/javaw.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/javaw.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/javaws.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/javaws.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jconsole.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jconsole.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jdb.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jdb.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jps.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jps.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jstat.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jstat.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/jstatd.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/jstatd.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/keytool.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/keytool.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/kinit.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/kinit.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/klist.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/klist.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/ktab.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/ktab.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/native2ascii.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/native2ascii.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/orbd.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/orbd.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/pack200.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/pack200.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/packager.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/packager.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/policytool.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/policytool.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/rmic.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/rmic.exe
Normal file
Binary file not shown.
BIN
Tools/jdk1.5.0_19/bin/rmid.exe
Normal file
BIN
Tools/jdk1.5.0_19/bin/rmid.exe
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user