JPS61121169A - Recognizing system for ic card - Google Patents

Recognizing system for ic card

Info

Publication number
JPS61121169A
JPS61121169A JP59244031A JP24403184A JPS61121169A JP S61121169 A JPS61121169 A JP S61121169A JP 59244031 A JP59244031 A JP 59244031A JP 24403184 A JP24403184 A JP 24403184A JP S61121169 A JPS61121169 A JP S61121169A
Authority
JP
Japan
Prior art keywords
card
register
data
terminal
memory
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.)
Pending
Application number
JP59244031A
Other languages
Japanese (ja)
Inventor
Kenji Rikuna
陸名 健治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP59244031A priority Critical patent/JPS61121169A/en
Publication of JPS61121169A publication Critical patent/JPS61121169A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recognize an IC card by encoding a test message produced at random within a terminal with specific key codes to transmit it to the IC card, decoding the key code via the card to transmit it to a terminal and discriminating the propriety of correspondence with the data. CONSTITUTION:The prescribed key code given from a keyboard 16 is added to the signals produced at random from a random number data generator 20 within a card terminal. Then an RSA encoder 21 encodes a test message and transmits it to an IC card via a bus line 11. This test message is decoded by an RSA decoder for IC cards, and the own test message is applied to an SAN arithmetic part 34 via the line 11. Then the decoding data sent from the IC card is compared with the original test message for recognition of the propriety of the IC card.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は、ICカードの正当性を認証するICカード認
証方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an IC card authentication method for authenticating the validity of an IC card.

[従来技術とその問題点] 近年はキャッシュレス時代と呼ばれており、クレジット
カード会社等により発行された1カードを使用すること
により、現金の取扱いをせずに商品の購入が可能となっ
ている。この際、商店はカード所有者が本人かどうか、
すなわち盗難によるカードではないか等の確認を行なっ
て商品の販売を行なうわけであるが、その確認方法とし
ては暗証番号による方法が一般的であり、具体的には下
記に示す方法によりその確認が行なわれている。
[Prior art and its problems] In recent years, it has been called the cashless era, and by using a single card issued by a credit card company, it has become possible to purchase products without handling cash. There is. At this time, the store will check whether the cardholder is the person in question.
In other words, products are sold after confirming whether the card is stolen or not, but the common method for this confirmation is to use a PIN number, and specifically, the method described below is used to confirm this. It is being done.

(a)  カードの磁気ストライプ上に暗証番号を記録
しておき、商店に設置された認証装置のキーボード等を
介して顧客が入力した暗証番号と磁気リーダにより上記
カードから読出された番号とを比較して一致照合を行な
う方法。
(a) A PIN number is recorded on the magnetic stripe of the card, and the PIN number entered by the customer via the keyboard of the authentication device installed at the store is compared with the number read from the card by the magnetic reader. A method of matching.

(b)  1客の提示した暗証番号を、オンライ・ン接
続されたPOSターミナル、あるいは電話機を介してク
レジット会社に登録された暗証番号とを比較して一致照
合を行なう方法。
(b) A method in which the PIN number presented by a customer is compared with the PIN number registered at the credit card company via an online POS terminal or telephone to verify a match.

しかしながら、上記(a)の方法にあっては、カードを
盗んだ者が特別な磁気リーダ等を使用することにより磁
気ストライプ上から容易に暗証番号を読出すことが可能
であり、カード所有者が本人か否かについての信頼性は
極めて乏しいものであった。そこで、近年、カード内に
、暗証番号等を記憶したICを組込み、暗証番号が外部
からは容易に読出せないようにした情報カード所謂IC
カードが開発されている。しかし、この種のICカード
にあっては、確かに暗証番号を読出すことは困難である
が、カードそのものが偽造された場合、本人照合は殆ん
ど不可能であり、正規に発行されたカードか否かについ
てのカードの認証性において問題があった。
However, in method (a) above, the person who stole the card can easily read the PIN from the magnetic stripe by using a special magnetic reader, etc. There was extremely little credibility as to whether the person was the real person or not. Therefore, in recent years, so-called information cards (ICs) have been developed in which an IC that stores a PIN number etc. is built into the card so that the PIN number cannot be read easily from the outside.
cards are being developed. However, while it is certainly difficult to read out the PIN number for this type of IC card, if the card itself is forged, it is almost impossible to verify the identity of the card, and it is difficult to read the PIN number from this type of IC card. There was a problem with the authentication of the card as to whether it was a card or not.

その点、前記した確認方法(b)はカードの認証性にお
いて橋めて信頼性の高い方法であるが、通信回線を使用
する方法であるため、暗証番号の送信の際に通信回線内
で傍受される虞れがあり、やはり、暗証番号のセキュリ
ティ(安全性)においては問題があった。
In this regard, the confirmation method (b) described above is a highly reliable method in terms of card authentication, but since it uses a communication line, it can be intercepted during the transmission of the PIN. There was a risk that the password would be stolen, and there was still a problem with the security of the PIN number.

[発明の目的] 本発明は上記の点に鑑みてなされたもので、正規のカー
ド取引が行なわれたことを確実にi!証し得るICカー
ドg証方式を提供することを目的とする。
[Object of the Invention] The present invention has been made in view of the above points, and it is possible to use i! The purpose is to provide an IC card g-certificate system that can be used as a certificate.

[発明の要点] 本発明は、ターミナル内でランダムに発生させたテスト
メツセージを特定のキーコードで暗号化してICカード
に転送し、ICカードでは上記暗号化データを自己のキ
ーコードで解読してターミナルに耘透し、その後、ター
ミナルにおいて上記ICカードからの解読データが元の
テストメッセ −−ジに対応するか否かを判断してIC
カードの正当性を認証するようにしたものである。
[Summary of the Invention] The present invention encrypts a test message randomly generated in a terminal with a specific key code and transfers it to an IC card, and the IC card decodes the encrypted data with its own key code. After that, the terminal judges whether the data decoded from the IC card corresponds to the original test message and then sends the IC card to the terminal.
This is to authenticate the authenticity of the card.

[発明の実施例] 以下、図面を参照して本発明の一実施例を説明する。ま
ず、第1図によりカードターミナル10の回路構成につ
いて説明する。第1図において11はパスラインで、こ
のパスライン11には、時計回路12、演算部13、シ
ステムプログラムROM14、制御回路15、キー人力
部16を制御するキーコントローラ17、表示部18を
制御する表示コントローラ19、乱数データ発生器20
が接続される。上記キー人力部16は、カードターミナ
ル10が設置される商店の会計係り等が操作するための
もので、数値キー、日付設定キー、合計キー、照合キー
、クリアキー、入力指定キー等が設けられている。そし
て、上記時計回路12は、年(西暦)、月、日の8桁の
日付データがセットされる日付レジスタ121を備え、
演算部13は演算用データを記憶するR A M 13
1を備えている。また、上記パスライン11には、R3
A暗号方式に基づいて所定の暗号化アルゴリズムを記憶
するR8AII号器21が接続されると共に、ICカー
ドインターフェイスコントローラ22より接点端子23
を介してICカードが接続される。このICカードにつ
いては詳細を後述する。上記R3A暗号器21は、Aレ
ジスタ24を介してパスライン11に接続されると共に
、Bレジスタ25を介してMPUK(Manufact
urer  Public  Key  Code)コ
ードを記憶しているMPUKメモリ26あるいはIPU
K (Issure  pubzc  Key  Co
de):I−ドを記憶しているI PUKメモリ27に
接続される。上記MPLIKI−ドは、ManufaC
t、urer(カードターミナル10の製造会社)が独
自に設定し、IPUK)−ドは、Manuractur
erがl5sure (例えばICカードを発行するク
レッジットカード会社)からの指示により設定する。上
記MPUKメモリ26及びIPtJKメモリ27は、パ
スライン11を介して送られてくる制御指令に従って一
方が指定されてその記憶コードがBレジスタ25に続出
される。R8A暗号器21は、Aレジスタ24にセット
されたデータをBレジスタ25に読出されたキーコード
に従って暗号化し、パスライン11及びICカードイン
ターフェイスコントO−ラ22に出力する。上記パスラ
イン11及びICカードインターフェイスコントローラ
22は、それぞれCレジスタ28、Dレジスタ29を介
して比較部30に接続される。この比較部30は、レジ
スタ28.29にセットされた暗号化データが一致して
いるか否かを比較し、その比較結果を制御回路15に出
力する。また、上記パスライン11には、E、F、Gの
レジスタ31.32.33を介して承認番号を作成する
5AN(Sales  Approval  Numb
er)演算部34が接続されると共に、データリングド
ライバ35が接続される。上記SAN演算部34は、S
ANアルゴリズムプログラム記憶部341及び演算回路
342を備えている。また、上記データリングドライバ
35は、リングCレジスタ351、リングCレジスタ3
52、リングCレジスタ353を備え、上記レジスタ3
51.352.353のセットデータに従ってモータ3
6a 、 36b 、 36cを駆動制御し、リング3
7a 、 37b 、 37cに所望の数値を設定する
。上記リング37a 、 37b 、 37cは、合計
金額、日付、承認番号を印字するためのリングである。
[Embodiment of the Invention] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First, the circuit configuration of the card terminal 10 will be explained with reference to FIG. In FIG. 1, reference numeral 11 indicates a pass line, and this pass line 11 includes a clock circuit 12, a calculation section 13, a system program ROM 14, a control circuit 15, a key controller 17 that controls a key human power section 16, and a display section 18. Display controller 19, random number data generator 20
is connected. The key manual section 16 is operated by a cashier or the like of a store where the card terminal 10 is installed, and is provided with numeric keys, date setting keys, total keys, collation keys, clear keys, input designation keys, etc. ing. The clock circuit 12 includes a date register 121 in which 8-digit date data for the year, month, and day is set.
The calculation unit 13 has a RAM 13 that stores calculation data.
1. In addition, the pass line 11 includes R3
An R8A II encoder 21 that stores a predetermined encryption algorithm based on the A encryption method is connected, and a contact terminal 23 is connected to the IC card interface controller 22.
An IC card is connected via the . Details of this IC card will be described later. The R3A encoder 21 is connected to the pass line 11 via an A register 24, and MPUK (manufacturer) via a B register 25.
MPUK memory 26 or IPU that stores the urer Public Key Code) code
K (Issure pubzc Key Co
de): Connected to the IPUK memory 27 which stores the ID. The above MPLIKI code is ManufaC
t,urer (manufacturer of card terminal 10) independently set it, IPUK) - Manufacturer
er is set based on instructions from l5sure (for example, a credit card company that issues IC cards). One of the MPUK memory 26 and IPtJK memory 27 is designated according to a control command sent via the pass line 11, and its stored code is sequentially output to the B register 25. The R8A encoder 21 encrypts the data set in the A register 24 according to the key code read out to the B register 25 and outputs it to the pass line 11 and the IC card interface controller 22. The pass line 11 and the IC card interface controller 22 are connected to a comparator 30 via a C register 28 and a D register 29, respectively. The comparison unit 30 compares whether the encrypted data set in the registers 28 and 29 match, and outputs the comparison result to the control circuit 15. In addition, on the pass line 11, there is a 5AN (Sales Approval Number) that creates an approval number via registers 31, 32, and 33 of E, F, and G.
er) The arithmetic unit 34 is connected, and the data ring driver 35 is also connected. The SAN calculation unit 34
It includes an AN algorithm program storage section 341 and an arithmetic circuit 342. Further, the data ring driver 35 includes a ring C register 351, a ring C register 3
52, a ring C register 353, and the register 3
Motor 3 according to the set data of 51.352.353
6a, 36b, and 36c, and the ring 3
Set desired values in 7a, 37b, and 37c. The rings 37a, 37b, and 37c are rings for printing the total amount, date, and approval number.

また、上記パスライン11には、コード41を介して入
力装置42が接続される。この入力袋@42は、ICカ
ードの所有者が暗証番号を入力するためのもので、キー
人力部421、このキー人力部421を制御するキーコ
ントローラ422、上記キー人力部421から入力され
る暗証番号を表示する表示部423、この表示部423
を制御する表示コントローラ424からなっている。
Further, an input device 42 is connected to the pass line 11 via a cord 41. This input bag @ 42 is for the owner of the IC card to input a PIN number, including a key human power section 421, a key controller 422 that controls this key human power section 421, and a password input from the key human power section 421. Display section 423 that displays the number, this display section 423
It consists of a display controller 424 that controls the.

次に第2図によりICカード50の回路1構成について
説明する。第2図において、51はコネクタ部で、イン
ターフェイス部52を介してパスライン49に接続され
る。そして、このパスライン49には、演算部53、演
算用RAM54、システムプログラムROM55、デー
タ再入力回数RTRを記憶するRTRメモリ56.0A
(Card  Authenttcator)コードを
記憶しているCAメモリ57が接続される。上記OAコ
ードは、個々のICカードを識別するため各カード毎に
異なる例えば64ビツトのコードで、このコードはカー
ド製造時に設定され、メツセージの暗号化及び解読に使
用される。また、上記パスライン49には、MPRK(
Manufacturer  Pr1vateKey 
 Code)を記憶するメモリ581. I PRK(
Issure  Pr1vate  KeyCode)
を記憶するI PRKメモリ59、暗証番号PINを記
憶するPINメモリ60、Cレジスタ61、bレジスタ
62、及び上記第1図のR8A暗号器21で暗号化され
た暗号データとR8A暗号方式に基づいて解読するR8
A解読器63が接続される。
Next, the configuration of the circuit 1 of the IC card 50 will be explained with reference to FIG. In FIG. 2, reference numeral 51 denotes a connector section, which is connected to the pass line 49 via an interface section 52. This pass line 49 includes a calculation unit 53, a calculation RAM 54, a system program ROM 55, and an RTR memory 56.0A that stores the number of data re-inputs RTR.
A CA memory 57 storing a (Card Authentcator) code is connected. The OA code is, for example, a 64-bit code that is different for each IC card in order to identify each IC card. This code is set at the time of card manufacture and is used to encrypt and decode messages. Additionally, the pass line 49 has MPRK (
Manufacturer Pr1vateKey
A memory 581 for storing the code). IPRK(
Issue Pr1vate KeyCode)
Based on the I PRK memory 59 that stores the PIN, the PIN memory 60 that stores the PIN, the C register 61, the B register 62, and the encrypted data encrypted by the R8A encoder 21 shown in FIG. Decipher R8
A decoder 63 is connected.

上記MPRKメモリ58に書込まれるMPRKコードは
、Manufacturer側kj5いr設定される暗
号解読用コードであり、上記第1図のMPUKメモリ2
6に設定されるMPUKコードと1対1に対応する。ま
た、IPRKメモリ59に書込まれるI PUK:l−
ドは、l5SLJreにおイテ設定される暗号解読用の
コードあり、上記第1図のtpuKメモリ21に設定さ
れるIPUKコードと1対1に対応する。そして、PI
Nメモリ60に記憶する暗証番号PINは、カード使用
者によって任意の番号が設定される。しかして、Cレジ
スタ61にはカードターミナルから送られてくる暗証番
号が書込まれるもので、その保持データはPINメモリ
60の設定内容と共に比較部64へ送られる。
The MPRK code written in the MPRK memory 58 is a decryption code set by the manufacturer side kj5, and is written in the MPUK memory 2 in FIG.
There is a one-to-one correspondence with the MPUK code set to 6. Also, I PUK:l- written in the IPRK memory 59
There is a decryption code set in l5SLJre, which corresponds one-to-one with the IPUK code set in the tpuK memory 21 in FIG. And P.I.
The personal identification number PIN stored in the N memory 60 is set to an arbitrary number by the card user. Thus, the PIN number sent from the card terminal is written into the C register 61, and the held data is sent to the comparison section 64 together with the setting contents of the PIN memory 60.

この比較部64は、PINメモリ60及びCレジスタ6
1からの肉入力データを一致比較し、その比較結果を制
御回路65へ出力する。この制御回路65は、比較部6
4からの信号に応じてMPRKメモリ58及びIPRK
メモリ59の選択制御を行なうと共に、R3A解読器6
3に動作指令を与える。上記MPRKメモリ58あるい
はIPRKメモリ59から読出されるコードは、Cレジ
スタ66を介してR8AMI8A63へ送られる。又、
このR3A解読器63には、カードターミナルからのデ
ータがbレジスタ62を介して入力される。上記R8A
11i器63は、bレジスタ62に保持されたデータを
MPRKメモ′す58あるいはIPRKメモリ59から
Cレジスタ66に読出されたコードに従って解読する。
This comparison section 64 includes a PIN memory 60 and a C register 6.
The meat input data from No. 1 is compared for consistency, and the comparison result is output to the control circuit 65. This control circuit 65 includes a comparator 6
MPRK memory 58 and IPRK
In addition to controlling the selection of the memory 59, the R3A decoder 6
Give the operation command to 3. The code read from the MPRK memory 58 or IPRK memory 59 is sent to the R8AMI8A63 via the C register 66. or,
Data from the card terminal is input to this R3A decoder 63 via the b register 62. Above R8A
The 11i unit 63 decodes the data held in the b register 62 according to the code read into the C register 66 from the MPRK memory 58 or IPRK memory 59.

次に上記実施例の動作を説明する。まず、商店における
商品の売上処理の概略動作について説明する。上記第1
図に示したカードターミナル10は、商店等に設置され
る。顧客が商品を購入する場合、店員はカードターミナ
ル10に顧客のICカード50及びスリップ紙をセット
した後、キー人力部16における照合キーを操作する。
Next, the operation of the above embodiment will be explained. First, the general operation of product sales processing in a store will be explained. 1st above
The card terminal 10 shown in the figure is installed in a store or the like. When a customer purchases a product, the clerk sets the customer's IC card 50 and slip paper on the card terminal 10, and then operates the collation key in the key operator section 16.

上記ICカード50をカードターミナル10にセットす
ると、ICカード50のコネクタ部51がカードターミ
ナル10の接続端子23に接続される。しかして、上記
照合キーの操作によりカード所有者のチェック動作が開
始される。この場合、顧客は入力装置42より自分の暗
証番号PINを入力する。カードターミナル10は、入
力装置42から入力された暗証番号PINをICカード
インターフェイスコントローラ22を介してICカード
50へ送り、上記暗証番号が正しいか否かをチェックさ
せる。ICカード50はカードターミナル10から暗証
番号が送られてくると、予め記憶設定されている暗証番
号との比較により上記入力された暗証番号が正しいか否
かをチェックし、正しければOKメツセージ、正しくな
ければBADメツセージをカードターミナル10へ出力
する。
When the IC card 50 is set in the card terminal 10, the connector portion 51 of the IC card 50 is connected to the connection terminal 23 of the card terminal 10. Then, by operating the collation key, the cardholder's checking operation is started. In this case, the customer inputs his or her personal identification number PIN from the input device 42. The card terminal 10 sends the PIN number input from the input device 42 to the IC card 50 via the IC card interface controller 22 to check whether the PIN number is correct. When the IC card 50 receives the PIN number from the card terminal 10, it checks whether the input PIN number is correct by comparing it with the PIN number stored in advance. If not, a BAD message is output to the card terminal 10.

カードターミナル10は、t’cカード50からBAD
メツセージが送られてきた場合は取引を中止するが、O
Kメツセージが送られてくれば、ICカード50が有効
であるか無効であるかのチェックを行なう。そして、I
Cカード50が無効と判断された場合は取引を中止する
が、有効と判断されれば表示部18にOKメツセージを
表示する。表示部18にOKメツセージが表示されると
、店員はキー人力部16から合計金額を入力する。キー
人力部16から合計金額が入力されると、カードターミ
ナル10はその合計金額を演算部13のRA M 13
1に記憶し、表示コントローラ19を介して表示部18
に表示する。
The card terminal 10 receives the BAD from the t'c card 50.
If a message is sent, the transaction will be canceled, but O
When the K message is sent, it is checked whether the IC card 50 is valid or invalid. And I
If the C card 50 is determined to be invalid, the transaction is canceled, but if it is determined to be valid, an OK message is displayed on the display section 18. When the OK message is displayed on the display section 18, the clerk inputs the total amount from the key personnel section 16. When the total amount is input from the key human power unit 16, the card terminal 10 stores the total amount in the RAM 13 of the calculation unit 13.
1 and displayed on the display unit 18 via the display controller 19.
to be displayed.

また、カードターミナル10は、RAM131に記憶し
た合計金額をデータリングドライバ35へ送り、リング
Cレジスタ351に書込むと共に、時計回路12の日付
レジスタ121に保持されている日付データをデータリ
ングドライバ35のリングCレジスタ352に書込む。
Further, the card terminal 10 sends the total amount stored in the RAM 131 to the data ring driver 35 and writes it in the ring C register 351, and also sends the date data held in the date register 121 of the clock circuit 12 to the data ring driver 35. Write to ring C register 352.

また、SAN演算部34により所定の暗号化アルゴリズ
ムに従って承認番号を算出し、データリングドライバ3
5のリングCレジスタ353に書込む。データリングド
ライバ35は、各レジスタ351.352.353に書
込まれたデータに従りてモータ36a 、 36b 、
 36cを駆動1iIJIllシ、リング37a、37
b、37cに合計金額、日付、承認番号をセットする。
Further, the SAN calculation unit 34 calculates an approval number according to a predetermined encryption algorithm, and the data ring driver 3
Write to the ring C register 353 of No. 5. The data ring driver 35 operates the motors 36a, 36b, and 36b according to the data written in each register 351.352.353.
Drive 36c, rings 37a, 37
Set the total amount, date, and approval number in b and 37c.

しかして、上記したように合計金額を表示部18に表示
することによって、合計金額が正しいか否かを顧客に確
認してもらう。金額確認後、店員はスリップ紙上にIC
カード50のエンボスによるデータ例えばクレジット会
社がカード発行時に設定する各顧客別の口座番号PAN
 (Pr imary  Account  Numb
er)等のデータをインプリントすると共に、リング3
7a、37b、37cに設定されている合計金額、日付
、承認番号を印字する。そして、このスリップ紙にイン
プリント及び印字したセールススリップ内容を顧客に確
認してもらい、間違いがなければスリップ紙の副写、I
Cカード50、商品を顧客に引渡して商品の売上処理を
終了する。
By displaying the total amount on the display section 18 as described above, the customer is asked to confirm whether or not the total amount is correct. After confirming the amount, the clerk will put the IC card on the slip.
Data embossed on the card 50 For example, the account number PAN for each customer set by the credit company when issuing the card
(Primary Account Number
In addition to imprinting data such as er), ring 3
The total amount, date, and approval number set in 7a, 37b, and 37c are printed. Then, ask the customer to check the contents of the sales slip imprinted and printed on this slip paper, and if there are no mistakes, a copy of the slip paper, an I
The C card 50 and the product are handed over to the customer to complete the product sales process.

次に上記カードターミナル10の処理動作及びICカー
ド50の内部処理動作の詳細について第3図及び第4図
のフローチャートを参照して説明する。
Next, details of the processing operation of the card terminal 10 and the internal processing operation of the IC card 50 will be explained with reference to the flowcharts of FIGS. 3 and 4.

カードターミナル10は、ICカード50がセットされ
た後、キー人力部16における照合キーが操作されると
、第3図のステップA1に示すようにキー人力部42か
ら暗証番号PINが入力されるまでそのまま侍慨する。
After the IC card 50 is set, the card terminal 10 operates until the verification key in the key input unit 16 is operated and the password PIN is input from the key input unit 42 as shown in step A1 in FIG. I will continue to attend the ceremony.

そして、カードターミナル10は、キー人力部42から
暗証番号PINが入力されると、ステップA2に示すよ
うにICカードインターフェイスコントローラ22を介
してICカード50へ暗証番号PINを送出し、その後
、ステラ1ブA3に示すようにICカード50からOK
メツセージあるいはBADメツセージが送られてくるま
で待機状態となる。
When the personal identification number PIN is input from the key input unit 42, the card terminal 10 sends the personal identification number PIN to the IC card 50 via the IC card interface controller 22 as shown in step A2, and then the Stellar 1 OK from IC card 50 as shown in block A3
It is in a standby state until a message or a BAD message is sent.

一方、ICカード50は、カードターミナル10から暗
証番号PINが送られてくると、その暗証番号PINを
第4図のステップB1に示すように゛aレジスタ61に
セットする。次いでステップB2に示すようにRTRメ
モリ56に記憶しているデータ再入力回数RTRが「5
」に達したか否かを判断する。データ再入力回数RTR
が「5」に達していれば、ステップB3に示すようにB
ADメツセージをカードターミナル10へ送出して処理
を終了する。最初の時点ではRTRメモリ56の内容は
「0」であり、上記ステップB2の判断結果はNOとな
ってステップB4へ進む。このステップB4では、カー
ドターミナル10からaレジスタ61にセットされた暗
証番号PINとPINメモリ60に予め設定されている
暗証番号PINとを比較し、ステップB5において一致
しているか否かを判断する。この判断の結果、一致して
いなければステップB6進み、RTRメモリ56の内容
を「+1」した後、ステップB7に示すようにNoメツ
セージをカードターミナル10へ送出する。また、上記
ステップB5において暗証番号PINが一致していると
判断された場合は、ステップB8に進んでRTRメモリ
56の内容をクリアし、その後、ステップB9に示すよ
うにOKメツセージ及びCAメモリ51に記憶設定され
ているOAコードをカードターミナル10へ送出する。
On the other hand, when the IC card 50 receives the PIN number from the card terminal 10, it sets the PIN number in the a register 61 as shown in step B1 of FIG. Next, as shown in step B2, the number of data re-inputs RTR stored in the RTR memory 56 becomes "5".
” is reached. Data re-input count RTR
has reached "5", as shown in step B3, B
The AD message is sent to the card terminal 10 and the process ends. At the beginning, the content of the RTR memory 56 is "0", and the result of the determination in step B2 is NO, and the process proceeds to step B4. In this step B4, the password PIN set in the a register 61 from the card terminal 10 is compared with the password PIN preset in the PIN memory 60, and it is determined in step B5 whether or not they match. As a result of this judgment, if they do not match, the process proceeds to step B6, where the content of the RTR memory 56 is incremented by "+1", and then a No message is sent to the card terminal 10 as shown in step B7. If it is determined in step B5 that the PIN numbers match, the process proceeds to step B8 to clear the contents of the RTR memory 56, and then, as shown in step B9, the OK message and the CA memory 51 are saved. The stored OA code is sent to the card terminal 10.

上記のようにしてICカード50はカード所有者のチェ
ックを行なってそのメツセージをカードターミナル10
へ送出すると、ステップ310に進み、次にカードター
ミナル10から暗号データが送られてくるまで待機する
As described above, the IC card 50 checks the card owner and sends the message to the card terminal 10.
Once sent, the process advances to step 310 and waits until encrypted data is sent from the card terminal 10.

しかして、カードターミナル10は上記したように第3
図のステップ八3において、ICカード50からメツセ
ージが送られてくるまで待機しているが、ICカード5
0からメツセージが送られてくると、OKメツセージか
否かを判断する。OKメツセージでなければステップA
4に進んでBADメツセージか否かを判断する。BAD
メッセτジでなければNoメツセージであるので、ステ
ップA5に示すように表示部18に暗証番号PINの再
入力を指示するメツセージを表示する。この再入力の指
示により暗証番号PINをrsJ回入力しても一致しな
い場合には、ICカード50からBADメツセージが出
力されるので、ステップA4がらステップ八〇に進んで
取引の停止処理を行なう。
However, as mentioned above, the card terminal 10
In step 83 of the figure, the IC card 50 waits until a message is sent.
When a message is sent from 0, it is determined whether it is an OK message or not. If it is not an OK message, step A.
Proceed to step 4 to determine whether it is a BAD message. BAD
If the message is not τ, it is a No message, so a message instructing to re-enter the personal identification number PIN is displayed on the display unit 18 as shown in step A5. If the password PIN does not match even after inputting the password rsJ times according to this re-input instruction, a BAD message is output from the IC card 50, and the process proceeds from step A4 to step 80 to perform a transaction stop process.

しかして、上記ステップA3においてOKメツセージ有
りと判断された場合は、ステップA1に進み、ICカー
ド50からのCAコードをEレジスタ31にセットする
。次いでステップ八8に示すように乱数データ発生器2
0から乱数を発生させ、その乱数をステップA9におい
てAレジスタ24及びCレジスタ28にセットする。そ
の後、ステップA101、: j5いて、制御回路15
によりMPtJKメモリ26を選択指定してMPUKコ
ードを8レジスタ25に読出す。そして、ステップA1
1に示すようにAレジスタ24にセットされた乱数を8
レジスタ25にセットされたMPtJKコードにより暗
号化し、その暗号データをステップA12に示すように
Aレジスタ24にセットする。次にステップA13にお
いて■PtJKメモリ27からIPUKコードを読出し
てBレジスタ25にセットする。そして、ステップA1
4に示すようにR8A暗号器21により、Aレジスタ2
4にセットされたデータをBレジスタ25に読出したI
PUKコードにより再度暗号化し、その暗号データをス
テップA15においてICカード50へ送出する。上記
のように暗号データをICカード50に送出すると、カ
ードターミナル10はICカード50から解読データが
送られてくるまでステップA16において待機する。
If it is determined in step A3 that there is an OK message, the process proceeds to step A1, where the CA code from the IC card 50 is set in the E register 31. Then, as shown in step 88, the random number data generator 2
A random number is generated from 0, and the random number is set in the A register 24 and the C register 28 in step A9. After that, step A101: j5, the control circuit 15
The MPtJK memory 26 is selected and the MPUK code is read into the 8 register 25. And step A1
As shown in 1, the random number set in the A register 24 is set to 8.
It is encrypted using the MPtJK code set in the register 25, and the encrypted data is set in the A register 24 as shown in step A12. Next, in step A13, the IPUK code is read from the PtJK memory 27 and set in the B register 25. And step A1
As shown in FIG. 4, the A register 2 is
I read the data set to 4 to the B register 25.
It is encrypted again using the PUK code, and the encrypted data is sent to the IC card 50 in step A15. After sending the encrypted data to the IC card 50 as described above, the card terminal 10 waits in step A16 until decrypted data is sent from the IC card 50.

カードターミナル10から暗号データがICカード50
へ送られると、ICカード50は第4図のステップB1
0において暗号データを検知し、その暗号データをステ
ップB11に示すようにbレジスタ62にセットする。
The encrypted data is sent from the card terminal 10 to the IC card 50.
When the IC card 50 is sent to step B1 in FIG.
0, the encrypted data is detected and the encrypted data is set in the b register 62 as shown in step B11.

次いでステップ312に示すようにIPRKメモリ59
からI PRKコードをCレジスタG6に読出し、R3
A解読器63において、ステップ313に示すようにb
レジスタ62に保持している暗号データをIPRKコー
ドにより解読する。次いでステップB14に示すように
上記解読データをbレジスタ62に書込み、その後、ス
テップB15においてMPRKメモリ58に記憶してい
るMPRKコードをCレジスタ66に読出す。そして、
ステップ81GIC示すようICR8AWIIII63
GCJ5いr、bレジスタ62に保持しているデータを
MPRKコードにより解読し、その解読データをステッ
プB1γにおいてカードターミナル10へ送出する。以
上でICカード50側の処理を終了する。
Then, as shown in step 312, the IPRK memory 59
Read the IPRK code from R3 to C register G6.
In the A decoder 63, as shown in step 313, b
The encrypted data held in the register 62 is decoded using the IPRK code. Next, as shown in step B14, the decoded data is written to the b register 62, and then, in step B15, the MPRK code stored in the MPRK memory 58 is read to the C register 66. and,
Step 81GIC as shown ICR8AWIII63
The data held in the GCJ5 r, b register 62 is decoded using the MPRK code, and the decoded data is sent to the card terminal 10 in step B1γ. This completes the processing on the IC card 50 side.

上記のようにしてICカード50から解読データがカー
ドターミナル10へ送られると、カードターミナル10
は第3図のステップA16においてICカード50から
の解読データを検知し、ステップA11に進んで上記解
読データをCレジスタ29にセットする。その後、ステ
ップA18に進み、上記ステップA9でCレジスタ28
にセットした乱数とCレジスタ29にセットされた解読
データとを比較し、ステップA19において一致してい
るか否かを判断する。不一致の場合、これはカードター
ミナル10により暗号化されたデータが、ICカード5
0により正確な解法がなされなかった場合である。すな
わち、このことはICカード50が正しいMPRKある
いはI PRKを記憶していないか、あるいは正規なR
8A解読器63を有さないことを示しており、正規なM
anUfaCtLIrer及びl5suerを介して発
行された正規なカードではないと判断されて、ステップ
八〇に示すように取引の停止処理を行なう。上記MPU
Kメモリ26、IPUKメモリ21に記憶しているキー
コードは、Manufacturerあるいはl5su
reにおいて、ICカード50のMPRKメモリ58、
IPRKメモリ59に書込まれたキーコードとそれぞれ
1対1に対応しており、R8Aアルゴリズムに基づく暗
号化のためのキーコードである。これに対して上記MP
RKメモリ58、IPRKメモリ59に記憶しているキ
ーコードは、R8Aアルゴリズムに基づく解読化のため
のキーコードである。すなわち、rPUKJ  (Pu
blic  Key  Code)とrPRKJ (P
rivate  Key  Code)とは、R8Aア
ルゴリズムに基づくi方向性関数により1対1の対応関
係を有するように選ばれたキーコードである。このR8
Aアルゴリズムに基づく暗号化方式によると、rPtJ
KJによって暗号化されたデータは、同一のrPtJK
Jではその解読が極めて困難であり、上記関数による対
応関係があるrPRKJにおいてのみ、その解読が可能
となるのである。なお、このR8Aアルゴリズムに基づ
く暗号化方式は、Cael  H,Meyer及び5t
efhen  M、Matyasによる著作で、198
2年、JOhn  Wiley&  3ons、Inc
社によって発行された「CRYP丁0GRAOHYJ 
に詳Ll’。シカシテ、上記ステップA19の判断結果
がYESの場合は、正規のカードあるので、スーテップ
A20に進んで表示部18にOKメツセージを表示する
。このOKメツセージの表示により店員は、キー人力部
16から売上の合計金額を入力して合計キーを操作する
When the decoded data is sent from the IC card 50 to the card terminal 10 as described above, the card terminal 10
detects the decrypted data from the IC card 50 at step A16 in FIG. After that, the process proceeds to step A18, and in step A9, the C register 28 is
The random number set in C register 29 is compared with the decoded data set in C register 29, and it is determined in step A19 whether or not they match. If there is a mismatch, this means that the data encrypted by the card terminal 10 is transferred to the IC card 5.
This is a case where an accurate solution is not achieved due to 0. In other words, this means that the IC card 50 does not store the correct MPRK or IPRK, or that the IC card 50 does not store the correct MPRK or IPRK, or
It shows that it does not have the 8A decoder 63, and it is a regular M
It is determined that the card is not a legitimate card issued through anUfaCtLIrer and l5suer, and the transaction is stopped as shown in step 80. Above MPU
The key code stored in K memory 26 and IPUK memory 21 is Manufacturer or l5su.
In re, the MPRK memory 58 of the IC card 50,
Each of these keys has a one-to-one correspondence with the key code written in the IPRK memory 59, and is a key code for encryption based on the R8A algorithm. On the other hand, the above MP
The key codes stored in the RK memory 58 and IPRK memory 59 are key codes for decoding based on the R8A algorithm. That is, rPUKJ (Pu
blic Key Code) and rPRKJ (P
rivate Key Code) is a key code selected to have a one-to-one correspondence using an i-directional function based on the R8A algorithm. This R8
According to the encryption method based on the A algorithm, rPtJ
The data encrypted by KJ is the same rPtJK
It is extremely difficult to decipher it in J, and it is possible only in rPRKJ, which has the correspondence relationship based on the above function. The encryption method based on this R8A algorithm is based on Cael H, Meyer and 5t
Authored by efhen M, Matyas, 198
2 years, John Wiley & 3ons, Inc.
“CRYP 0GRAOHYJ” published by
Details Ll'. If the result of the determination in step A19 is YES, the card is valid, so the process advances to step A20 and an OK message is displayed on the display section 18. Upon display of this OK message, the store clerk inputs the total amount of sales from the key human power section 16 and operates the total key.

この合計キーの操作は、ステップA21において検知さ
れ、ステップA22に進む。このステップA22では合
計金額をデータリングドライバ35内のリングCレジス
タ351にセットし、次いでステップA23において時
計回路12の日付レジスタ121で計数している日付デ
ータをリングCレジスタ352にセットする。続いてス
テップA24において合計金額をFレジスタ32にセッ
トし、ステップA25において日付レジスタ121に保
持している日付データをGレジスタ33にセットする。
This total key operation is detected in step A21, and the process proceeds to step A22. In this step A22, the total amount is set in the ring C register 351 in the data ring driver 35, and then in step A23, the date data counted by the date register 121 of the clock circuit 12 is set in the ring C register 352. Subsequently, the total amount is set in the F register 32 in step A24, and the date data held in the date register 121 is set in the G register 33 in step A25.

その後、ステップA26に進み、SAN演算部34にお
いて、上記Eレジスタ31、Fレジスタ32、Gレジス
タ33の保持データに基づき所定の暗号化アルゴリズム
に従って承認番号SANを算出する。そして、この承認
番号SANをステップA27に示すようにデータリング
ドライバ35に送出してリングCレジスタ353にセッ
トする。その後、ステップA28に進み、データリング
ドライバ35におけるの各レジスタ351.352.3
53のセットデータに基づいてモータ36a136b、
36cを駆動し、リング37a 、 37b 、 37
cに印字データをセットする。以上でリング37a、3
7b、37Cに対する印字データのセット処理を終了し
、その後、スリップ紙に所定のデータ貴印字することが
できる。上記のようにしてICカード50の正当性が確
認され、その後、商品の売上処理が行なわれてスリップ
紙が発行される。
Thereafter, the process proceeds to step A26, where the SAN calculation unit 34 calculates the approval number SAN based on the data held in the E register 31, F register 32, and G register 33 according to a predetermined encryption algorithm. Then, this approval number SAN is sent to the data ring driver 35 and set in the ring C register 353 as shown in step A27. After that, the process advances to step A28, and each register 351, 352, 3 in the data ring driver 35
Based on the set data of 53, the motor 36a136b,
36c, rings 37a, 37b, 37
Set the print data to c. With the above ring 37a, 3
After completing the process of setting print data for 7b and 37C, predetermined data can be printed on the slip paper. As described above, the validity of the IC card 50 is confirmed, and thereafter, the sale of the product is processed and a slip is issued.

[発明の効果] 以上詳記したように本発明によれば、カードターミナル
内でランダムに発生させたテストメツセージを特定のキ
ーコードで暗号化してICカードに転送し、ICカード
は上記暗号化データを自己のキーコードで解読してカー
ドターミナルに転送し、その後、ターミナルにおいて上
記ICカードからの解読データが元のテストメツセージ
に対応するか否かを判断してICカードの正当性を認証
するようにしたので、ランダムなテストメツセージを使
用してICカードのチェックを行なうことができ、オフ
ラインであってもカード取引時点において、正規のカー
ド取引が行なわれたことを確実に認証し得るICカード
認証方式を提供することができる。
[Effects of the Invention] As detailed above, according to the present invention, a test message randomly generated in a card terminal is encrypted with a specific key code and transferred to an IC card, and the IC card receives the encrypted data. is decoded using its own key code and transferred to the card terminal, and then the terminal determines whether the decoded data from the IC card corresponds to the original test message to authenticate the validity of the IC card. As a result, it is possible to check the IC card using random test messages, and IC card authentication can reliably authenticate that a legitimate card transaction has been made at the time of card transaction even when offline. method can be provided.

【図面の簡単な説明】[Brief explanation of drawings]

図面は本発明の一実施例を示すもので、第1図。 はカードターミナルの回路構成を示すブロック図、第2
図はICカードの回路構成を示すブロック図、第3図は
照合キーが操作された際のカードターミナルの処理動作
を示すフローチャート、第4図はECカードの内部処理
動作を示すフローチャートである。 10・・・カードターミナル、11・・・パスライン、
12・・・時計回路、13・・・演算部、14・・・シ
ステムプログラムROM、15・・・制御回路、16・
・・キー人力部、17・・・キーコントローラ、18・
・・表示部、19・・・表示コントローラ、20・・・
乱数データ発生器、21・・・R8A暗号器、22・・
・ICカードインターフェイスコントローラ、24.2
5.28.29.31.32.33・・・レジスタ、3
4・・・SAN演算部、35・・・データリングドライ
バ、368〜36G・・・モータ、49・・・パスライ
ン、50・・・ICカード、51・・・コネクタ部、5
2・・・インターフェイス部、56・・・RTRメモリ
、57・・・CAメモリ、58・・・MPRKメモリ、
59・・・IPRKメモリ、60・・・PINメモリ、
61.62.66・・・レジスタ、63・・・R3A解
読器。
The drawings show one embodiment of the present invention, and FIG. is a block diagram showing the circuit configuration of the card terminal;
FIG. 3 is a block diagram showing the circuit configuration of the IC card, FIG. 3 is a flowchart showing the processing operation of the card terminal when the collation key is operated, and FIG. 4 is a flowchart showing the internal processing operation of the EC card. 10...Card terminal, 11...Pass line,
12... Clock circuit, 13... Arithmetic unit, 14... System program ROM, 15... Control circuit, 16...
...Key human power department, 17...Key controller, 18.
...Display section, 19...Display controller, 20...
Random number data generator, 21...R8A encoder, 22...
・IC card interface controller, 24.2
5.28.29.31.32.33...Register, 3
4... SAN calculation section, 35... Data ring driver, 368-36G... Motor, 49... Pass line, 50... IC card, 51... Connector section, 5
2... Interface section, 56... RTR memory, 57... CA memory, 58... MPRK memory,
59...IPRK memory, 60...PIN memory,
61.62.66...Register, 63...R3A decoder.

Claims (1)

【特許請求の範囲】[Claims] (1)カードターミナル内でランダムに発生させたテス
トメッセージを特定のキーコードで暗号化する手段と、
上記暗号化データをICカードに転送する手段と、上記
カードターミナルからICカードに送られてきた暗号化
データを自己のキーコードで解読し、その解読データを
上記カードターミナルに転送する手段と、上記ICカー
ドから転送された解読データと元のテストメッセージと
を比較してICカードの正当性を認証する手段とを具備
したことを特徴とするICカード認証方式。
(1) A means of encrypting test messages randomly generated within the card terminal with a specific key code,
means for transmitting the encrypted data to the IC card; means for decoding the encrypted data sent from the card terminal to the IC card using its own key code; and transmitting the decrypted data to the card terminal; An IC card authentication method comprising means for comparing decrypted data transferred from the IC card with an original test message to authenticate the validity of the IC card.
JP59244031A 1984-11-19 1984-11-19 Recognizing system for ic card Pending JPS61121169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59244031A JPS61121169A (en) 1984-11-19 1984-11-19 Recognizing system for ic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59244031A JPS61121169A (en) 1984-11-19 1984-11-19 Recognizing system for ic card

Publications (1)

Publication Number Publication Date
JPS61121169A true JPS61121169A (en) 1986-06-09

Family

ID=17112675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59244031A Pending JPS61121169A (en) 1984-11-19 1984-11-19 Recognizing system for ic card

Country Status (1)

Country Link
JP (1) JPS61121169A (en)

Similar Documents

Publication Publication Date Title
JPH083821B2 (en) IC card system
JPS6198476A (en) Card terminal and its certifying system
EP0186038B1 (en) Identification system
US4746788A (en) Identification system for authenticating both IC card and terminal
US6760841B1 (en) Methods and apparatus for securely conducting and authenticating transactions over unsecured communication channels
US20060005022A1 (en) Authentication system
JPH0670818B2 (en) Verification card and its authentication method
WO2004066177A1 (en) Card settlement method using portable electronic device having fingerprint sensor
JPS61502014A (en) Devices and methods for communicating with data systems
JPS61143893A (en) Ic card
JPS61202280A (en) Starting system for ic card terminal equipment
JPS62251963A (en) Certificating system for ic card
JPS6244869A (en) Ic card collating system
JPH09265496A (en) Virtual store system and method for certificating virtual store
JPH11219412A (en) Ic card issuing system
JP3886964B2 (en) Authentication terminal device, authentication server, and authentication system
JPS61121169A (en) Recognizing system for ic card
JP2793710B2 (en) Transaction authentication method
JP4834263B2 (en) Card authentication system, information recording card, and card authentication method
JPS61121170A (en) Recognizing system for ic card
JPH10149103A (en) Method and system for authentication
JP2003323599A (en) Smart card and smart card system
JPS63248246A (en) Password collation system
JP2629184B2 (en) IC card authentication system
JPS6217869A (en) Ic card system