LoginSignup
0
0

More than 1 year has passed since last update.

SIMの中身(EF)を読めるようになろう!

Last updated at Posted at 2023-01-29

SIMの中身はASN.1という古の言語で書かれていて、読めないのでまずは標準から確認したいと思います。。

https://qiita.com/nekokane/items/3d2e33f9b834b2412ab0
上記のIIJ mioミーティングでおすすめされていた標準を読みたいと思います。
SIM初心者はまず下記を読むといいらしい。
 3GPP TS 23.038 (SIM)
 3GPP TS 31.102(USIM)
 ETSI 102.221(基本)

参考文献

[1]esim.me(物理eSIMカード)を試してみた&中身を覗いてみた omusubi5g
 https://omusubi5g.hatenablog.com/entry/2023/01/20/160150
[2]3GPP TS31.101 V16.2 (2021-06)  UICC-terminal interface
 https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=1802
[3]ETSI TS 102 221 V15.0.0 (2018-07)
 https://www.etsi.org/deliver/etsi_ts/102200_102299/102221/15.00.00_60/ts_102221v150000p.pdf
[4]ITU-T E.118
https://www.itu.int/rec/T-REC-E.118-200605-I/en
[5]ETSI TS 31.102 Characteristics of USIM 16.13.0
 https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=1803
[6]IIJ eSIMについて
 https://www.iij.ad.jp/dev/tech/techday/2018/pdf/TD2018_6.pdf

サマリ

 鍵情報が入っているEFが見つからない。

詳細

3GPP TS31.101

あまり中身は無くて、TS 102 221の参照がほとんど。

4.2. platform over view

image.png

図は[2]より引用

11 Command

SELECT, STATSU, READ, UPDATE等

ETSI TS 102 221

 SIMのデータの中身EFの定義は一部ここにある

13 Application independent files

13.2 EFICCID (ICC Identification)

image.png

image.png

値: ITU-T E.118
image.png
19文字
先頭から
89:テレコム向け、3桁Cuntry code 日本:440、Issure id、識別番号

3GPP TS31.102

4.2.2 EFIMSI (IMSI)

1Byte : Length of IMSI
2 to 9 byte : IMSI

 IMSIの1Byte目はLengthだったのか納得。

Coding
1 0 0 Prity IMSI
image.png

Ki/OPC はどこだー
[6]より、PE-AKAParameterにありそう。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0