JP6913354B2 - Electronic circuit - Google Patents

Electronic circuit Download PDF

Info

Publication number
JP6913354B2
JP6913354B2 JP2017112003A JP2017112003A JP6913354B2 JP 6913354 B2 JP6913354 B2 JP 6913354B2 JP 2017112003 A JP2017112003 A JP 2017112003A JP 2017112003 A JP2017112003 A JP 2017112003A JP 6913354 B2 JP6913354 B2 JP 6913354B2
Authority
JP
Japan
Prior art keywords
electronic circuit
calculation
authentication
circuit
controller
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.)
Active
Application number
JP2017112003A
Other languages
Japanese (ja)
Other versions
JP2018206150A (en
Inventor
憲治 北村
憲治 北村
Original Assignee
吉川工業アールエフセミコン株式会社
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 吉川工業アールエフセミコン株式会社 filed Critical 吉川工業アールエフセミコン株式会社
Priority to JP2017112003A priority Critical patent/JP6913354B2/en
Publication of JP2018206150A publication Critical patent/JP2018206150A/en
Application granted granted Critical
Publication of JP6913354B2 publication Critical patent/JP6913354B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Description

本発明は、電子回路に関する。 The present invention relates to electronic circuits.

リーダ/ライタ装置により行われた認証に応答する認証機能を有するデータキャリアが知られている(特許文献1参照)。記録媒体は、リーダ/ライタ装置に認証してもらうために使用するタグ認証用キー、及びリーダ/ライタ装置を認証するためのリーダ/ライタ装置用認証キーのリストを別々に格納している。 A data carrier having an authentication function that responds to an authentication performed by a reader / writer device is known (see Patent Document 1). The recording medium separately stores a tag authentication key used for the reader / writer device to authenticate and a list of the reader / writer device authentication key for authenticating the reader / writer device.

また、通信プロトコル格納手段と、RFアナログ受信部と、接触通信用端子部と、コマンド制御手段と、接続選択手段と、コマンド制御手段と、認証コマンド解析手段と、認証コマンド選択手段とを有するデータキャリアが知られている(特許文献2参照)。通信プロトコル格納手段は、外部の通信装置との間で通信を行うための通信プロトコルを格納する。RFアナログ受信部は、外部の通信装置からRF信号で送信される質問信号を受信する。接触通信用端子部は、外部の通信装置と接触通信を行うための端子部である。コマンド制御手段は、RFアナログ受信部を介して行われるRF通信プロトコル、または接触通信用端子部を介して行われる接触式シリアル通信プロトコルで用いられるコマンドを制御する。接続選択手段は、RFアナログ受信部または接触通信用端子部の何れか一方とコマンド制御手段とを選択的に接続する。コマンド制御手段は、外部の通信装置との近接通信を行うための近接通信用コマンド、及び外部の通信装置と近傍通信を行うための近傍通信用コマンドを制御する。認証コマンド解析手段は、RFアナログ受信部、または接触通信用端子部により受信した質問信号から、外部の通信装置との間で行う認証レベルを解析する。認証コマンド選択手段は、認証コマンド解析手段の解析結果に基づいて、外部の通信装置との間で行う認証処理で使用する認証コマンドを選択する。コマンド制御手段は、RFアナログ受信部または接触通信用端子部の何れが選択されている場合においても、通信プロトコル格納手段に格納されている通信プロトコルを用いて通信を行う。 Further, data having a communication protocol storage means, an RF analog receiving unit, a contact communication terminal unit, a command control means, a connection selection means, a command control means, an authentication command analysis means, and an authentication command selection means. The carrier is known (see Patent Document 2). The communication protocol storage means stores a communication protocol for communicating with an external communication device. The RF analog receiver receives a question signal transmitted as an RF signal from an external communication device. The contact communication terminal unit is a terminal unit for performing contact communication with an external communication device. The command control means controls the command used in the RF communication protocol performed via the RF analog receiving unit or the contact type serial communication protocol performed via the contact communication terminal unit. The connection selection means selectively connects either one of the RF analog receiving unit or the contact communication terminal unit to the command control means. The command control means controls a proximity communication command for performing proximity communication with an external communication device and a proximity communication command for performing proximity communication with an external communication device. The authentication command analysis means analyzes the authentication level performed with an external communication device from the question signal received by the RF analog receiving unit or the contact communication terminal unit. The authentication command selection means selects an authentication command to be used in the authentication process performed with an external communication device based on the analysis result of the authentication command analysis means. The command control means communicates using the communication protocol stored in the communication protocol storage means regardless of whether the RF analog receiving unit or the contact communication terminal unit is selected.

また、リーダ/ライタ装置とともにデータキャリアシステムを構成するデータキャリアが知られている(特許文献3参照)。コマンド保持手段は、リーダ/ライタ装置との間で認証を行うための認証用コマンドを格納する領域が少なくとも3つの領域に区画されていて、3つの領域のうち、第1の領域には第1の認証用コマンドが格納され、第2の領域には第2の認証用コマンドが格納され、第3の領域には第3の認証用コマンドが格納されている。信号受信手段は、リーダ/ライタ装置から送信される質問信号を受信する。認証コマンド解析手段は、信号受信手段により受信した質問信号から、リーダ/ライタ装置との間で行う認証レベルを解析する。認証コマンド選択手段は、コマンド解析手段の解析結果に基づいて、リーダ/ライタ装置との間で行う認証処理で使用する認証コマンドを選択する。コマンド読み出し手段は、認証コマンド選択手段によって選択された認証コマンドをコマンド保持手段から読み出す。信号送信手段は、コマンド読み出し手段によって読み出された認証コマンドを用いた質問信号をリーダ/ライタ装置に送信する。 Further, a data carrier that constitutes a data carrier system together with a reader / writer device is known (see Patent Document 3). In the command holding means, the area for storing the authentication command for performing authentication with the reader / writer device is divided into at least three areas, and the first area among the three areas is the first. The authentication command of is stored, the second authentication command is stored in the second area, and the third authentication command is stored in the third area. The signal receiving means receives the interrogation signal transmitted from the reader / writer device. The authentication command analysis means analyzes the authentication level performed with the reader / writer device from the question signal received by the signal receiving means. The authentication command selection means selects an authentication command to be used in the authentication process performed with the reader / writer device based on the analysis result of the command analysis means. The command reading means reads the authentication command selected by the authentication command selecting means from the command holding means. The signal transmitting means transmits a question signal using the authentication command read by the command reading means to the reader / writer device.

特開2010−182032号公報Japanese Unexamined Patent Publication No. 2010-182032 特開2008−134735号公報Japanese Unexamined Patent Publication No. 2008-134735 特開2008−59245号公報Japanese Unexamined Patent Publication No. 2008-59245

認証回路は、デジタル回路を有する。しかし、デジタル回路は、ツール類の充実により、比較的簡単に複製品を製造可能である。認証回路が、その複製品に対して認証成功の判定することは好ましくない。 The authentication circuit has a digital circuit. However, digital circuits can be manufactured as replicas relatively easily due to the enrichment of tools. It is not desirable for the authentication circuit to determine successful authentication for the duplicate.

本発明の目的は、厳格な認証を行うことができる電子回路を提供することである。 An object of the present invention is to provide an electronic circuit capable of performing strict authentication.

本発明の電子回路は、第1の電子回路と、第2の電子回路とを有し、前記第1の電子回路は、前記第2の電子回路に電力を供給する第1の電源回路と、演算開始コマンドを前記第2の電子回路に送信し、その後、前記第2の電子回路の認証演算に使用されるクロック信号の周波数を変更するためのクロック周波数変更コマンドを前記第2の電子回路に送信し、その後、前記第2の電子回路から演算応答を受信し、前記演算開始コマンドを送信してから前記演算応答を受信するまでの時間を計測する第1のコントローラーとを有し、前記第1の電源回路は、前記第2の電子回路の時間に対する消費電流パターンを計測し、前記第1のコントローラーは、前記計測された時間が第1の範囲内であり、かつ前記計測された消費電流パターンの電流値変化が第2の範囲内である場合には、認証成功であると判定し、前記第2の電子回路は、クロック信号を生成するクロック生成回路と、前記クロック生成回路により生成されたクロック信号に基づき、認証演算を行う演算回路と、前記第1の電子回路から前記演算開始コマンドを受信した場合には、前記演算回路に対して認証演算の開始を指示し、前記第1の電子回路から前記クロック周波数変更コマンドを受信した場合には、前記クロック生成回路に対して生成するクロック信号の周波数の変更を指示し、前記演算回路が認証演算を終了した場合には、前記演算応答を前記第1の電子回路に送信する第2のコントローラーとを有することを特徴とする。 The electronic circuit of the present invention includes a first electronic circuit and a second electronic circuit, and the first electronic circuit includes a first power supply circuit that supplies power to the second electronic circuit. The calculation start command is transmitted to the second electronic circuit, and then the clock frequency change command for changing the frequency of the clock signal used for the authentication calculation of the second electronic circuit is sent to the second electronic circuit. The first controller has a first controller that measures the time from transmitting the calculation response to receiving the calculation response from the second electronic circuit, transmitting the calculation start command, and receiving the calculation response. The power supply circuit 1 measures the current consumption pattern with respect to the time of the second electronic circuit, and the first controller measures the measured time within the first range and the measured current consumption. When the change in the current value of the pattern is within the second range, it is determined that the authentication is successful, and the second electronic circuit is generated by the clock generation circuit that generates a clock signal and the clock generation circuit. When the calculation start command is received from the calculation circuit that performs the authentication calculation based on the clock signal and the first electronic circuit, the calculation circuit is instructed to start the authentication calculation, and the first electronic circuit is instructed to start the authentication calculation. When the clock frequency change command is received from the electronic circuit, the clock generation circuit is instructed to change the frequency of the generated clock signal, and when the arithmetic circuit completes the authentication operation, the arithmetic response is given. It is characterized by having a second controller which transmits the first electronic circuit.

本発明によれば、厳格な認証を行うことができる。 According to the present invention, strict certification can be performed.

図1は、本発明の実施形態による電子回路の構成例を示す図である。FIG. 1 is a diagram showing a configuration example of an electronic circuit according to an embodiment of the present invention. 図2(A)は第1の電子回路の動作を示すフローチャートであり、図2(B)は第2の電子回路の動作を示すフローチャートである。FIG. 2A is a flowchart showing the operation of the first electronic circuit, and FIG. 2B is a flowchart showing the operation of the second electronic circuit. 図3(A)及び(B)は、時間に対する消費電流のパターンを示す図である。3A and 3B are diagrams showing a pattern of current consumption with respect to time.

図1は、本発明の実施形態による電子回路100の構成例を示す図である。電子回路100は、第1の電子回路101と、第2の電子回路102とを有する。第2の電子回路102は、第1の電子回路101に対して、接続可能である。第2の電子回路102が第1の電子回路101に接続されると、第1の電子回路101は、第2の電子回路102に対して認証を行う。 FIG. 1 is a diagram showing a configuration example of an electronic circuit 100 according to an embodiment of the present invention. The electronic circuit 100 includes a first electronic circuit 101 and a second electronic circuit 102. The second electronic circuit 102 can be connected to the first electronic circuit 101. When the second electronic circuit 102 is connected to the first electronic circuit 101, the first electronic circuit 101 authenticates the second electronic circuit 102.

第1の電子回路101は、電源回路111と、コントローラー112と、タイマー113と、インターフェース114とを有する。電源回路111は、第1の電子回路101の電源電圧を生成する。また、電源回路111は、第2の電子回路102に対して電力を供給し、第2の電子回路102の消費電流を計測することができる。コントローラー112は、第1の電子回路101の制御を行う。タイマー113は、時間計測のための時刻情報を生成する。インターフェース114は、第2の電子回路102に対して通信を行うための通信インターフェースである。 The first electronic circuit 101 includes a power supply circuit 111, a controller 112, a timer 113, and an interface 114. The power supply circuit 111 generates the power supply voltage of the first electronic circuit 101. Further, the power supply circuit 111 can supply electric power to the second electronic circuit 102 and measure the current consumption of the second electronic circuit 102. The controller 112 controls the first electronic circuit 101. The timer 113 generates time information for time measurement. The interface 114 is a communication interface for communicating with the second electronic circuit 102.

第2の電子回路102は、電源回路121と、演算回路122と、クロック生成回路123と、インターフェース124と、コントローラー125とを有する。電源回路121は、第1の電子回路101の電源回路111から電力の供給を受け、第2の電子回路102の電源電圧を生成する。クロック生成回路123は、クロック発振回路126と、複数のスイッチ127〜129と、複数の容量130〜132とを有し、クロック信号を生成する。クロック発振回路126は、RC回路の抵抗部を有する。容量130は、スイッチ127を介して、クロック発振回路126に接続される。容量131は、スイッチ128を介して、クロック発振回路126に接続される。容量132は、スイッチ129を介して、クロック発振回路126に接続される。コントローラー125がスイッチ127〜129を制御することにより、クロック発振回路126に接続される容量値が変化し、クロック発振回路126が発振するクロック信号の周波数が変化する。クロック生成回路123は、RC回路の容量Cを変えることにより、クロック信号の発振周波数を変えることができる。クロック生成回路123は、スイッチ127〜129の制御に応じた周波数のクロック信号を生成する。演算回路122は、クロック生成回路123により生成されたクロック信号に基づき、認証演算を行う。インターフェース124は、第1の電子回路101に対して通信を行うための通信インターフェースである。コントローラー125は、第2の電子回路102の制御を行う。 The second electronic circuit 102 includes a power supply circuit 121, an arithmetic circuit 122, a clock generation circuit 123, an interface 124, and a controller 125. The power supply circuit 121 receives power from the power supply circuit 111 of the first electronic circuit 101 and generates a power supply voltage of the second electronic circuit 102. The clock generation circuit 123 has a clock oscillation circuit 126, a plurality of switches 127 to 129, and a plurality of capacitances 130 to 132, and generates a clock signal. The clock oscillator circuit 126 has a resistance portion of the RC circuit. The capacitance 130 is connected to the clock oscillator circuit 126 via the switch 127. The capacitance 131 is connected to the clock oscillator circuit 126 via the switch 128. The capacitance 132 is connected to the clock oscillator circuit 126 via the switch 129. When the controller 125 controls the switches 127 to 129, the capacitance value connected to the clock oscillation circuit 126 changes, and the frequency of the clock signal oscillated by the clock oscillation circuit 126 changes. The clock generation circuit 123 can change the oscillation frequency of the clock signal by changing the capacitance C of the RC circuit. The clock generation circuit 123 generates a clock signal having a frequency according to the control of switches 127 to 129. The calculation circuit 122 performs an authentication calculation based on the clock signal generated by the clock generation circuit 123. The interface 124 is a communication interface for communicating with the first electronic circuit 101. The controller 125 controls the second electronic circuit 102.

図2(A)は、第1の電子回路101の動作を示すフローチャートである。ステップS201では、コントローラー112は、インターフェース114を介して、図3(A)の演算開始コマンド301を第2の電子回路102に送信する。次に、ステップS202では、コントローラー112は、タイマー113を用いて、図3(A)の演算時間Tの計測を開始する。具体的には、コントローラー112は、図3(A)の演算開始時刻t1をタイマー113から取得して記憶する。 FIG. 2A is a flowchart showing the operation of the first electronic circuit 101. In step S201, the controller 112 transmits the calculation start command 301 of FIG. 3A to the second electronic circuit 102 via the interface 114. Next, in step S202, the controller 112 starts the measurement of the calculation time T in FIG. 3A by using the timer 113. Specifically, the controller 112 acquires and stores the calculation start time t1 in FIG. 3A from the timer 113.

次に、ステップS203では、コントローラー112は、タイマー113の現在時刻が電流計測時刻であるか否かを判定し、現在時刻が電流計測時刻であると判定した場合にはステップS204に処理を進め、現在時刻が電流計測時刻でないと判定した場合にはステップS205に処理を進める。ステップS204では、電源回路111は、コントローラー112の制御の下、第2の電子回路102の消費電流I1を計測し、ステップS205に処理を進める。 Next, in step S203, the controller 112 determines whether or not the current time of the timer 113 is the current measurement time, and if it determines that the current time is the current measurement time, proceeds to step S204. If it is determined that the current time is not the current measurement time, the process proceeds to step S205. In step S204, the power supply circuit 111 measures the current consumption I1 of the second electronic circuit 102 under the control of the controller 112, and proceeds to step S205.

ステップS205では、コントローラー112は、タイマー113の現在時刻が周波数変更時刻t2であるか否かを判定し、現在時刻が周波数変更時刻t2であると判定した場合にはステップS206に処理を進め、現在時刻が周波数変更時刻t2でないと判定した場合にはステップS207に処理を進める。ステップS206では、コントローラー112は、インターフェース114を介して、第2の電子回路102の認証演算に使用されるクロック信号の周波数を変更するためのクロック周波数変更コマンド302(図3(A))を第2の電子回路102に送信し、ステップS207に処理を進める。 In step S205, the controller 112 determines whether or not the current time of the timer 113 is the frequency change time t2, and if it determines that the current time is the frequency change time t2, proceeds to step S206 to proceed to the present. If it is determined that the time is not the frequency change time t2, the process proceeds to step S207. In step S206, the controller 112 issues a clock frequency change command 302 (FIG. 3 (A)) for changing the frequency of the clock signal used for the authentication calculation of the second electronic circuit 102 via the interface 114. It is transmitted to the electronic circuit 102 of No. 2 and the process proceeds to step S207.

クロック生成回路123は、スイッチ127〜129の制御により、複数の周波数のうちのいずれか1つの周波数のクロック信号を生成することができる。それに対応し、コントローラー112は、インターフェース114を介して、複数の周波数のうちのいずれか1つの周波数に変更するためのクロック周波数変更コマンド302を第2の電子回路102に送信する。 The clock generation circuit 123 can generate a clock signal of any one of a plurality of frequencies by controlling the switches 127 to 129. Correspondingly, the controller 112 transmits a clock frequency change command 302 for changing to any one of the plurality of frequencies to the second electronic circuit 102 via the interface 114.

ステップS207では、コントローラー112は、インターフェース114を介して、図3(A)の演算応答303を第2の電子回路102から受信したか否かを判定し、演算応答303を受信していないと判定した場合には、ステップS203に処理を戻す。ステップS204では、電源回路111は、コントローラー112の制御の下、例えば所定時間間隔で、第2の電子回路102の消費電流I1を計測する。すなわち、電源回路111は、第2の電子回路102の時間に対する消費電流I1のパターンを計測する。なお、コントローラー112は、異なる時刻で複数のクロック周波数変更コマンド302を送信してもよい。 In step S207, the controller 112 determines whether or not the calculation response 303 of FIG. 3A has been received from the second electronic circuit 102 via the interface 114, and determines that the calculation response 303 has not been received. If so, the process is returned to step S203. In step S204, the power supply circuit 111 measures the current consumption I1 of the second electronic circuit 102 under the control of the controller 112, for example, at predetermined time intervals. That is, the power supply circuit 111 measures the pattern of the current consumption I1 with respect to the time of the second electronic circuit 102. The controller 112 may transmit a plurality of clock frequency change commands 302 at different times.

ステップS207において、コントローラー112は、演算応答303を受信したと判定した場合には、ステップS208に処理を進める。ステップS208では、コントローラー112は、タイマー113を用いて、演算時間Tの計測を終了する。コントローラー112は、演算開始コマンド301を送信してから演算応答303を受信するまでの演算時間Tを計測する。具体的には、コントローラー112は、図3(A)の演算終了時刻t3をタイマー113から取得して記憶する。そして、コントローラー112は、演算終了時刻t3から演算開始時刻t1を減算することにより、演算時間Tを計測する。 If the controller 112 determines in step S207 that the operation response 303 has been received, the controller 112 proceeds to step S208. In step S208, the controller 112 uses the timer 113 to end the measurement of the calculation time T. The controller 112 measures the calculation time T from the transmission of the calculation start command 301 to the reception of the calculation response 303. Specifically, the controller 112 acquires and stores the calculation end time t3 of FIG. 3A from the timer 113. Then, the controller 112 measures the calculation time T by subtracting the calculation start time t1 from the calculation end time t3.

次に、ステップS209では、コントローラー112は、演算応答303に含まれる認証演算結果データが期待値と同じか否かを判定する。そして、コントローラー112は、認証演算結果データが期待値と同じであると判定した場合には、ステップS210に処理を進め、認証演算結果データが期待値と同じでないと判定した場合には、ステップS213に処理を進める。 Next, in step S209, the controller 112 determines whether or not the authentication calculation result data included in the calculation response 303 is the same as the expected value. Then, when the controller 112 determines that the authentication calculation result data is the same as the expected value, the process proceeds to step S210, and when it is determined that the authentication calculation result data is not the same as the expected value, step S213. Proceed to processing.

ステップS210では、コントローラー112は、上記の演算時間Tが第1の所定範囲内であるか否かを判定する。図3(A)に示すように、演算時間Tは、時刻t1〜t2の周波数変更前の演算時間T1と、時刻t2〜t3の周波数変更後の演算時間T2との合計時間である。したがって、第1の所定範囲は、クロック周波数変更コマンド302が示す周波数に応じて変わる。コントローラー112は、演算時間Tが第1の所定範囲内であると判定した場合には、ステップS211に処理を進め、演算時間Tが第1の所定範囲内でないと判定した場合には、ステップS213に処理を進める。 In step S210, the controller 112 determines whether or not the calculation time T is within the first predetermined range. As shown in FIG. 3A, the calculation time T is the total time of the calculation time T1 before the frequency change at times t1 to t2 and the calculation time T2 after the frequency change at times t2 to t3. Therefore, the first predetermined range changes according to the frequency indicated by the clock frequency change command 302. If the controller 112 determines that the calculation time T is within the first predetermined range, the process proceeds to step S211. If the controller 112 determines that the calculation time T is not within the first predetermined range, step S213. Proceed to processing.

ステップS211では、コントローラー112は、上記の消費電流I1のパターンが第2の所定範囲内であるか否かを判定する。第2の所定範囲は、クロック周波数変更コマンド302が示す周波数に応じて変わる。コントローラー112は、消費電流I1のパターンが第2の所定範囲内であると判定した場合には、ステップS212に処理を進め、消費電流I1のパターンが第2の所定範囲内でないと判定した場合には、ステップS213に処理を進める。 In step S211 the controller 112 determines whether or not the pattern of the current consumption I1 is within the second predetermined range. The second predetermined range changes according to the frequency indicated by the clock frequency change command 302. When the controller 112 determines that the pattern of the current consumption I1 is within the second predetermined range, the process proceeds to step S212, and when it is determined that the pattern of the current consumption I1 is not within the second predetermined range. Proceeds with the process in step S213.

ステップS212では、コントローラー112は、第2の電子回路102の認証成功であると判定し、認証成功に対応する処理を行う。ステップS213では、コントローラー112は、第2の電子回路102の認証失敗であると判定し、認証失敗に対応する処理を行う。 In step S212, the controller 112 determines that the authentication of the second electronic circuit 102 is successful, and performs a process corresponding to the successful authentication. In step S213, the controller 112 determines that the authentication of the second electronic circuit 102 has failed, and performs a process corresponding to the authentication failure.

図2(B)は、第2の電子回路102の動作を示すフローチャートである。まず、ステップS221では、コントローラー125は、インターフェース124を介して、演算開始コマンド301を第1の電子回路101から受信するまで待機し、演算開始コマンド301を第1の電子回路101から受信したと判定した場合には、ステップS222に処理を進める。ステップS222では、コントローラー125は、演算回路122に対して、認証演算の開始を指示する。すると、演算回路122は、クロック生成回路123により生成されたクロック信号に基づき、認証演算を開始する。 FIG. 2B is a flowchart showing the operation of the second electronic circuit 102. First, in step S221, the controller 125 waits until the calculation start command 301 is received from the first electronic circuit 101 via the interface 124, and determines that the calculation start command 301 has been received from the first electronic circuit 101. If so, the process proceeds to step S222. In step S222, the controller 125 instructs the arithmetic circuit 122 to start the authentication operation. Then, the calculation circuit 122 starts the authentication calculation based on the clock signal generated by the clock generation circuit 123.

次に、ステップS223では、コントローラー125は、インターフェース124を介して、クロック周波数変更コマンド302を第1の電子回路101から受信したか否かを判定する。そして、コントローラー125は、クロック周波数変更コマンド302を受信したと判定した場合には、ステップS224に処理を進め、クロック周波数変更コマンド302を受信していないと判定した場合には、ステップS225に処理を進める。 Next, in step S223, the controller 125 determines whether or not the clock frequency change command 302 has been received from the first electronic circuit 101 via the interface 124. Then, when the controller 125 determines that the clock frequency change command 302 has been received, the process proceeds to step S224, and when it determines that the clock frequency change command 302 has not been received, the controller 125 proceeds to the process in step S225. Proceed.

ステップS224では、コントローラー125は、クロック周波数変更コマンド302が示す周波数に応じて、クロック生成回路123に対して生成するクロック信号の周波数の変更を指示する。具体的には、コントローラー125は、クロック周波数変更コマンド302が示す周波数に対応する容量130〜132をクロック発振回路126に接続するように、スイッチ127〜129を制御する。これにより、クロック生成回路123は、クロック周波数変更コマンド302が示す周波数のクロック信号を生成する。すなわち、クロック生成回路123は、生成するクロック信号の周波数を変更する。すると、演算回路122は、時刻t2で、変更後の周波数のクロック信号を基に、認証演算を行う。 In step S224, the controller 125 instructs the clock generation circuit 123 to change the frequency of the clock signal generated according to the frequency indicated by the clock frequency change command 302. Specifically, the controller 125 controls the switches 127 to 129 so that the capacitances 130 to 132 corresponding to the frequency indicated by the clock frequency change command 302 are connected to the clock oscillation circuit 126. As a result, the clock generation circuit 123 generates a clock signal having the frequency indicated by the clock frequency change command 302. That is, the clock generation circuit 123 changes the frequency of the generated clock signal. Then, the calculation circuit 122 performs the authentication calculation at the time t2 based on the clock signal of the changed frequency.

次に、ステップS225では、コントローラー125は、演算回路122の認証演算が終了したか否かを判定する。演算回路122は、認証演算が終了した場合には、認証演算結果データ及び認証演算終了信号を出力する。コントローラー125は、演算回路122の認証演算が終了していないと判定した場合には、ステップS223に処理を戻し、演算回路122の認証演算が終了したと判定した場合には、ステップS226に処理を進める。ステップS226では、コントローラー125は、インターフェース124を介して、上記の認証演算結果データを含む演算応答303を第1の電子回路101に送信する。 Next, in step S225, the controller 125 determines whether or not the authentication calculation of the calculation circuit 122 is completed. When the authentication calculation is completed, the calculation circuit 122 outputs the authentication calculation result data and the authentication calculation end signal. When the controller 125 determines that the authentication calculation of the arithmetic circuit 122 has not been completed, the controller 125 returns the process to step S223, and when it determines that the authentication operation of the arithmetic circuit 122 has been completed, the controller 125 performs the process in step S226. Proceed. In step S226, the controller 125 transmits the calculation response 303 including the authentication calculation result data to the first electronic circuit 101 via the interface 124.

図3(B)は、他の消費電流I2のパターンを示す図である。仮に、図2(A)のステップS211がない場合、コントローラー112は、消費電流I2のパターンが第2の所定範囲内でなくても、演算時間Tが第1の所定範囲内である場合には、認証成功であると判定する。この場合、第2の電子回路102は、演算時間Tの認証条件をクリアするため、時刻t1で認証演算を開始、時刻t4で認証演算を終了し、その後、待機し、時刻t3で演算応答303を送信することができる。演算時間Tは、時刻t1〜t3の時間である。このように、第2の電子回路102は、演算時間Tの認証条件をクリアすることが可能である。しかし、第2の電子回路102が消費電流のパターンの認証条件をクリアすることは困難である。以下、その理由を説明する。 FIG. 3B is a diagram showing another pattern of current consumption I2. If step S211 of FIG. 2A is not provided, the controller 112 may use the controller 112 if the calculation time T is within the first predetermined range even if the pattern of the current consumption I2 is not within the second predetermined range. , Judge that the authentication is successful. In this case, in order to clear the authentication condition of the calculation time T, the second electronic circuit 102 starts the authentication calculation at the time t1, ends the authentication calculation at the time t4, then waits, and waits for the calculation response 303 at the time t3. Can be sent. The calculation time T is a time at times t1 to t3. In this way, the second electronic circuit 102 can clear the authentication condition of the calculation time T. However, it is difficult for the second electronic circuit 102 to clear the authentication condition of the current consumption pattern. The reason will be described below.

デジタル回路は、模倣品の製造が可能である。しかし、第2の電子回路102の消費電流パターンは、アナログ要素であるため、模倣困難である。第2の電子回路102は、IC製造工場(ファンダリ)を変えると、消費電流パターンが変わってしまう。さらに、クロック周波数変更コマンド302により、クロック信号の周波数を途中で変えた場合の演算時間T及び消費電流パターンは、IC製造工場毎のプロセス及びレイアウトパターンに依存するため、同じ特性を持つ第2の電子回路102の模倣品の製造がより困難である。本実施形態によれば、第1の電子回路101は、第2の電子回路102に対して厳格な認証を行うことができる。 Digital circuits can be manufactured as counterfeit products. However, since the current consumption pattern of the second electronic circuit 102 is an analog element, it is difficult to imitate it. In the second electronic circuit 102, the current consumption pattern changes when the IC manufacturing factory (foundry) is changed. Further, since the calculation time T and the current consumption pattern when the frequency of the clock signal is changed in the middle by the clock frequency change command 302 depends on the process and layout pattern of each IC manufacturing factory, a second second having the same characteristics. It is more difficult to manufacture a counterfeit product of the electronic circuit 102. According to this embodiment, the first electronic circuit 101 can perform strict authentication on the second electronic circuit 102.

なお、演算回路122は、複数種類の初期データのうちのいずれか1種類の初期データを用いて、認証演算を行うことができる。初期データの種類が変わると、演算回路122の認証演算結果データが変わり、第2の電子回路102の消費電流I1のパターンが変わり、演算時間Tが変わる。その場合、ステップS201では、コントローラー112は、インターフェース114を介して、第2の電子回路102に対して複数種類の初期データのうちのいずれか1種類の初期データを用いて認証演算を行わせるための演算開始コマンド301を第2の電子回路102に送信する。演算回路122は、演算開始コマンド301が示す初期データを用いて認証演算を行う。ステップS209の期待値、ステップS210の第1の所定範囲、及びステップS211の第2の所定範囲は、演算開始コマンド301が示す初期データに応じて変わる。 The arithmetic circuit 122 can perform an authentication operation using any one of the plurality of types of initial data. When the type of the initial data changes, the authentication calculation result data of the calculation circuit 122 changes, the pattern of the current consumption I1 of the second electronic circuit 102 changes, and the calculation time T changes. In that case, in step S201, the controller 112 causes the second electronic circuit 102 to perform the authentication operation using the initial data of any one of the plurality of types of initial data via the interface 114. The calculation start command 301 of is transmitted to the second electronic circuit 102. The calculation circuit 122 performs an authentication calculation using the initial data indicated by the calculation start command 301. The expected value in step S209, the first predetermined range in step S210, and the second predetermined range in step S211 change according to the initial data indicated by the calculation start command 301.

また、第1のICチップが第1の電子回路101及び第2の電子回路102を有し、第2のICチップが第1の電子回路101及び第2の電子回路102を有してもよい。その場合、第1のICチップが第2のICチップを認証することができ、逆に、第2のICチップが第1のICチップを認証することもできる。 Further, the first IC chip may have the first electronic circuit 101 and the second electronic circuit 102, and the second IC chip may have the first electronic circuit 101 and the second electronic circuit 102. .. In that case, the first IC chip can authenticate the second IC chip, and conversely, the second IC chip can authenticate the first IC chip.

なお、上記実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。 It should be noted that all of the above embodiments merely show examples of embodiment in carrying out the present invention, and the technical scope of the present invention should not be construed in a limited manner by these. That is, the present invention can be implemented in various forms without departing from the technical idea or its main features.

100 電子回路
101 第1の電子回路
102 第2の電子回路
111 電源回路
112 コントローラー
113 タイマー
114 インターフェース
121 電源回路
122 演算回路
123 クロック生成回路
124 インターフェース
125 コントローラー
126 クロック発振回路
127〜129 スイッチ
130〜132 容量
301 演算開始コマンド
302 クロック周波数変更コマンド
303 演算応答
100 Electronic circuit 101 First electronic circuit 102 Second electronic circuit 111 Power supply circuit 112 Controller 113 Timer 114 Interface 121 Power supply circuit 122 Arithmetic circuit 123 Clock generation circuit 124 Interface 125 Controller 126 Clock oscillation circuit 127 to 129 Switch 130 to 132 Capacity 301 Calculation start command 302 Clock frequency change command 303 Calculation response

Claims (8)

第1の電子回路と、
第2の電子回路とを有し、
前記第1の電子回路は、
前記第2の電子回路に電力を供給する第1の電源回路と、
演算開始コマンドを前記第2の電子回路に送信し、その後、前記第2の電子回路の認証演算に使用されるクロック信号の周波数を変更するためのクロック周波数変更コマンドを前記第2の電子回路に送信し、その後、前記第2の電子回路から演算応答を受信し、前記演算開始コマンドを送信してから前記演算応答を受信するまでの時間を計測する第1のコントローラーとを有し、
前記第1の電源回路は、前記第2の電子回路の時間に対する消費電流パターンを計測し、
前記第1のコントローラーは、前記計測された時間が第1の範囲内であり、かつ前記計測された消費電流パターンの電流値変化が第2の範囲内である場合には、認証成功であると判定し、
前記第2の電子回路は、
クロック信号を生成するクロック生成回路と、
前記クロック生成回路により生成されたクロック信号に基づき、認証演算を行う演算回路と、
前記第1の電子回路から前記演算開始コマンドを受信した場合には、前記演算回路に対して認証演算の開始を指示し、前記第1の電子回路から前記クロック周波数変更コマンドを受信した場合には、前記クロック生成回路に対して生成するクロック信号の周波数の変更を指示し、前記演算回路が認証演算を終了した場合には、前記演算応答を前記第1の電子回路に送信する第2のコントローラーとを有することを特徴とする電子回路。
The first electronic circuit and
Has a second electronic circuit
The first electronic circuit is
A first power supply circuit that supplies power to the second electronic circuit,
A calculation start command is transmitted to the second electronic circuit, and then a clock frequency change command for changing the frequency of the clock signal used for the authentication calculation of the second electronic circuit is sent to the second electronic circuit. It has a first controller that measures the time from transmitting, then receiving an arithmetic response from the second electronic circuit, transmitting the arithmetic start command, to receiving the arithmetic response.
The first power supply circuit measures the current consumption pattern with respect to the time of the second electronic circuit.
The first controller determines that the authentication is successful when the measured time is within the first range and the change in the current value of the measured current consumption pattern is within the second range. Judge,
The second electronic circuit is
A clock generation circuit that generates a clock signal and
An arithmetic circuit that performs an authentication operation based on the clock signal generated by the clock generation circuit, and
When the calculation start command is received from the first electronic circuit, the calculation circuit is instructed to start the authentication calculation, and when the clock frequency change command is received from the first electronic circuit, the calculation start command is instructed. A second controller that instructs the clock generation circuit to change the frequency of the clock signal to be generated, and transmits the calculation response to the first electronic circuit when the calculation circuit finishes the authentication calculation. An electronic circuit characterized by having and.
前記演算回路は、認証演算が終了した場合には認証演算結果データを出力し、
前記第2のコントローラーは、前記認証演算結果データを含む前記演算応答を前記第1の電子回路に送信し、
前記第1のコントローラーは、前記演算応答に含まれる前記認証演算結果データが期待値と同じであり、かつ前記計測された時間が前記第1の範囲内であり、かつ前記計測された消費電流パターンの電流値変化が前記第2の範囲内である場合には、認証成功であると判定することを特徴とする請求項1に記載の電子回路。
When the authentication calculation is completed, the calculation circuit outputs the authentication calculation result data.
The second controller transmits the calculation response including the authentication calculation result data to the first electronic circuit.
In the first controller, the authentication calculation result data included in the calculation response is the same as the expected value, the measured time is within the first range, and the measured current consumption pattern. The electronic circuit according to claim 1, wherein when the change in the current value of the above is within the second range, it is determined that the authentication is successful.
前記第1のコントローラーは、複数の周波数のうちのいずれか1つの周波数に変更するための前記クロック周波数変更コマンドを前記第2の電子回路に送信し、
前記第1の範囲及び前記第2の範囲は、前記クロック周波数変更コマンドが示す周波数に応じて変わることを特徴とする請求項1又は2に記載の電子回路。
The first controller transmits the clock frequency change command for changing to any one of a plurality of frequencies to the second electronic circuit.
The electronic circuit according to claim 1 or 2, wherein the first range and the second range change according to the frequency indicated by the clock frequency change command.
前記第1のコントローラーは、前記第2の電子回路に対して複数種類の初期データのうちのいずれか1種類の初期データを用いて認証演算を行わせるための前記演算開始コマンドを前記第2の電子回路に送信し、
前記演算回路は、前記演算開始コマンドが示す初期データを用いて認証演算を行い、
前記第2の範囲は、前記演算開始コマンドが示す初期データに応じて変わることを特徴とする請求項1〜3のいずれか1項に記載の電子回路。
The first controller issues the calculation start command for causing the second electronic circuit to perform an authentication calculation using any one of a plurality of types of initial data. Send to electronic circuit,
The calculation circuit performs an authentication calculation using the initial data indicated by the calculation start command, and then performs an authentication calculation.
The electronic circuit according to any one of claims 1 to 3, wherein the second range changes according to the initial data indicated by the calculation start command.
他の電子回路に電力を供給する電源回路と、
演算開始コマンドを前記他の電子回路に送信し、その後、前記他の電子回路の認証演算に使用されるクロック信号の周波数を変更するためのクロック周波数変更コマンドを前記他の電子回路に送信し、その後、前記他の電子回路から演算応答を受信し、前記演算開始コマンドを送信してから前記演算応答を受信するまでの時間を計測するコントローラーと
を有し、
前記電源回路は、前記他の電子回路の時間に対する消費電流パターンを計測し、
前記コントローラーは、前記計測された時間が第1の範囲内であり、かつ前記計測された消費電流パターンの電流値変化が第2の範囲内である場合には、認証成功であると判定することを特徴とする電子回路。
A power supply circuit that supplies power to other electronic circuits,
A calculation start command is transmitted to the other electronic circuit, and then a clock frequency change command for changing the frequency of the clock signal used for the authentication calculation of the other electronic circuit is transmitted to the other electronic circuit. After that, it has a controller that receives an arithmetic response from the other electronic circuit, transmits the arithmetic start command, and measures the time from receiving the arithmetic response.
The power supply circuit measures the current consumption pattern with respect to the time of the other electronic circuit, and measures the current consumption pattern.
The controller determines that the authentication is successful when the measured time is within the first range and the change in the current value of the measured current consumption pattern is within the second range. An electronic circuit characterized by.
前記コントローラーは、前記演算応答に含まれる認証演算結果データが期待値と同じであり、かつ前記計測された時間が前記第1の範囲内であり、かつ前記計測された消費電流パターンの電流値変化が前記第2の範囲内である場合には、認証成功であると判定することを特徴とする請求項5に記載の電子回路。 In the controller, the authentication calculation result data included in the calculation response is the same as the expected value, the measured time is within the first range, and the current value change of the measured current consumption pattern. The electronic circuit according to claim 5, wherein if is within the second range, it is determined that the authentication is successful. 前記コントローラーは、複数の周波数のうちのいずれか1つの周波数に変更するための前記クロック周波数変更コマンドを前記他の電子回路に送信し、
前記第1の範囲及び前記第2の範囲は、前記クロック周波数変更コマンドが示す周波数に応じて変わることを特徴とする請求項5又は6に記載の電子回路。
The controller transmits the clock frequency change command for changing to any one of a plurality of frequencies to the other electronic circuit.
The electronic circuit according to claim 5 or 6, wherein the first range and the second range change according to the frequency indicated by the clock frequency change command.
前記コントローラーは、前記他の電子回路に対して複数種類の初期データのうちのいずれか1種類の初期データを用いて認証演算を行わせるための前記演算開始コマンドを前記他の電子回路に送信し、
前記第2の範囲は、前記演算開始コマンドが示す初期データに応じて変わることを特徴とする請求項5〜7のいずれか1項に記載の電子回路。
The controller transmits the calculation start command to the other electronic circuit for causing the other electronic circuit to perform an authentication calculation using any one of a plurality of types of initial data. ,
The electronic circuit according to any one of claims 5 to 7, wherein the second range changes according to the initial data indicated by the calculation start command.
JP2017112003A 2017-06-06 2017-06-06 Electronic circuit Active JP6913354B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017112003A JP6913354B2 (en) 2017-06-06 2017-06-06 Electronic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017112003A JP6913354B2 (en) 2017-06-06 2017-06-06 Electronic circuit

Publications (2)

Publication Number Publication Date
JP2018206150A JP2018206150A (en) 2018-12-27
JP6913354B2 true JP6913354B2 (en) 2021-08-04

Family

ID=64957942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017112003A Active JP6913354B2 (en) 2017-06-06 2017-06-06 Electronic circuit

Country Status (1)

Country Link
JP (1) JP6913354B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061534A (en) * 2022-05-09 2022-09-16 厉雷刚 Clock-free asynchronous circuit, method, apparatus and medium for synchronous data output

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006010514B4 (en) * 2006-03-07 2008-09-18 Infineon Technologies Ag Electrical circuit and terminal
JP2009159679A (en) * 2007-12-25 2009-07-16 Panasonic Electric Works Co Ltd Management system and outlet unit used therefor
JP2011018163A (en) * 2009-07-08 2011-01-27 Renesas Electronics Corp Semiconductor device
JP2010119137A (en) * 2010-02-15 2010-05-27 Hitachi Ltd Device and method for transmitting contents
JP6593745B2 (en) * 2015-05-26 2019-10-23 国立大学法人 筑波大学 Data driven processor

Also Published As

Publication number Publication date
JP2018206150A (en) 2018-12-27

Similar Documents

Publication Publication Date Title
CN104995586B (en) The pen of digitization system
JP5762659B1 (en) Position indicator
CN109875131A (en) A kind of electronic cigarette control method, device, electronic cigarette and storage medium
JP2009290644A (en) Transponder, interrogator and communication device
JP6098260B2 (en) RFID system, communication device and communication program
CN108055089B (en) Method and device for determining working frequency of NFC device
JP6913354B2 (en) Electronic circuit
CN104732256A (en) RFID reader/writer and diagnosis processing program
KR20170112389A (en) Apparatus for transmiting power wirelessly and control method thereof
JP2006042214A (en) Semiconductor device and ic tag
JP2021152783A (en) Slave device, information processing device, master-slave control system, control method for slave device, and control method for information processing device
KR20040081195A (en) Electromagnetic transponder with a programmable code
JP6485016B2 (en) Radio communication apparatus and clock phase adjustment method in radio communication apparatus
CN108476540B (en) Terminal, method for controlling terminal, and wireless communication system using terminal
JP4116273B2 (en) Wireless card having random number generator, semiconductor device for the wireless card, and wireless card system using the wireless card
JP4255506B2 (en) Interrogator, contactless data carrier system, and contactless data carrier data acquisition method
JP4572882B2 (en) Non-contact reader / writer
CN112640375B (en) Signal processing device and information rewriting device
JP4682478B2 (en) Non-contact IC card communication system, IC card and IC card reader
WO2013132850A1 (en) Electrical appliance, and control method and server device for electrical appliance
KR102434707B1 (en) information processing device, and relay device
JP2008293167A (en) Random number generation circuit, non-contact type ic tag, reader/writer and ic tag system
JP4839751B2 (en) RFID tag
JP2009044307A (en) Rf tag system, rf tag, and tag reader
JP2006154923A (en) Non-contact ic card reader-writer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200526

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210427

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210610

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210629

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210705

R150 Certificate of patent or registration of utility model

Ref document number: 6913354

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250