12. Javacard の歴史
https://en.wikipedia.org/wiki/Java_Card
Version 2.1
(07.06.1999)
Version 2.1.1
(18.05.2000)
Version 2.2
(11.2002)
Version 2.2.1
(10.2003)
Version 2.2.2
(03.2006)
Version 3.0.1
(15.06.2009)
Version 3.0.4
(06.08.2011)
Version 3.0.5
(03.06.2015)
-RSA without padding.
-AES cryptography key encapsulation
-CRC algorithms,
-ECC key encapsulation,
-Diffie-Hellman key exchange
- Improved Logical Channels support (20)
- SHA-256, SHA-384, SHA-512
- ISO9796-2,
- HMAC,
- Korean SEED MAC NOPAD,
- Korean SEED NOPAD
-Classic and Connected editions
-SHA-224, SHA-2 for all signature
algorithms
-DES MAC8 ISO9797.
- Diffie-Hellman modular
exponentiation
- Domain Data
Conservation for Diffie-
Hellman
- Elliptic Curve and DSA
keys,
- RSA-3072
- SHA3
- plain ECDSA
- AES CMAC
- AES CTR.
•Added the isAppletActive method to the JCSystem class
- Added
the AppletEvent interface
with the uninstall method.
- Added
the isAppletActive method to
the JCSystem class
14. Javacard アプレットの実装サンプル
package io.soracom.jc_hello_pkg;
import javacard.framework.*;
public class jc_hello extends javacard.framework.Applet {
public static void install(byte[] bArray,
short bOffset, byte bLength) {
// call Applet.register()
}
public void process(APDU apdu) {
//Insert your code here
}}
javacard.framework.Appletを継承
して実装。
The class javacard.framework.Applet provides a framework for applet execution.
installメソッドを実装して、
アプレットのインスタンスを登録する
デバイスでアプレットを選択して、
APDUコマンドを投げるとこのprocessメソッドが呼ばれる
http://www.javaworld.com/article/2076450/client-side-java/how-to-write-a-java-card-applet--a-developer-s-guide.html
23. SORACOM SIMアプレット第一弾:
SIM Local Info レポート機能 (Public Beta)
U-1. Local infoレポートを要求
U-2. Accepted
S-4. Update local info
S-2. デバイスに情報問い合せ
S-3. Local info:
- MCC, MNC, Location Area Code
- Cell Id
- ネットワークの種類(GSM/3G/LTE)
- IMEI
- セルの電界情報
- バッテリ残量
S-1. Local infoレポートを要求
U-3. Get subscriber
U-4. Subscriber w/ Local Info
デバイス側でしか取得できない
情報を取得可能に!