JPS62164185A - Test program starting method and test program starting device - Google Patents
Test program starting method and test program starting deviceInfo
- Publication number
- JPS62164185A JPS62164185A JP61005721A JP572186A JPS62164185A JP S62164185 A JPS62164185 A JP S62164185A JP 61005721 A JP61005721 A JP 61005721A JP 572186 A JP572186 A JP 572186A JP S62164185 A JPS62164185 A JP S62164185A
- Authority
- JP
- Japan
- Prior art keywords
- card
- terminal
- test program
- data
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 10
- 239000011159 matrix material Substances 0.000 description 11
- 238000012360 testing method Methods 0.000 description 10
- 230000004913 activation Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 101100247628 Mus musculus Rcl1 gene Proteins 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[発明の技術分野]
この発明はICカード内に洛納されたテストプログラム
を起動するためのテストプログラム起動方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a test program starting method for starting a test program stored in an IC card.
近年、キャッシュレス時代と呼ばれており、クレジット
カード会社などにより発行されたカードを使用すること
により現金の取扱いをせずに商品の購入が可能になって
いる。2. Description of the Related Art In recent years, it has become possible to purchase products without having to handle cash by using cards issued by credit card companies.
従来、使用されているカードとしては、プラスチックカ
ード、エンボスカード、磁気ストライブカードなどがあ
るが、これらカードは構造上偽造が容易であるため、不
正使用が問題になっている。Conventionally used cards include plastic cards, embossed cards, and magnetic striped cards, but these cards are easy to forge due to their structure, so unauthorized use has become a problem.
そこで、このような問題を解決するため、カード内部に
認証番号などを記憶したIC回路を組込み、認証番号が
外部から容易に読出せないようにした情報カード、いわ
ゆるIcカードが考えられている。In order to solve this problem, an information card, a so-called IC card, is being considered in which an IC circuit that stores an authentication number and the like is built into the card so that the authentication number cannot be easily read from the outside.
ところで、このようなICカードにはデータメモリおよ
びシステムプログラムROMなど各種のし31が収納さ
れているが、特にデータメモリのアドレス指定、書込み
/読出し動作およびシステムプログラムROMのビット
パターン状態などは常に正常に保たれていなければなら
ず、このためカードの完成時あるいはカード使用中であ
っても、これらの状態をテストできることが必要である
。By the way, such an IC card stores various types of storage 31 such as data memory and system program ROM, and in particular, data memory addressing, write/read operations, and system program ROM bit pattern status are always normal. Therefore, it is necessary to be able to test these conditions when the card is completed or even while the card is in use.
そこで、従来のICカードではテストプログラムを記憶
させておき、このプログラムをカードに設けたテスト端
子を利用してカード外部より実行せしめ所定のテストを
可能にしている。Therefore, in conventional IC cards, a test program is stored, and this program is executed from outside the card using a test terminal provided on the card to enable a predetermined test.
ところが、このようにテスト端子を使用してカード外部
から簡単にテストを行なえることはシステムプログラム
ROMのビットパターンを始め、データメモリのビット
パターンなど秘密性の高い情報が簡単に外部に取出せる
ことになる。このことは、これらの情報を基にカードの
偽造が可能となり、安全性を著しく低下させるだけでな
く、最悪の場合はICカードを使用するシステム全体の
技術が分析され、大掛りに悪用されるおそれがあった。However, the ability to easily perform tests from outside the card using test terminals means that highly confidential information such as the bit pattern of the system program ROM and the bit pattern of data memory can be easily retrieved to the outside. become. This not only makes it possible to forge cards based on this information, significantly reducing security, but in the worst case scenario, the technology of the entire system that uses IC cards will be analyzed and exploited on a large scale. There was a risk.
し発明の目的]
この発明は上記の事情に鑑みてなされたもので、ICカ
ード内のテストプログラムの不正な起動を確実に防止で
きるテストプログラム起動方式を提供することを目的と
する。OBJECT OF THE INVENTION] The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a test program starting method that can reliably prevent unauthorized starting of a test program in an IC card.
[発明の要点コ
この発明にかかるテストプログラム起動方式はICカー
ドに設けられるReset端子あるいはI10端子を利
用し、この端子にレベルの異なる多値信号を直列に入力
するとともに、これら直列入力に基づく直列レベル情報
の組合わせと、予めカード内に記憶された直列レベル情
報の組合わせとを比較し、これらが一致したときのみテ
ストプログラムの起動を許容するような構成となってい
る。[Key Points of the Invention] The test program starting method according to the present invention utilizes the Reset terminal or I10 terminal provided on the IC card, inputs multi-level signals of different levels to this terminal in series, and also The combination of level information and the combination of serial level information stored in advance in the card are compared, and the test program is allowed to start only when they match.
[発明の実施例] 以下、この発明の一実施例を図面にしたがい説明する。[Embodiments of the invention] An embodiment of the present invention will be described below with reference to the drawings.
この実施例では、Reset端子を利用してテストプロ
グラムの起動要請を行なうものについて述べる。In this embodiment, a case will be described in which a reset terminal is used to request startup of a test program.
第1図は同実施例の回路構成を示すものである。FIG. 1 shows the circuit configuration of the same embodiment.
図において、11はシステムバスで、このシステムバス
11にはデータROM12、アプリケーションデータR
OM13、ワーキングRAM14、システムプログラム
ROM15、テストプログラムROM16、メインコン
トローラ17、データメモリコントローラ18、暗号比
較器19、USART回路20が夫々接続されている。In the figure, 11 is a system bus, and this system bus 11 includes a data ROM 12, an application data R
An OM 13, a working RAM 14, a system program ROM 15, a test program ROM 16, a main controller 17, a data memory controller 18, a cryptographic comparator 19, and a USART circuit 20 are connected, respectively.
ここで、データROM12はICカード自身に対するあ
らゆる動作条件を記憶するもので、これらの条注データ
はカード自身の内部イニシャルが終了すると、予め定め
られたフォーマットにのっとりアンサ・ツー・リセット
・データとして図示しないターミナル側に送信されるよ
うになっている。Here, the data ROM 12 stores all operating conditions for the IC card itself, and when the internal initialization of the card itself is completed, these data are displayed as answer-to-reset data in accordance with a predetermined format. It is supposed to be sent to the terminal side.
アプリケーションデータROM13は、このカードがい
かなる種類のものかを示すカード種別データrAPNJ
を記憶するもので、このデータは上記のアンサ・ツー・
リセッ1−・データにもとすくイニシャルパラメータ設
定後、ターミナルとの属性交換の際に所定のデータフォ
ーマットにのせられ送出される。The application data ROM 13 contains card type data rAPNJ indicating what type of card this card is.
This data is stored in the answer to
Reset 1--After setting the initial parameters, the data is sent out in a predetermined data format when exchanging attributes with the terminal.
ワーキングRAM14はカード内での演算データなどが
記憶される。The working RAM 14 stores calculation data within the card.
システムプログラムROM15は各種システムプログラ
ムとともにターミナル側より伝送供給される信号が正し
いか否かを表わすコード信号rAcKJまたはrNAc
Jを備えている。また、このシステムプログラムROM
15にはターミナルからのテストプログラム起動指令を
最終的にチェックするための特定コードが1込まれてい
る。The system program ROM 15 contains various system programs as well as code signals rAcKJ or rNAc indicating whether the signals transmitted and supplied from the terminal side are correct or not.
Equipped with J. In addition, this system program ROM
15 contains a specific code 1 for finally checking the test program starting command from the terminal.
テストプログラムROM16はカード内部のテストとし
てシステムプログラムROM15でのビットパターンの
チェック、あるいはデータメモリのアクセスなどを実行
するためのテストプログラムを記憶している。The test program ROM 16 stores a test program for checking the bit pattern in the system program ROM 15 or accessing the data memory as a test inside the card.
メインコントローラ17はターミナル側から伝送供給さ
れるデータ信号および動作状態に応じて各回路に動作指
令を出力するものである。The main controller 17 outputs operation commands to each circuit in accordance with the data signal transmitted and supplied from the terminal side and the operating state.
データメモリコントローラ18はメインコントローラ1
7からの指令に応じてデータメモリ21に対するアドレ
ス指定およびデータの書込み/読出しを行ない、さらに
はこれらアドレス指定およびデータの書込み/読出しを
一切停止させることができるようにもなっている。The data memory controller 18 is the main controller 1
Addressing and data writing/reading with respect to the data memory 21 are performed in response to commands from 7, and furthermore, these addressing and data writing/reading can be completely stopped.
データメモリ21は例えばEEP−ROMが使用されて
いる。この場合、かかるデータメモリ25はrcAJ、
rlPINJ、IPANJ、rcHNJ、rEPDJ、
rPRKJの各コード、スティタスデータrsTJなど
の情報を記憶している。ここで、rcAJ (Car
d Authenticator)はランダムなコー
ドで、メツセージの暗号化および解読に使用される。For example, an EEP-ROM is used as the data memory 21. In this case, such data memory 25 is rcAJ,
rlPINJ, IPANJ, rcHNJ, rEPDJ,
It stores information such as each code of rPRKJ and status data rsTJ. Here, rcAJ (Car
dAuthenticator) is a random code used to encrypt and decrypt messages.
r[PINJ Nn1tialzation Pe
rsonal IdentificationNLl
mber)はランダムな例えば6ビツトのコードで、自
己の照合番号IF’lNJが使用されるまでの番号で有
る。I’PANJ (Primary Accou
nt Number)は口座番号を表わしている。r
cHNJ (Card holder′s Na
me)はカード所有者の名前を表わしている。f’EP
DJ (Expirati。r[PINJ Nn1tialization Pe
rsonal IdentificationNLl
mber) is a random code of, for example, 6 bits, and is a number until the own verification number IF'lNJ is used. I'PANJ (Primary Accou
nt Number) represents the account number. r
cHNJ (Card holder's Na
me) represents the cardholder's name. f'EP
DJ (Expirati.
n Date)は有効期限を表わしている。n Date) represents the expiration date.
rPRKJ (Private Key Cod
e)は暗号解読用コードである。rsTJは現在のカー
ド状態を表わす為のもので、データフォーマットでター
ミナル側に送信される。rPRKJ (Private Key Cod
e) is a decryption code. rsTJ is used to represent the current card status and is sent to the terminal side in data format.
暗号比較器19はターミナル側から伝送された入力デー
タをrR8AJアルゴリズムに基づき暗号解読するとと
もに、必要によりシステムプログラムROM15から読
出される特定コードとの比較を行なうようになっている
。そして、この暗号比較器19の出力はメインコントロ
ーラ17に送られる。The code comparator 19 decrypts the input data transmitted from the terminal side based on the rR8AJ algorithm, and also compares the input data with a specific code read from the system program ROM 15 if necessary. The output of this cryptographic comparator 19 is then sent to the main controller 17.
USART回路20は[/ 0 @子を介してターミナ
ルに接続され、該ターミナルとの間のデータ伝送を制御
するようになっている。The USART circuit 20 is connected to the terminal via the [/0@ child and controls data transmission to and from the terminal.
一方、22はカードのテストプログラム起動要請の可否
をチェックするチェック回路で、このチェック回路22
はカードをターミナルに装着した状態でリセット信号が
与えられるReset端子を有している。そして、この
Reset端子にはレベル検出器23を接続している。On the other hand, 22 is a check circuit for checking whether or not a request to start the test program of the card is made.
has a Reset terminal to which a reset signal is applied when the card is attached to the terminal. A level detector 23 is connected to this Reset terminal.
この場合、このReset端子には正規のリセット信号
の他にレベルの異なる複数の多値信号が、c ! oc
k端子のクロック信号のに同期して直列的に入力される
。具体的には第3図に示すようにレベルの異なる多値信
号として、例えば電位の異なる3値の電圧Vcc、V1
、V2が用いられ、これら3値の信号がクロック信号Φ
に同期して所定の順序でReset端子に与えられるよ
うになる。そして、この状態でレベル検出器23より上
記の3随信号に対応してvCCでは「O」、vlではr
lJ、v2では「2」のレベル情報が得られる。In this case, in addition to the regular reset signal, the Reset terminal receives a plurality of multilevel signals with different levels, c! oc
It is input serially in synchronization with the clock signal of the k terminal. Specifically, as shown in FIG. 3, as multi-value signals with different levels, for example, three-value voltages Vcc and V1 with different potentials are used.
, V2 are used, and these three-value signals are the clock signal Φ
The signals are applied to the Reset terminal in a predetermined order in synchronization with the . In this state, the level detector 23 outputs "O" for vCC and "r" for vl in response to the above-mentioned three-way signal.
In lJ, v2, level information of "2" is obtained.
このレベル検出器23の出力は比較部24に与えられる
。この比較部24にはレベルマトリクス25の出力が与
えられている。このレベルマトリクス25は上記レベル
検出器23からのレベル情報に対応するカード固有のレ
ベル情報を有している。また、レベルマトリクス25に
は上記クロック信号のが与えられる。The output of this level detector 23 is given to a comparator 24. The comparator 24 is supplied with the output of the level matrix 25. This level matrix 25 has card-specific level information corresponding to the level information from the level detector 23. Further, the level matrix 25 is given the above clock signal.
そして、比較部24の比較結果はメインコントローラ1
7に送られる。Then, the comparison result of the comparison section 24 is the main controller 1.
Sent to 7.
ここで、このようなチェック回路22を第2図に基づい
て更に具体的に述べると、レベル検出器23は出力端子
01.02を有し、レベル情報rOJの時「00」、レ
ベル情報「1」の時「01」、レベル情報「2」の時「
10」を出力する。Here, to describe the check circuit 22 more specifically based on FIG. 2, the level detector 23 has an output terminal 01.02, and when the level information rOJ is "00", the level information "1" ” when the level information is “01”, and when the level information is “2” it is “
10" is output.
一方、レベルマトリクス25はクロック信号Φをカウン
トするカウンタ251、該カウンタ251のカウント内
容に応じて読出しアドレス1〜10を出力するマトリク
ス部252および該マトリクス部252にて指定された
アドレスに応じて予め記憶された3値のレベル情報「0
」、「1」、r2Jを出力する記憶部253を有してい
る。この場合、レベル情報「0」はroOJ 、レベル
情報「1」は「ol」、レベル情報「2」は「10」の
コードデータとして出力される。On the other hand, the level matrix 25 includes a counter 251 that counts the clock signal Φ, a matrix section 252 that outputs read addresses 1 to 10 according to the count contents of the counter 251, and The memorized 3-value level information “0”
”, “1”, and r2J. In this case, level information "0" is output as code data of roOJ, level information "1" is output as "ol", and level information "2" is output as code data of "10".
そして、この記憶部273の出力は比較部24に与えら
れる。The output of this storage section 273 is then given to the comparison section 24.
一方、第1図に戻ってターミナル側よりVcc端子にカ
ード駆動用電源、vpp端子にデータメモリ21に対す
る書込み用電源が印加される。この時の電源電圧はデー
タROM12にて記憶されるアンサ・ツー・リセット・
データに基づきターミナル側にて設定される。また、G
ND端子にターミナル側のGNDラインが接続される。On the other hand, returning to FIG. 1, power for card driving is applied to the Vcc terminal and power for writing to the data memory 21 is applied to the Vpp terminal from the terminal side. The power supply voltage at this time is the answer-to-reset voltage stored in the data ROM12.
Set on the terminal side based on the data. Also, G
The GND line on the terminal side is connected to the ND terminal.
ざらに、Cl ock端子のクロック信号は分周器26
を介してΦ′として各回路に供給される。Roughly speaking, the clock signal of the Clock terminal is passed through the frequency divider 26.
is supplied to each circuit as Φ'.
ここで、このようなICカードと、該カードが装着され
るターミナルとの関係を簡単に述べると、次のようにな
る。いま、ICカードをターミナルに装着すると、予め
ターミナル側にて設定された初期設定信号が送信されて
くる。すると、この信号に基づく動作条件にてICカー
ドが動作される。Here, the relationship between such an IC card and the terminal to which the card is installed will be briefly described as follows. Now, when an IC card is inserted into a terminal, an initial setting signal set in advance on the terminal side is transmitted. Then, the IC card is operated under operating conditions based on this signal.
つまり、メインコントローラ17の制御によりデータR
OM12に記憶されていたアンサ・ツー・リセット・デ
ータが読出され、ターミナル側に送出される。そして、
ターミナル側にてこのデータが正しいものと判定される
と、カード専用の動作条件が59定されるとともにrE
NQJ (間合わせ)コードが返送されてくる。この
コードはワーキングRAM14に1込まれる。この状態
で、メインコントローラ17にてrENQJコードを正
常の動作で正規に受けることができるか否かが判断され
、システムプログラムROM15よりYESの場合rA
cKJ 、No(7)場合rNAcJ の夫々ノ信号が
取出されターミナル側に送出される。そして、ターミナ
ル側にてrAcKj信号が確認されると、ターミナルの
種類に応じて異なるターミナルコードrTcJが返送さ
れてくる。一方、rNAcJ信号が確認されると、ター
ミナルとの接続関係が断たれる。ターミナル側よりター
ミナルコードrTcJが送られてくると、ICカードで
はメインコントローラ17にてアプリケーションデータ
ROM13に記憶されているカードの種類に応じて異な
るアプリケーションネームrAPNJが取出されターミ
ナル側に返送する。In other words, the data R is controlled by the main controller 17.
The answer-to-reset data stored in OM12 is read out and sent to the terminal side. and,
If this data is determined to be correct on the terminal side, the card-specific operating conditions are determined and rE
An NQJ (makeshift) code will be sent back to you. This code is loaded into the working RAM 14 by 1. In this state, the main controller 17 determines whether or not the rENQJ code can be properly received in normal operation, and if YES is determined from the system program ROM 15, the rENQJ code is
In the case of cKJ and No (7), the respective signals of rNAcJ are extracted and sent to the terminal side. When the rAcKj signal is confirmed on the terminal side, a different terminal code rTcJ is returned depending on the type of terminal. On the other hand, if the rNAcJ signal is confirmed, the connection with the terminal is severed. When the terminal code rTcJ is sent from the terminal side, the main controller 17 of the IC card extracts an application name rAPNJ, which differs depending on the type of card stored in the application data ROM 13, and sends it back to the terminal side.
その後、ターミナル側にてrAPNJを基にその用途種
別が対応関係にあるか否かが判断されると、命令コード
が返送されてくる。一方、一致しないと判断されると、
ターミナルとの接続関係が断たれる。こうして命令コー
ドが得られるとターミナルから入力される自己の認証番
号「PINJとICカードに予め記憶されている認証番
号との比較が行なわれ、両者が一致するのをまって、そ
の後の金銭取引などの情報交換が実行されるようになる
。Thereafter, when it is determined on the terminal side whether or not the application types have a correspondence relationship based on rAPNJ, an instruction code is returned. On the other hand, if it is determined that there is no match,
The connection with the terminal is severed. Once the command code is obtained, the personal authentication number PINJ entered from the terminal is compared with the authentication number pre-stored in the IC card, and after waiting for the two to match, subsequent financial transactions can be made. information exchange will be carried out.
次に、このように構成される実施例の動作を第4図のフ
ローチャートにしたがい説明する。Next, the operation of the embodiment configured as described above will be explained according to the flowchart shown in FIG.
まず、テストを行なうべくICカードをテスト用のター
ミナルに装着する。するとICカードの1/’Oi子、
Re S e t 端子、C1ock端子、Vcc端子
、vpp端子、GND端子がターミナル側の対応する端
子に接続される。First, to perform a test, an IC card is attached to a test terminal. Then the IC card's 1/'Oi child,
The ReSet terminal, C1ock terminal, Vcc terminal, vpp terminal, and GND terminal are connected to corresponding terminals on the terminal side.
これによりステップA1に進む。このステップA1では
、テストプログラムの起動要請に対する可否が判断され
る。これには、まずターミナル側よりRe s e t
端子にレベルの異なるアナログ信号が与えられる。具
体的にはターミナル側でのテスト指令により、第3図に
示すようにクロック信号のと同期してレベルの異なる3
直の電圧Vcc、Vl“、V2が直列的に出力されRe
set端子に与えられる。この場合、図示例ではV2−
Vcc−V 1− V c c−・・−V 2の順に1
0#Aの31直信号が与えられている。すると、これら
3直言号に対応する直列レベル情報がレベル検出器23
の出力端子o1、o2より順に発生され、比較部24に
与えられる。This causes the process to proceed to step A1. In this step A1, it is determined whether or not the request to start the test program is accepted. To do this, first, from the terminal side,
Analog signals with different levels are applied to the terminals. Specifically, depending on the test command on the terminal side, as shown in Figure 3, three signals with different levels are synchronized with the clock signal.
Direct voltages Vcc, Vl", V2 are output in series and Re
It is given to the set terminal. In this case, in the illustrated example, V2-
1 in the order of Vcc-V 1- V c c-...-V 2
A 31 direct signal of 0#A is given. Then, the serial level information corresponding to these three direct signals is sent to the level detector 23.
The signals are generated in order from the output terminals o1 and o2 of the output terminals o1 and o2, and are applied to the comparator 24.
一方、レベルマトリクス25では、ターミナルからのり
Oツク信号Φがカウンタ251にてカウントされる。す
ると、このカウンタ251のカウント内容に応じてマト
リクス部252より読出しアドレスが1から10まで出
力される。これにより、記憶部253はアドレス1から
10まで順に予め記憶されている直列レベル情報が読出
される。On the other hand, in the level matrix 25, a counter 251 counts the overload signal Φ from the terminal. Then, read addresses from 1 to 10 are outputted from the matrix section 252 according to the count contents of the counter 251. As a result, the serial level information stored in advance in the order of addresses 1 to 10 is read out from the storage unit 253.
この場合、記憶部253より読出されるレベル情報は「
2」 「O」 「1」・・・「2」の順で出力される。In this case, the level information read from the storage unit 253 is “
2""O""1"..."2" are output in this order.
そして、この出力は比較部24に与えられる。This output is then given to the comparator 24.
これにより比較部24では、レベル検出器23からのレ
ベル情報とレベルマトリクス25からのレベル情報の一
致を調べる。この場合、一致結果が得られたとすると、
「1」出力が発生されるが、仮に不正なプログラム起動
要請でターミナルからの311信号の組合わせが、予め
記憶部253に記憶されたものと異なると、不一致結果
としてrOJ出力のままとなる。Thereby, the comparator 24 checks whether the level information from the level detector 23 and the level information from the level matrix 25 match. In this case, if a matching result is obtained,
A "1" output is generated, but if the combination of 311 signals from the terminal is different from the one stored in advance in the storage unit 253 due to an illegal program activation request, the rOJ output remains as a result of the mismatch.
この状態での比較部24の出力はメインコントローラ1
7に送られる
この場合、第3図に示す3短信号が直列にReset端
子に入力されていれば比較部24にて一致結果が得られ
るので、「1」出力が発生される。In this state, the output of the comparator 24 is the main controller 1
In this case, if the 3 short signals shown in FIG. 3 are input in series to the Reset terminal, a matching result will be obtained in the comparator 24, and a "1" output will be generated.
すると、正規なプログラム起動要請と判断され、ステッ
プA2に進む。Then, it is determined that the request is a legitimate program activation request, and the process proceeds to step A2.
このステップA2では、メインコントローラ17の指令
によりターミナル側に対し正規なプログラム起動要請と
して受付けられた旨が知らされる。この状態で、ターミ
ナル側からプログラム起動のための特定コードが送られ
、暗号比較器19に与えられる。In step A2, the main controller 17 commands the terminal side to notify that the request has been accepted as a legitimate program startup request. In this state, a specific code for starting the program is sent from the terminal side and given to the code comparator 19.
一方、メインコントローラ17の指令によりシステムプ
ログラムROM15に書込まれた特定コードが読出され
、これが暗号比較器19に与えられる。これにより、ス
テップA3にてターミナルからの特定コードはカード自
身の特定コードと比較される。そして、この比較結果が
不一致ならばステップA5に進み、カード無効処理が実
行される。この場合のカード無効処理はメインコントロ
ーラ17の指令をまってデータメモリコントローラ18
によるデータメモリ21に対するアドレス指定およびデ
ータの書込み/読出しが一切停止されるようになる。一
方、一致していれば、ステップA4に進み、テストプロ
グラムROM16の内容が読出され、ターミナル側にて
カード内のシステムプログラムROM15のビットパタ
ーンのチェック、あるいはデータメモリ21のアクセス
などが可能となる。On the other hand, a specific code written in the system program ROM 15 is read out according to a command from the main controller 17, and is given to the code comparator 19. Thereby, in step A3, the specific code from the terminal is compared with the specific code of the card itself. If the comparison results do not match, the process proceeds to step A5, where card invalidation processing is executed. In this case, card invalidation processing is performed by the data memory controller 18 after receiving a command from the main controller 17.
Address designation and data writing/reading with respect to the data memory 21 are completely stopped. On the other hand, if they match, the process proceeds to step A4, where the contents of the test program ROM 16 are read out, and it becomes possible to check the bit pattern of the system program ROM 15 in the card or access the data memory 21 on the terminal side.
ところが、いま仮に、不正なプログラム起動要請でター
ミナルからの3短信号の組合わせが正規のものと異なる
と、比較器24は不一致結果により出力はrOJのまま
で、不正起動要請と判断され、ステップA5に進む。し
たがって、上述と同様にしてデータメモリコントローラ
18によるデータメモリ21に対するアドレス指定およ
びデータの書込み/読出しが一切停止されるようになり
、カードは無効処理される。However, if the combination of 3 short signals from the terminal is different from the normal one due to an unauthorized program startup request, the output of the comparator 24 will remain rOJ due to the discrepancy result, and it will be determined that it is an unauthorized program startup request, and the step Proceed to A5. Therefore, in the same way as described above, addressing and data writing/reading to and from the data memory 21 by the data memory controller 18 are completely stopped, and the card is invalidated.
したがって、このようにすれば、ICカードのRese
t端子を利用し、この端子にターミナル側より3短信号
を直列的に与え、このときの3短信号に基づく直列レベ
ル情報の組合わせが、予めカード内部に記憶された直列
レベル情報の組合わせと一致したときのみカード内のテ
ストプログラムの起動を許すようにしているので、従来
のようにデス1一端子を使用してカード外部から簡単に
テス1−を行なえるものと比べ、不正にテストプログラ
ムが起動されるのを防止して、秘密性の高い情報を外部
に取出そうとする試みを未然に阻止できる。これにより
カードの偽造行為を始めとしてシステム全体の技術的分
析行為などを確実に防止でき、カードの安全性を飛躍的
に向上させることができる。Therefore, if you do this, you can reset the IC card.
Using the t terminal, apply 3 short signals to this terminal in series from the terminal side, and the combination of serial level information based on the 3 short signals at this time is the combination of serial level information stored in advance inside the card. Since the test program in the card is only allowed to start when the data matches the 1- terminal, it is easier to perform a test 1- from outside the card using the 1- terminal than in the past. By preventing programs from being started, attempts to extract highly confidential information to the outside can be thwarted. This makes it possible to reliably prevent counterfeiting of cards and technical analysis of the entire system, thereby dramatically improving card security.
なお、この発明は上記実施例にのみ限定されず、要旨を
変更しない範囲で適宜変形して実施できる。It should be noted that the present invention is not limited to the above-mentioned embodiments, but can be implemented with appropriate modifications without changing the gist.
上述のレベルマトリクス25でのレベル情報の組合わせ
は一例であり、これ以外の組合わせのものを用いること
もできる。こうすれば、同じIC回路を使用したカード
でも異なるIC回路を使用したものとして用いることが
できる。また、上述ではReset端子を使用した場合
を述べたが、I / OM子等を使用することもできる
。さらに、上述では一貫して31a信号を使用したが、
4短信号でもよく、アナログ信号を用いてもよいなど、
これらに限定されるものでもない。The combination of level information in the level matrix 25 described above is an example, and other combinations may also be used. In this way, even cards using the same IC circuit can be used as cards using different IC circuits. Furthermore, although the case where the Reset terminal is used has been described above, it is also possible to use an I/OM child or the like. Furthermore, although the 31a signal was consistently used in the above,
4 Short signals may be used, analog signals may be used, etc.
It is not limited to these.
[発明の効果]
この発明によればICカード内のテストプログラムの不
正な起動を確実に防止し、秘密性の高い情報が不用意に
外部に取出されるおそれをなくしたので、カードの偽造
行為などを確実に防止でき、カードの安全性を飛躍的に
向上させることができる。[Effects of the Invention] According to the present invention, unauthorized activation of the test program in the IC card is reliably prevented, and the risk of highly confidential information being inadvertently taken out to the outside is eliminated, so card forgery is prevented. Such problems can be reliably prevented, and card security can be dramatically improved.
第1図はこの発明の一実施例の回路構成を示すブロック
図、第2図は同実施例に用いられるチェック回路を示す
回路構成図、第3図は同実施例に使用される3短信号を
説明するためのタイムチャート、第4図は同実施例の動
作を説明するためのフローチャートである。
15・・・システムプログラムROM、16・・・テス
トプログラムROM、17・・・メインコントローラ、
18・・・データメモリコントローラ1.21・・・デ
ータメモリ、22・・・チェック回路、23・・・レベ
ル検出器、24・・・比較部、25・・・レベルマトリ
クス、251・・・カウンタ、252・・・マトリクス
部、253・・・記憶部。Fig. 1 is a block diagram showing the circuit configuration of an embodiment of the present invention, Fig. 2 is a circuit diagram showing a check circuit used in the embodiment, and Fig. 3 is a 3-short signal signal used in the embodiment. FIG. 4 is a flow chart for explaining the operation of the same embodiment. 15... System program ROM, 16... Test program ROM, 17... Main controller,
18... Data memory controller 1.21... Data memory, 22... Check circuit, 23... Level detector, 24... Comparison section, 25... Level matrix, 251... Counter , 252... Matrix section, 253... Storage section.
Claims (2)
ルの異なる複数の信号を直列的に入力し、これら入力信
号に基づく直列レベル情報の組合わせと、予めカード内
に記憶された直列レベル情報の組合わせとを比較し、こ
れらが一致したときのみテストプログラムの起動を可能
としたことを特徴とするテストプログラム起動方式。(1) A plurality of signals with different levels are input in series to one of the terminals provided on the IC card, and the combination of serial level information based on these input signals and the serial level information stored in the card in advance is performed. A test program startup method is characterized in that the test program can be started only when the combinations are compared and the combinations match.
O端子を用い、当該端子にレベルの異なる3値の電圧を
与えるようにしたことを特徴とする特許請求の範囲第1
項記載のテストプログラム起動方式。(2) The above IC card has a Reset terminal or
Claim 1, characterized in that an O terminal is used and voltages of three different levels are applied to the terminal.
Test program startup method described in section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61005721A JP2712149B2 (en) | 1986-01-14 | 1986-01-14 | Test program starting method and test program starting device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61005721A JP2712149B2 (en) | 1986-01-14 | 1986-01-14 | Test program starting method and test program starting device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62164185A true JPS62164185A (en) | 1987-07-20 |
JP2712149B2 JP2712149B2 (en) | 1998-02-10 |
Family
ID=11618982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61005721A Expired - Fee Related JP2712149B2 (en) | 1986-01-14 | 1986-01-14 | Test program starting method and test program starting device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2712149B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0769951B2 (en) * | 1991-02-19 | 1995-07-31 | ジェムプリュス カード アンテルナショナル | How to protect integrated circuits from unauthorized use |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5890184A (en) * | 1981-11-26 | 1983-05-28 | Toshiba Corp | Testing device for circuit |
JPS60179850A (en) * | 1984-02-28 | 1985-09-13 | Fujitsu Ltd | Start control system of maintenance |
JPS60196872A (en) * | 1984-03-19 | 1985-10-05 | Omron Tateisi Electronics Co | Device for preventing ic card from illegal use |
-
1986
- 1986-01-14 JP JP61005721A patent/JP2712149B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5890184A (en) * | 1981-11-26 | 1983-05-28 | Toshiba Corp | Testing device for circuit |
JPS60179850A (en) * | 1984-02-28 | 1985-09-13 | Fujitsu Ltd | Start control system of maintenance |
JPS60196872A (en) * | 1984-03-19 | 1985-10-05 | Omron Tateisi Electronics Co | Device for preventing ic card from illegal use |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0769951B2 (en) * | 1991-02-19 | 1995-07-31 | ジェムプリュス カード アンテルナショナル | How to protect integrated circuits from unauthorized use |
Also Published As
Publication number | Publication date |
---|---|
JP2712149B2 (en) | 1998-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0682405B2 (en) | Test program start method | |
KR900005212B1 (en) | Ic card with an updatable password | |
US6094724A (en) | Secure memory having anti-wire tapping | |
US4910774A (en) | Method and system for suthenticating electronic memory cards | |
US6454173B2 (en) | Smart card technology | |
US4746788A (en) | Identification system for authenticating both IC card and terminal | |
US4839506A (en) | IC card identification system including pin-check time means | |
US5237609A (en) | Portable secure semiconductor memory device | |
US5379344A (en) | Smart card validation device and method | |
US6839840B1 (en) | Authenticating method between a smart card and a terminal | |
US4734569A (en) | IC card | |
JPS5821740B2 (en) | How to prevent unauthorized use of ID cards | |
EP0286094B1 (en) | Ic card system | |
HU220210B (en) | Method of performing transaction in a protected way | |
EP0770256B1 (en) | Testing of memory content | |
JPS62164185A (en) | Test program starting method and test program starting device | |
JP2001524724A (en) | Data management method for chip card | |
JP2712148B2 (en) | Test program starting method and test program starting device | |
JPS62211756A (en) | IC card test method | |
JPS63259785A (en) | IC card authentication method | |
JPH02259893A (en) | Portable semiconductor memory | |
JPS62249249A (en) | Authorizing system for ic card | |
JPS6356743A (en) | Program data check system | |
JPS63262779A (en) | IC card authentication system | |
JPH0734216B2 (en) | IC card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |