JP2007249996A - Program development support apparatus and program implementation method - Google Patents
Program development support apparatus and program implementation method Download PDFInfo
- Publication number
- JP2007249996A JP2007249996A JP2007121815A JP2007121815A JP2007249996A JP 2007249996 A JP2007249996 A JP 2007249996A JP 2007121815 A JP2007121815 A JP 2007121815A JP 2007121815 A JP2007121815 A JP 2007121815A JP 2007249996 A JP2007249996 A JP 2007249996A
- Authority
- JP
- Japan
- Prior art keywords
- key
- program
- raw
- encrypted
- lsi
- 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
Links
Images
Landscapes
- Storage Device Security (AREA)
- Stored Programmes (AREA)
Abstract
【課題】鍵実装システムについて、セキュリティレベルの高い開発環境を提供する。
【解決手段】セキュアメモリを備えたLSIを有するシステムについて、構成が共通のLSIを、<商品動作モード>とは異なる<開発モード>に設定して、プログラムの開発を行う。また、<アドミニストレータモード>に設定して鍵生成プログラムの開発および暗号化を行い、<鍵生成モード>に設定して、暗号化された鍵生成プログラムを実行させて各種の鍵を生成する。
【選択図】 図2A development environment with a high security level is provided for a key implementation system.
For a system having an LSI having a secure memory, a program is developed by setting an LSI having a common configuration to a <development mode> different from the <product operation mode>. In addition, the <administrator mode> is set to develop and encrypt the key generation program, and the <key generation mode> is set to execute the encrypted key generation program to generate various keys.
[Selection] Figure 2
Description
本発明は、鍵実装されたシステムやこれに用いるLSIのプログラム開発やプログラム実装に関する技術に属する。 The present invention belongs to a technology related to development and program implementation of a key-implemented system and an LSI used for the system.
特願2001−286881では、鍵実装システムにおいて、鍵の機密性および秘匿性を、従来よりも向上させる技術が示されている。 Japanese Patent Application No. 2001-286881 discloses a technique for improving the confidentiality and secrecy of a key in a key mounting system as compared with the prior art.
上述のようなシステムでは、そのプログラム開発工程や実装工程においても、いかにしてセキュリティを維持するか、ということが大きな課題となる。 In the system as described above, how to maintain security is a major issue in the program development process and the mounting process.
本発明は、上述のようなシステムについて、セキュリティレベルの高い、プログラム開発の方法や環境、またはプログラム実装の方法を提案するものである。 The present invention proposes a program development method and environment or a program implementation method with a high security level for the system as described above.
請求項1の発明が講じた解決手段は、暗号化プログラムの開発を支援するプログラム開発支援装置として、前記暗号化プログラムが動作するLSIと構成が共通のLSIと、平文プログラムを格納する外部メモリとを備え、前記LSIは、生共有鍵に係る共有鍵鍵情報を格納したセキュアメモリを備え、かつ、前記セキュアメモリに格納された共有鍵鍵情報から生共有鍵を得る第1のステップと、前記外部メモリから入力された平文プログラムを前記生共有鍵を用いて暗号化する第2のステップとが実行可能に構成されているものである。
The solution provided by the invention of
請求項1の発明によると、開発対象となる暗号化プログラムが動作するLSIと構成が共通のLSIが、開発環境として、与えられる。そして、このLSIでは、セキュアメモリに格納された共有鍵鍵情報から生共有鍵が得られるとともに、この生共有鍵を用いて、外部メモリから入力された平文プログラムが暗号化される。すなわち、生共有鍵の復号と、この生共有鍵を用いた平文プログラムの暗号化とが、実行可能である。このため、プログラム開発者に生共有鍵を知られることなく、平文プログラムの暗号化を実行することができる。 According to the first aspect of the present invention, an LSI having the same configuration as the LSI on which the encryption program to be developed operates is provided as the development environment. In this LSI, a raw shared key is obtained from the shared key key information stored in the secure memory, and a plain text program input from the external memory is encrypted using the raw shared key. That is, decryption of the raw shared key and encryption of the plaintext program using this raw shared key can be executed. Therefore, the plaintext program can be encrypted without the program developer knowing the raw shared key.
請求項2の発明が講じた解決手段は、暗号化プログラムの開発を支援するプログラム開発支援装置として、LSIと、平文プログラムを格納する外部メモリとを備え、前記LSIは、生共有鍵に係る共有鍵鍵情報を格納したセキュアメモリと、ブートプログラムを格納するブートROMとを備え、かつ、前記ブートROMに格納されたブートプログラムを実行することによって、前記セキュアメモリに格納された共有鍵鍵情報から生共有鍵を得る第1のステップと、前記外部メモリから入力された平文プログラムを前記生共有鍵を用いて暗号化する第2のステップとを実行するものである。 The solution provided by the invention of claim 2 comprises an LSI and an external memory for storing a plaintext program as a program development support apparatus for supporting the development of an encrypted program, and the LSI is a shared shared key. A secure memory that stores key key information and a boot ROM that stores a boot program, and by executing the boot program stored in the boot ROM, from the shared key key information stored in the secure memory A first step of obtaining a raw shared key and a second step of encrypting a plaintext program input from the external memory using the raw shared key are executed.
請求項2の発明によると、LSIにおいてブートプログラムを実行することによって、セキュアメモリに格納された共有鍵鍵情報から生共有鍵が得られるとともに、外部メモリから入力された平文プログラムがこの生共有鍵を用いて暗号化される。すなわち、生共有鍵の復号と、この生共有鍵を用いた平文プログラムの暗号化とが、外部からの指示ではなく、ブートプログラムによって実行される。このため、平文プログラムの暗号化を、プログラム開発者に生共有鍵を知られることを確実に防止しつつ、実行することができる。 According to the invention of claim 2, by executing the boot program in the LSI, the raw shared key is obtained from the shared key key information stored in the secure memory, and the plaintext program input from the external memory is converted to the raw shared key. It is encrypted using That is, the decryption of the raw shared key and the encryption of the plaintext program using the raw shared key are executed by the boot program instead of an instruction from the outside. For this reason, encryption of the plaintext program can be executed while reliably preventing the program developer from knowing the raw shared key.
請求項3の発明では、請求項1または2において、前記共有鍵鍵情報は、生共有鍵を生第1中間鍵で暗号化した暗号化共有鍵と、前記生第1中間鍵を生第2中間鍵で暗号化した暗号化第1中間鍵とを含むものとし、前記第1のステップは、前記暗号化共有鍵および暗号化第1中間鍵と、プログラム暗号種とを用いて、前記生共有鍵を復号するものとする。 According to a third aspect of the invention, in the first or second aspect, the shared key key information includes an encrypted shared key obtained by encrypting a raw shared key with a raw first intermediate key, and a raw second intermediate key. An encrypted first intermediate key encrypted with an intermediate key, and the first step uses the encrypted shared key, the encrypted first intermediate key, and a program encryption type to generate the raw shared key. Is to be decrypted.
請求項4の発明が講じた解決手段は、セキュアメモリを有するLSIと外部メモリとを有する鍵実装システムに暗号化プログラムを実装する方法として、前記セキュアメモリに、生共有鍵に係る共有鍵鍵情報と、生固有鍵に係る固有鍵鍵情報とを格納する初期値設定処理と、前記LSIにおいて、前記セキュアメモリに格納された共有鍵鍵情報から生共有鍵を得る第1のステップと、前記LSIにおいて、前記外部メモリから与えられた共有鍵暗号化プログラムを前記第1のステップで得られた生共有鍵を用いて復号する第2のステップと、前記LSIにおいて、前記セキュアメモリに格納された固有鍵鍵情報から生固有鍵を得る第3のステップと、前記LSIにおいて、前記第2のステップで得られた平文プログラムを前記第3のステップで得られた生固有鍵を用いて暗号化する第4のステップとを備え、前記第4のステップで得られた固有鍵暗号化プログラムを前記外部メモリに実装するものである。 According to a fourth aspect of the present invention, there is provided a means for implementing an encryption program in a key mounting system having an LSI having a secure memory and an external memory, wherein the shared key key information relating to the raw shared key is stored in the secure memory. Initial value setting processing for storing unique key key information related to a raw unique key, a first step of obtaining a raw shared key from shared key key information stored in the secure memory in the LSI, and the LSI A second step of decrypting the shared key encryption program given from the external memory using the raw shared key obtained in the first step; and a unique step stored in the secure memory in the LSI A third step of obtaining a raw unique key from the key-key information; and the third step in which the plaintext program obtained in the second step is obtained in the LSI. Using the obtained raw inherent key and a fourth step of encrypting the inherent key encryption program obtained in said fourth step is to mount the external memory.
請求項4の発明によると、LSIに与えられた共有鍵暗号化プログラムは、セキュアメモリに格納された共有鍵鍵情報から得られた生共有鍵を用いて、復号される。そして復号された平文プログラムは、セキュアメモリに格納された固有鍵鍵情報から得られた生固有鍵を用いて、暗号化される。すなわち、共有鍵暗号化プログラムが、暗号化する鍵が共有鍵から固有鍵に変換されて、システムに実装されることになる。このため、ユーザの持つ各製品では、互いに異なる固有鍵によって暗号化されたプログラムが実装されることになり、秘匿性が向上する。また、万一、暗号を破られた場合でも、被害を受ける製品の数が限定されることになり、従来よりもセキュリティが高まる。 According to the invention of claim 4, the shared key encryption program given to the LSI is decrypted using the raw shared key obtained from the shared key key information stored in the secure memory. The decrypted plaintext program is encrypted using the raw unique key obtained from the unique key key information stored in the secure memory. That is, the key to be encrypted by the shared key encryption program is converted from the shared key to the unique key and installed in the system. For this reason, in each product held by the user, a program encrypted with a different unique key is mounted, and the secrecy is improved. In addition, even if the encryption is broken, the number of products that are damaged is limited, and the security is higher than before.
請求項5の発明では、請求項4におけるLSIは、ブートプログラムを格納するブートROMを備え、前記ブートROMに格納されたブートプログラムを前記LSIに実行させることによって、前記第1〜第4のステップを実行するものとする。 According to a fifth aspect of the present invention, the LSI according to the fourth aspect includes a boot ROM for storing a boot program, and the first to fourth steps are performed by causing the LSI to execute the boot program stored in the boot ROM. Shall be executed.
請求項6の発明では、請求項4における固有鍵鍵情報は、前記セキュアメモリの書き換え不可領域に格納されているものとする。 In the invention of claim 6, the unique key information in claim 4 is stored in the non-rewritable area of the secure memory.
請求項7の発明では、請求項4における共有鍵鍵情報は、生共有鍵を生第1中間鍵で暗号化した暗号化共有鍵と、前記生第1中間鍵を生第2中間鍵で暗号化した暗号化第1中間鍵とを含むものとし、前記第1のステップは、前記暗号化共有鍵および暗号化第1中間鍵とプログラム暗号種とを用いて前記生共有鍵を復号するものとする。 In the invention of claim 7, the shared key key information in claim 4 is obtained by encrypting the raw shared key with the raw first intermediate key and encrypting the raw first intermediate key with the raw second intermediate key. The encrypted first intermediate key is encrypted, and the first step is to decrypt the raw shared key using the encrypted shared key, the encrypted first intermediate key, and the program encryption type. .
請求項8の発明では、請求項4における固有鍵鍵情報は、生固有鍵を生第1中間鍵で暗号化した暗号化固有鍵と、前記生第1中間鍵を生第2中間鍵で暗号化した暗号化第1中間鍵とを含むものとし、前記第3のステップは、前記暗号化固有鍵および暗号化第1中間鍵とプログラム暗号種とを用いて前記生固有鍵を復号するものとする。 In the invention of claim 8, the unique key key information in claim 4 includes an encrypted unique key obtained by encrypting the raw unique key with the raw first intermediate key, and the raw first intermediate key encrypted with the raw second intermediate key. The encrypted first intermediate key is included, and the third step is to decrypt the raw unique key using the encrypted unique key, the encrypted first intermediate key, and the program encryption type. .
請求項9の発明では、請求項4における固有鍵鍵情報は、当該LSIに固有の固有IDであるものとする。 In the invention of claim 9, the unique key information in claim 4 is a unique ID unique to the LSI.
以上のように本発明によると、書き換え不可領域を含むセキュアメモリを有し、高い秘匿性を持つLSIを、その動作モードを実装モードから開発モードに変えて、プログラム開発環境として用いることによって、プログラム開発環境におけるセキュリティを、従来よりも高めることができる。 As described above, according to the present invention, an LSI having a secure memory including a non-rewritable area and having high secrecy is used as a program development environment by changing its operation mode from the mounting mode to the development mode. Security in the development environment can be increased compared to the past.
以下、本発明の実施の形態について、図面を参照して説明する。なお、以下の説明では、X(鍵またはプログラム)を鍵Yを用いて暗号化して得た、暗号化された鍵またはプログラムのことを、Enc(X,Y)と表すものとする。 Embodiments of the present invention will be described below with reference to the drawings. In the following description, an encrypted key or program obtained by encrypting X (key or program) using the key Y is expressed as Enc (X, Y).
図1は本実施形態に係るセキュアLSIの内部構成を示すブロック図である。図1において、セキュアLSI1は外部バス120を介して、外部メモリ(フラッシュメモリ)100や外部ツール110などと接続可能に構成されている。また、モードIDを与えることによって、その動作モードを設定することが可能になっている。
FIG. 1 is a block diagram showing the internal configuration of a secure LSI according to this embodiment. In FIG. 1, the
本実施形態に関わる主な構成要素について、簡単に説明する。 The main components related to this embodiment will be briefly described.
まず、セキュアLSI1は、書き換え不可領域11を含むセキュアメモリ(セキュアFlash)10を備えている。この書き換え不可領域11には、書き換え不可領域書き込みフラグ12が設けられている。書き換え不可領域書き込みフラグ12は、モードIDが一度セキュアメモリ10に書き込まれると、そのフラグ値が“可”から“済”になり、それ以降の書き換え不可領域への書き込みが不能になる。なお、本実施形態では、セキュアメモリ10および外部メモリ100はフラッシュメモリによって構成されているが、もちろんこれに限定されるものではなく、不揮発性のメモリであればどのようなものであってもかまわない。
First, the
また、秘密鍵演算処理部20は各種の鍵、およびプログラム暗号種を格納するレジスタを備えており、暗号化処理を実行する。鍵生成・更新シーケンサ30はモードID格納レジスタ31を有し、このモードID格納レジスタ31に格納されているモードIDに応じて、秘密鍵演算処理部20の動作、すなわち、各種の鍵を生成できるか否かを制御する。また、鍵またはプログラムがどのようなアルゴリズムや鍵長で暗号化されているかを示す暗号種別識別子を格納する暗号種別識別子格納レジスタ32を備えている。さらに、プログラム暗号種33が実装されている。
The secret key
モードシーケンサ40も、モードID格納レジスタ41を備えており、モードID格納レジスタ41に格納されているモードIDと、ジャンパー43の値に応じて、外部ホストインターフェース(I/F)50の動作、すなわち、外部メモリ100に格納されたプログラムやデータをどのI/Fを介して読み込むか、を制御する。これにより、外部メモリ100に格納された平文プログラムが実行できるか否かを制御することができる。さらに、モードシーケンサ40は、鍵がどの手法によって暗号化されているかを示す暗号種別識別子を格納する暗号種別識別子格納レジスタ42を備えている。
The
外部ホストI/F50は、モードシーケンサ40の制御に従って、プログラム処理部51が有するスルー部52、遅延部53およびプログラム復号用暗号エンジン54、並びに、データ処理部55が有するスルー部56およびコンテンツ暗号・復号用暗号エンジン57のうちのいずれかを介して、外部メモリ100や外部ツール110との間でプログラムやデータの入出力を行う。
Under the control of the
ここで、後述するアドミニストレータモードを除いては、スルー部52を介して入力されたプログラムは、セキュアLSI1内部では実行されることはない。すなわち、スルー部52は、平文プログラムの暗号化、またはすでに暗号化されたプログラムを別の鍵を用いて再暗号化するときに有効とされるものであり、セキュアLSI1は、後述するアドミニストレータモードを除いては、スルー部52を介して入力されたプログラムへは動作を遷移しないように構成されている。したがって、例えば商品となったセキュアLSI1はスルー部52を介して平文プログラムを取り込んだとしても、これを実行することはできない。なお、平文プログラムを実行するときは、セキュアLSI1は遅延部53を介してプログラムをその内部に入力する。
Here, except for an administrator mode to be described later, a program input via the through unit 52 is not executed inside the
ブートROM60は、セキュアLSI1の起動動作を制御するブートプログラムを格納している。HASH演算部70は、セキュアLSI1に読み込まれたプログラムについてその正当性を検証するために、HASH値を演算する。
The
また、外部メモリ100には、プログラムやコンテンツが格納されている。外部ツール110には、セキュアLSI1の最初の起動時にセキュアメモリ10に格納する各種の初期値が格納されている。この初期値の種類は、設定される動作モードに応じて、異なったものになる。
The
図2は図1のセキュアLSI1を用いた開発および製品化の全体の流れを表す図である。図2に示すように、セキュアLSI1は、アドミニストレータモード(モードID:00)、鍵生成モード(モードID:01)、開発モード(モードID:10)および商品動作モード(モードID:11)の4種類の動作モードで、動作する。
FIG. 2 is a diagram showing the overall flow of development and commercialization using the
まず、アドミニストレータモードに設定されたセキュアLSI1は、管理者用LSIとして、動作する。管理者用LSIでは、鍵生成プログラムが開発され、また、その鍵生成プログラムが任意の鍵生成鍵を用いて暗号化される。
First, the
鍵生成モードに設定されたセキュアLSI1は、鍵生成用LSIとして、動作する。鍵生成用LSIでは、管理者用LSIにおいて生成された、暗号化された鍵生成プログラムが実装され、この鍵生成プログラムを実行することによって、各種の鍵が生成される。
The
開発モードに設定されたセキュアLSI1は、開発用LSIとして、動作する。開発用LSIでは、実際の製品で実行されるアプリケーション用プログラムが開発される。そして、このアプリケーション用プログラムが、プログラム共有鍵を用いて暗号化される。
The
商品動作モードに設定されたセキュアLSI1は、実際の商品LSIとして、動作する。商品LSIでは、開発用LSIにおいて生成された、プログラム共有鍵で暗号化されたアプリケーション用プログラムが実装され、その内部で、プログラム固有鍵で暗号化されたアプリケーション用プログラムに、変換される。なお、この変換処理は、開発用LSIでも、アプリケーション用プログラムのデバッグのために、実行可能になっている。
The
以下、各モードにおけるセキュアLSI1の動作の詳細について、フローチャートおよびデータフローを参照して、説明する。セキュアLSI1は、ブートROM60に格納されたブートプログラムを実行することによって、以下のような動作を行う。
Hereinafter, details of the operation of the
図3はブートプログラムの全体的な処理の流れを示すフローチャートである。セキュアLSI1に電源が投入されると、ブートROM60に格納されたブートプログラムがCPU65によって実行される。図3に示すように、まず、各ハードウェアを初期化する(SZ0)。そして、外部ツール110からさまざまな初期値を読み込み、セキュアメモリ10に設定する(SZ1)。
FIG. 3 is a flowchart showing the overall processing flow of the boot program. When the
図22は初期値設定処理SZ1のフローチャートである。まず、ジャンパー44で、セキュアメモリ10がLSI内に実装されているか否かの判定を行う。次に、書き換え不可領域書き込みフラグ12が“済”であるか否かを判定し、“済”であるときはすでにセキュアメモリ10に初期値が設定されているので、処理SZ1を終了する。書き換え不可領域書き込みフラグ12が“可”であるときは、セキュアメモリ10に初期値を書き込んでいく。モードIDに加えて、暗号化されたプログラム固有鍵、アドレス管理情報、データ固有鍵をセキュアメモリ10の書き換え不可領域11に書き込む。なお、最初の判定の結果、セキュアメモリ10がLSIの外部にあると判定されたときは、モードIDは商品動作モードを表す値に上書きされる。これにより、セキュアメモリ10がLSIパッケージ外にあるような不正な製品は、商品動作モードでしか動作できない。
FIG. 22 is a flowchart of the initial value setting process SZ1. First, the jumper 44 determines whether or not the
次に、書き込み不可領域書き込みフラグ12を“済”にセットする。これによって、以後の書き換え不可領域11の書き換えはできなくなる。さらに、通常領域13,14に暗号種別識別子および実装モードフラグを書き込む。そして、モードIDがアドミニストレータモード以外のモードを示すときは、これらに加えて、暗号化された共有鍵/鍵生成鍵も通常領域13,14に書き込む。
Next, the unwritable area write
その後、前処理SZ2を実行する。図4は前処理SZ2のデータフローである。ここでは、セキュアメモリ10の書き込み不可領域11に設定されたモードIDが、鍵生成・更新シーケンサ30のモードID格納レジスタ31と、モードシーケンサ40のモードID格納レジスタ41とに設定される。また、セキュアメモリ10の第1の通常領域13に設定された暗号種別識別子が、鍵生成・更新シーケンサ30の暗号種別識別子格納レジスタ32と、モードシーケンサ40の暗号種別識別子格納レジスタ42とに設定される。さらに、セキュアメモリ10の書き換え不可領域11に格納されたアドレス管理情報が、MEMC80の暗号アドレス区分格納レジスタ81に設定される。ここまでの動作は、図2における初期値設定フェーズPA0,PB0,PC0,PD0に対応している。
Thereafter, pre-processing SZ2 is executed. FIG. 4 is a data flow of the preprocessing SZ2. Here, the mode ID set in the
その後は、モードIDの値に応じて、それぞれのモードにおける動作を行う(SZ3)。 Thereafter, the operation in each mode is performed according to the value of the mode ID (SZ3).
<アドミニストレータモード>
モードIDが「00」のとき、セキュアLSI1はアドミニストレータモードになり、ジャンパー43の値に応じて(SA0)、平文プログラム実行処理SA1、またはプログラム暗号化処理SA2を実行する。
<Administrator mode>
When the mode ID is “00”, the
鍵生成プログラム開発フェーズPA1では、平文プログラム実行処理SA1が行われ、ここで、鍵生成プログラムが生成される。この鍵生成プログラムは外部メモリ100に格納される。
In the key generation program development phase PA1, a plain text program execution process SA1 is performed, where a key generation program is generated. This key generation program is stored in the
鍵生成プログラム暗号化フェーズPA2では、まず、図5のデータフローのように、鍵生成プログラムを実行させることによって、与えられた任意の鍵生成鍵を暗号化する。すなわち、外部ホストI/F50では、モードシーケンサ40によって、プログラム処理部51のスルー部52が有効化される。そして、外部メモリ100に格納された鍵生成プログラムが、スルー部52を介してCPU65に与えられ、実行される。この鍵生成プログラムを実行することによって、外部メモリ100に格納された鍵生成鍵が、秘密鍵演算処理部20によって、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて暗号化される。
In the key generation program encryption phase PA2, first, the given key generation key is encrypted by executing the key generation program as shown in the data flow of FIG. That is, in the external host I /
なお、本実施形態では、鍵の暗号化は、第1中間鍵と第2中間鍵とを用いて行う。すなわち、暗号化の結果、平文鍵(ここでは鍵生成鍵)を第1中間鍵(ここではMK1)で暗号化した暗号化鍵(ここではEnc(鍵生成鍵、MK1))と、第1中間鍵を第2中間鍵(ここではCK)で暗号化した暗号化第1中間鍵(ここではEnc(MK1,CK))とが得られる。もちろん、本発明は、このような鍵の暗号化手法に限定されるものではない。 In the present embodiment, the encryption of the key is performed using the first intermediate key and the second intermediate key. That is, as a result of encryption, an encryption key (here, Enc (key generation key, MK1)) obtained by encrypting a plaintext key (here, key generation key) with the first intermediate key (here, MK1), and the first intermediate key An encrypted first intermediate key (here, Enc (MK1, CK)) obtained by encrypting the key with the second intermediate key (here, CK) is obtained. Of course, the present invention is not limited to such a key encryption method.
その後、プログラム暗号化処理SA2が実行される。図6はこのプログラム暗号化処理SA2のフローチャート、図7はデータフローである。まず、外部メモリ100に格納されている、暗号化された鍵生成鍵Enc(鍵生成鍵,MK1),Enc(MK1,CK)を、外部ホストI/F50のスルー部52を介して、秘密鍵演算処理部20に設定する(SA21)。そして、この暗号化された鍵生成鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、鍵生成鍵を得る(SA22)。その後、外部メモリ100に格納されていた平文の鍵生成プログラムを取り込み、これをSA22で復号した鍵生成鍵を用いて暗号化し、外部メモリ100に書き込む(SA23)。さらに、外部メモリ100の平文の鍵生成プログラムに対して、HASH演算部70によってHASH演算を行い、算出したHASH値を外部メモリ100に書き込む(SA24)。
Thereafter, the program encryption process SA2 is executed. FIG. 6 is a flowchart of the program encryption process SA2, and FIG. 7 is a data flow. First, the encrypted key generation key Enc (key generation key, MK1) and Enc (MK1, CK) stored in the
このような動作によって、アドミニストレータモードでは、鍵生成鍵で暗号された鍵生成プログラムEnc(鍵生成プログラム,鍵生成鍵)と、暗号化された鍵生成鍵Enc(鍵生成鍵,MK1),Enc(MK1,CK)と、鍵生成プログラムのHASH値とが、生成される。 By such an operation, in the administrator mode, the key generation program Enc (key generation program, key generation key) encrypted with the key generation key and the encrypted key generation key Enc (key generation key, MK1), Enc ( MK1, CK) and the HASH value of the key generation program are generated.
<鍵生成モード>
モードIDが「01」のとき、セキュアLSI1は鍵生成モードになり、実装モードフラグの値に応じて(SB0)、キージェネレータ製造処理SB1、または鍵管理・発行処理SB2を実行する。
<Key generation mode>
When the mode ID is “01”, the
キージェネレータ製造フェーズPB1では、キージェネレータ製造処理SB1が実行される。図8はこの処理SB1のフローチャート、図9および図10はデータフローである。ここでは、モードIDと実装モードフラグの値によって、外部ホストI/F部50が有するプログラム処理部51においてスルー部52が有効に設定されている。
In the key generator manufacturing phase PB1, the key generator manufacturing process SB1 is executed. FIG. 8 is a flowchart of the process SB1, and FIGS. 9 and 10 are data flows. Here, the through unit 52 is set to be effective in the program processing unit 51 of the external host I /
まず、セキュアメモリ10の書き込み不可領域11に格納されている、暗号化されたプログラム固有鍵Enc(プログラム固有鍵、MK0),Enc(MK0,CK)を秘密鍵演算処理部20の暗号鍵格納レジスタに設定する(SB11)。そして、この暗号化されたプログラム固有鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、プログラム固有鍵を得る(SB12)。次に、初期値設定フェーズPB0において設定された,暗号化された鍵生成鍵Enc(鍵生成鍵,MK1),Enc(MK1,CK)を秘密鍵演算処理部20の暗号鍵格納レジスタに設定し(SB13)、この暗号化された鍵生成鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、鍵生成鍵を得る(SB14)。
First, the encrypted program unique key Enc (program unique key, MK0) and Enc (MK0, CK) stored in the
その後、外部メモリ100に格納されていた,鍵生成鍵で暗号化された鍵生成プログラムEnc(鍵生成プログラム,鍵生成鍵)を、外部ホストI/F50が有するプログラム処理部51のスルー部52を介して、秘密鍵演算処理部20に取り込む(SB15)。そして、取り込んだ暗号化された鍵生成プログラムを、鍵生成鍵で復号した後、プログラム固有鍵で暗号化し、暗号化された鍵生成プログラムEnc(鍵生成プログラム,プログラム固有鍵)を得る(SB16)。そして、外部メモリ100に書き込む(SB17)。次に、外部メモリ100に格納されていたHASH値を、スルー部52を介して、セキュアメモリ10の通常領域13に設定する(SB18)。
Thereafter, the key generation program Enc (key generation program, key generation key) encrypted with the key generation key stored in the
また、セキュアメモリ10の通常領域13に格納された実装モードフラグの値を、CPU65によって“OFF”に設定する(SB19)。そして、セキュアメモリ10の通常領域13に格納されている,暗号化された鍵生成鍵Enc(鍵生成鍵,MK1),Enc(MK1,CK)を削除する(SB1A)とともに、外部メモリ100に格納されていた,暗号化された鍵生成プログラムEnc(鍵生成鍵プログラム,鍵生成鍵)およびHASH値を削除する(SB1B)。
Further, the value of the mounting mode flag stored in the
鍵管理・発行フェーズPB2では、鍵管理・発行処理SB2が実行される。図11はこの処理SB2のフローチャート、図12および図13はデータフローである。ここでは、モードIDと実装モードフラグの値によって、外部ホストI/F部50が有するプログラム復号用暗号エンジン54が有効に設定されている。 まず、セキュアメモリ10の書き込み不可領域11に格納されている、暗号化されたプログラム固有鍵Enc(プログラム固有鍵、MK0),Enc(MK0,CK)を秘密鍵演算処理部20の暗号鍵格納レジスタに設定する(SB21)。そして、この暗号化されたプログラム固有鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、プログラム固有鍵を得る(SB22)。得たプログラム固有鍵は、外部ホストI/F50のプログラム復号用暗号エンジン54のプログラム固有鍵格納レジスタに設定される(SB23)。
In the key management / issue phase PB2, key management / issue processing SB2 is executed. FIG. 11 is a flowchart of the process SB2, and FIGS. 12 and 13 are data flows. Here, the
その後、外部メモリ100に格納されていた,プログラム固有鍵で暗号化された鍵生成プログラムEnc(鍵生成プログラム,プログラム固有鍵)を、外部ホストI/F50が有するプログラム処理部51のプログラム復号用暗号エンジン54を介して復号し、HASH演算部70に取り込み、HASH値を演算する(SB24)。そして、この演算したHASH値と、セキュアメモリ10の通常領域13に格納されていたHASH値とを比較し、鍵生成プログラムが改ざんされていないかどうかをチェックする(SB25)。HASH値が一致していたとき(SB26でNo)、外部メモリ100に格納されていた鍵生成プログラムEnc(鍵生成プログラム,プログラム固有鍵)に処理を遷移し、鍵の生成を実行する(SB27)。一方、HASH値が一致していないとき(SB26でYes)は、何らかの不正が行われたものと推定して、不正アクセス時制御による処理を実行する(SB28)。
After that, the key decryption program Enc (key generation program, program unique key) encrypted in the
鍵生成モードにおいては、スルー部52を有効にしてプログラムを入力する、またはプログラム復号用暗号エンジン54を有効にして暗号化されたプログラムを復号して入力するのみであるので、平文プログラムを実行することができないように、セキュアLSI1の動作が制限される。
In the key generation mode, the plain text program is executed because only the program is input with the through unit 52 enabled or the encrypted program encrypted with the program
<開発モード>
モードIDが「10」のとき、セキュアLSI1は開発モードになり、ジャンパー43の値に応じて(SC0)、プログラム暗号化処理SC1、平文プログラム実行処理SC2、プログラム実装処理SC3、または暗号化プログラム実行処理SC4を実行する。
<Development mode>
When the mode ID is “10”, the
アプリケーションプログラム開発フェーズPC1では、遅延部53を有効として、平文プログラム実行処理SC2が行われ、アプリケーションプログラムが開発される。開発されたアプリケーションプログラムは、外部メモリ100に格納される。
In the application program development phase PC1, the plaintext program execution process SC2 is performed with the
アプリケーションプログラム暗号化フェーズPC2では、プログラム暗号化処理SC1が実行される。図14はこのプログラム暗号化処理SC1のフローチャート、図15はデータフローである。まず、セキュアメモリ10の通常領域14に格納された共有鍵鍵情報としての暗号化されたプログラム共有鍵Enc(プログラム共有鍵,MK2),Enc(MK2,CK)を秘密鍵演算処理部20に設定する(SC11)。そして、この暗号化されたプログラム共有鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、プログラム共有鍵を得る(SC12)。その後、外部メモリ100に格納された平文のアプリケーションプログラムを取り込み、これをSC12で復号したプログラム共有鍵を用いて暗号化し、外部メモリ100に書き込む(SC13)。さらに、外部メモリ100の平文のアプリケーションプログラムに対して、HASH演算部70によってHASH演算を行い、算出したHASH値を外部メモリ100に書き込む(SC14)。
In the application program encryption phase PC2, program encryption processing SC1 is executed. FIG. 14 is a flowchart of the program encryption process SC1, and FIG. 15 is a data flow. First, the encrypted program shared key Enc (program shared key, MK2), Enc (MK2, CK) as shared key key information stored in the
このような動作によって、プログラム共有鍵で暗号されたアプリケーションプログラムEnc(アプリケーションプログラム,プログラム共有鍵)と、アプリケーションプログラムのHASH値とが、生成される。 By such an operation, the application program Enc (application program, program shared key) encrypted with the program shared key and the HASH value of the application program are generated.
次に、アプリケーションプログラム実装フェーズPC3では、プログラム実装処理SC3が実行され、アプリケーションプログラムデバッグフェーズPC4では、暗号化プログラム実行処理SC4が実行される。これらの処理は、商品動作モードにおける各処理SD1,SD2と同様であるので、詳細は後述する。 Next, in the application program mounting phase PC3, the program mounting process SC3 is executed, and in the application program debugging phase PC4, the encrypted program execution process SC4 is executed. Since these processes are the same as the processes SD1 and SD2 in the product operation mode, details will be described later.
このように、書き換え不可領域11を含むセキュアメモリ10を有し、高い秘匿性を持つLSI1を、その動作モードを実装モードから開発モードに変えてプログラム開発環境として用いることによって、プログラム開発環境におけるセキュリティを、従来よりも高めることができる。
As described above, the
また、セキュアメモリ10に格納された共有鍵鍵情報としての暗号化された共有鍵から生共有鍵が復号され、そしてこの生共有鍵を用いて平文プログラムの暗号化が実行されるので、プログラム開発者に生共有鍵を知られることなく、平文プログラムの暗号化を実行することができる。
In addition, since the raw shared key is decrypted from the encrypted shared key as the shared key key information stored in the
また、生共有鍵の復号と、この生共有鍵を用いた平文プログラムの暗号化とが、外部からの指示ではなく、ブートプログラムによって実行されるので、平文プログラムの暗号化を、プログラム開発者に生共有鍵を知られることを確実に防止しつつ、実行することができる。 In addition, since decryption of the raw shared key and encryption of the plaintext program using this raw shared key are performed by the boot program, not by an external instruction, the plaintext program is encrypted to the program developer. It can be executed while reliably preventing the raw shared key from being known.
<商品動作モード>
モードIDが「11」のとき、セキュアLSI1は商品動作モードになり、実装モードフラグの値に応じて(SD0)、プログラム実装処理SD1、または通常ブート処理SD2を実行する。
<Product operation mode>
When the mode ID is “11”, the
商品実装フェーズPD1では、プログラム実装処理SD1が実行される。図16はこの処理SD1のフローチャート、図17および図18はデータフローである。ここでは、モードIDと実装モードフラグの値によって、外部ホストI/F部50が有するプログラム処理部51においてスルー部52が有効に設定されている。
In the product mounting phase PD1, program mounting processing SD1 is executed. FIG. 16 is a flowchart of the process SD1, and FIGS. 17 and 18 are data flows. Here, the through unit 52 is set to be effective in the program processing unit 51 of the external host I /
まず、セキュアメモリ10の書き込み不可領域11に格納された、固有鍵鍵情報としての暗号化されたプログラム固有鍵(プログラム固有鍵、MK0),Enc(MK0,CK)を秘密鍵演算処理部20の暗号鍵格納レジスタに設定する(SD11)。そして、この暗号化されたプログラム固有鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、プログラム固有鍵を得る(SD12)。次に、初期値設定フェーズPD0において設定された,共有鍵鍵情報としての暗号化されたプログラム共有鍵Enc(プログラム共有鍵,MK2),Enc(MK2,CK)を秘密鍵演算処理部20の暗号鍵格納レジスタに設定し(SD13)、この暗号化されたプログラム共有鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、プログラム共有鍵を得る(SD14)。
First, the encrypted program unique key (program unique key, MK0) and Enc (MK0, CK) as unique key key information stored in the
その後、外部メモリ100に格納されていた,プログラム共有鍵で暗号化されたアプリケーションプログラムEnc(アプリケーションプログラム,プログラム共有鍵)を、外部ホストI/F50が有するプログラム処理部51のスルー部52を介して、秘密鍵演算処理部20に取り込む(SD15)。そして、取り込んだ暗号化されたアプリケーションプログラムを、プログラム共有鍵で復号した後、プログラム固有鍵で暗号化し、暗号化されたアプリケーションプログラムEnc(アプリケーションプログラム,プログラム固有鍵)を得る(SD16)。そして、外部メモリ100に書き込む(SD17)。次に、外部メモリ100に格納されていたHASH値を、スルー部52を介して、セキュアメモリ10の通常領域13に設定する(SD18)。
Thereafter, the application program Enc (application program, program shared key) encrypted with the program shared key stored in the
また、セキュアメモリ10の通常領域13に格納された実装モードフラグの値を、CPU65によって“OFF”に設定する(SD19)。そして、セキュアメモリ10の通常領域13に格納されている,暗号化されたプログラム共有鍵Enc(プログラム共有鍵,MK1),Enc(MK1,CK)を削除する(SD1A)とともに、外部メモリ100に格納されていた,暗号化されたアプリケーションプログラムEnc(アプリケーションプログラム,プログラム共有鍵)およびHASH値を削除する(SD1B)。
Further, the value of the mounting mode flag stored in the
すなわち、共有鍵暗号化プログラムが、暗号化する鍵が共有鍵から固有鍵に変換されて、システムに実装されることになる。このため、ユーザの持つ各製品では、互いに異なる固有鍵によって暗号化されたプログラムが実装されることになり、秘匿性が向上する。また、万一、暗号を破られた場合でも、被害を受ける製品の数が限定されることになり、従来よりもセキュリティが高まる。 That is, the key to be encrypted by the shared key encryption program is converted from the shared key to the unique key and installed in the system. For this reason, in each product held by the user, a program encrypted with a different unique key is mounted, and the secrecy is improved. In addition, even if the encryption is broken, the number of products that are damaged is limited, and the security is higher than before.
なお、固有鍵の生成は、固有IDを基にして行ってもよい。すなわち、セキュアLSI1毎に、個別の固有IDを固有鍵鍵情報としてセキュアメモリ10に実装しておき、この商品実装フェーズPD1において、ブートプログラムによって、実装された固有IDから固有鍵を生成するようにしてもよい。
The unique key may be generated based on the unique ID. That is, for each
商品動作フェーズPD2では、通常ブート処理SD2が実行される。図19はこの処理SD2のフローチャート、図20および図21はデータフローである。ここでは、モードIDと実装モードフラグの値によって、外部ホストI/F部50が有するプログラム復号用暗号エンジン54が有効に設定されている。
In the product operation phase PD2, the normal boot process SD2 is executed. FIG. 19 is a flowchart of the process SD2, and FIGS. 20 and 21 are data flows. Here, the
まず、セキュアメモリ10の書き込み不可領域11に格納されている、暗号化されたプログラム固有鍵Enc(プログラム固有鍵、MK0),Enc(MK0,CK)を秘密鍵演算処理部20の暗号鍵格納レジスタに設定する(SD21)。そして、この暗号化されたプログラム固有鍵を、鍵生成・更新シーケンサ30に実装されたプログラム暗号種を用いて復号し、プログラム固有鍵を得る(SD22)。得たプログラム固有鍵は、外部ホストI/F50のプログラム復号用暗号エンジン54のプログラム固有鍵格納レジスタに設定する(SD23)。
First, the encrypted program unique key Enc (program unique key, MK0) and Enc (MK0, CK) stored in the
その後、セキュアメモリ10の書き込み不可領域11に格納されているデータ固有IDを秘密鍵演算処理部20の固有ID格納レジスタに設定する(SD24)。また、CPU65によって乱数を生成し、秘密鍵演算処理部20の乱数格納レジスタに設定する(SD25)。そして、秘密鍵演算処理部20によって、データ固有IDと乱数からデータ固有鍵を生成する(SD26)。
Thereafter, the data unique ID stored in the
その後、外部メモリ100に格納されていた,プログラム固有鍵で暗号化されたアプリケーションプログラムEnc(アプリケーションプログラム,プログラム固有鍵)を、外部ホストI/F50が有するプログラム処理部51のプログラム復号用暗号エンジン54を介して復号し、HASH演算部70に取り込み、HASH値を演算する(SD27)。そして、この演算したHASH値と、セキュアメモリ10の通常領域13に格納されていたHASH値とを比較し、アプリケーションプログラムが改ざんされていないかどうかをチェックする(SD28)。HASH値が一致していたとき(SD29でNo)、外部メモリ100に格納されていたアプリケーションプログラムEnc(アプリケーションプログラム,プログラム固有鍵)に処理を遷移し、アプリケーションを実行する(SD2A)。一方、HASH値が一致していないとき(SD29でYes)は、何らかの不正が行われたものと推定して、不正アクセス時制御による処理を実行する(SD2B)。
After that, the application
商品動作モードにおいては、スルー部52を有効にしてプログラムを入力する、またはプログラム復号用暗号エンジン54を有効にして暗号化されたプログラムを復号して入力するのみであるので、平文プログラムを実行することができないように、セキュアLSI1の動作が制限される。
In the merchandise operation mode, the plain text program is executed because only the program is input with the through section 52 enabled or the encrypted program encrypted with the program
なお、開発モードおよび商品動作モードにおいては、外部から、秘密鍵演算処理部20を用いて鍵を生成する処理を実行させようとしても、鍵生成・更新シーケンサ30によって判別されて実行されない。すなわち、鍵生成・更新シーケンサ30は、開発モードおよび商品動作モードにおいては、起動時以外にプログラム暗号種を用いることができないように動作を制限するので、鍵を生成する処理は実行することができない。
Note that, in the development mode and the product operation mode, even if a process for generating a key using the secret key
なお、本実施形態では、外部メモリ100にプログラムやデータが格納されており、外部ツール110に、セキュアメモリ10に実装される初期値が格納されているが、これらはどちらに格納されていてもかまわない。例えば、プログラムやデータが外部ツール110から読み込まれ、再暗号化されたとしても何ら問題はない。
In the present embodiment, programs and data are stored in the
なお、本実施形態では、ブートプログラムによって、各処理を実行するものとしたが、本発明はこれに限られるものではなく、処理の一部または全部を、他の手段によって実行してもかまわない。ただし、外部からの指示ではなく、ブートプログラムによって処理を実行させることによって、セキュリティをより高めることができる。 In this embodiment, each process is executed by a boot program. However, the present invention is not limited to this, and a part or all of the process may be executed by other means. . However, security can be further enhanced by executing processing by a boot program instead of an instruction from the outside.
10 セキュアメモリ
11 書き換え不可領域
12 書き換え不可領域書き込みフラグ
20 秘密鍵演算処理部
30 鍵生成・更新シーケンサ
31 モードID格納レジスタ
32 暗号種別識別子格納レジスタ
33 プログラム暗号種
40 モードシーケンサ
41 モードID格納レジスタ
42 暗号種別識別子格納レジスタ
50 外部ホストI/F
51 プログラム処理部
52 スルー部
53 遅延部
54 プログラム復号用暗号エンジン
55 データ処理部
56 スルー部
57 コンテンツ暗号・復号用暗号エンジン
60 ブートROM
70 HASH演算部
100 外部メモリ
10
51 Program Processing Unit 52 Through
70
Claims (9)
前記暗号化プログラムが動作するLSIと構成が共通のLSIと、
平文プログラムを格納する外部メモリとを備え、
前記LSIは、
生共有鍵に係る共有鍵鍵情報を格納したセキュアメモリを備え、かつ、
前記セキュアメモリに格納された共有鍵鍵情報から、生共有鍵を得る第1のステップと、
前記外部メモリから入力された平文プログラムを、前記生共有鍵を用いて暗号化する第2のステップとが実行可能に構成されている
ことを特徴とするプログラム開発支援装置。 A program development support apparatus for supporting development of an encryption program,
An LSI having the same configuration as the LSI on which the encryption program operates;
An external memory for storing plaintext programs,
The LSI is
A secure memory storing shared key information related to the raw shared key, and
A first step of obtaining a raw shared key from the shared key key information stored in the secure memory;
A program development support apparatus configured to be capable of executing a second step of encrypting a plaintext program input from the external memory using the raw shared key.
LSIと、平文プログラムを格納する外部メモリとを備え、
前記LSIは、
生共有鍵に係る共有鍵鍵情報を格納したセキュアメモリと、
ブートプログラムを格納するブートROMとを備え、かつ、
前記ブートROMに格納されたブートプログラムを実行することによって、
前記セキュアメモリに格納された共有鍵鍵情報から、生共有鍵を得る第1のステップと、
前記外部メモリから入力された平文プログラムを、前記生共有鍵を用いて暗号化する第2のステップとを実行する
ことを特徴とするプログラム開発支援装置。 A program development support apparatus for supporting development of an encryption program,
An LSI and an external memory for storing a plaintext program;
The LSI is
A secure memory storing shared key information related to the raw shared key;
A boot ROM for storing a boot program, and
By executing a boot program stored in the boot ROM,
A first step of obtaining a raw shared key from the shared key key information stored in the secure memory;
And a second step of encrypting a plaintext program input from the external memory using the raw shared key.
前記共有鍵鍵情報は、生共有鍵を生第1中間鍵で暗号化した暗号化共有鍵と、前記生第1中間鍵を生第2中間鍵で暗号化した暗号化第1中間鍵とを含むものであり、
前記第1のステップは、前記暗号化共有鍵および暗号化第1中間鍵と、プログラム暗号種とを用いて、前記生共有鍵を復号するものである
ことを特徴とするプログラム開発支援装置。 In claim 1 or 2,
The shared key key information includes an encrypted shared key obtained by encrypting a raw shared key with a raw first intermediate key, and an encrypted first intermediate key obtained by encrypting the raw first intermediate key with a raw second intermediate key. Including
The program development support apparatus, wherein the first step is to decrypt the raw shared key using the encrypted shared key, the encrypted first intermediate key, and a program encryption type.
前記セキュアメモリに、生共有鍵に係る共有鍵鍵情報と、生固有鍵に係る固有鍵鍵情報とを格納する初期値設定処理と、
前記LSIにおいて、前記セキュアメモリに格納された共有鍵鍵情報から、生共有鍵を得る第1のステップと、
前記LSIにおいて、前記外部メモリから与えられた共有鍵暗号化プログラムを、前記第1のステップで得られた生共有鍵を用いて、復号する第2のステップと、
前記LSIにおいて、前記セキュアメモリに格納された固有鍵鍵情報から、生固有鍵を得る第3のステップと、
前記LSIにおいて、前記第2のステップで得られた平文プログラムを、前記第3のステップで得られた生固有鍵を用いて、暗号化する第4のステップとを備え、
前記第4のステップで得られた固有鍵暗号化プログラムを、前記外部メモリに実装する
ことを特徴とするプログラム実装方法。 A method of mounting an encryption program in a key mounting system having an LSI having a secure memory and an external memory,
An initial value setting process for storing, in the secure memory, shared key information relating to a raw shared key and unique key key information relating to a raw unique key;
A first step of obtaining a raw shared key from the shared key key information stored in the secure memory in the LSI;
A second step of decrypting the shared key encryption program given from the external memory using the raw shared key obtained in the first step in the LSI;
In the LSI, a third step of obtaining a raw unique key from unique key key information stored in the secure memory;
A fourth step of encrypting the plaintext program obtained in the second step using the raw unique key obtained in the third step in the LSI;
A program mounting method comprising mounting the unique key encryption program obtained in the fourth step in the external memory.
前記LSIは、ブートプログラムを格納するブートROMを備え、
前記ブートROMに格納されたブートプログラムを前記LSIに実行させることによって、前記第1〜第4のステップを実行する
ことを特徴とするプログラム実装方法。 In claim 4,
The LSI includes a boot ROM for storing a boot program,
A program mounting method, wherein the first to fourth steps are executed by causing the LSI to execute a boot program stored in the boot ROM.
前記固有鍵鍵情報は、前記セキュアメモリの書き換え不可領域に、格納されている
ことを特徴とするプログラム実装方法。 In claim 4,
The program mounting method, wherein the unique key key information is stored in a non-rewritable area of the secure memory.
前記共有鍵鍵情報は、生共有鍵を生第1中間鍵で暗号化した暗号化共有鍵と、前記生第1中間鍵を生第2中間鍵で暗号化した暗号化第1中間鍵とを含むものであり、
前記第1のステップは、前記暗号化共有鍵および暗号化第1中間鍵と、プログラム暗号種とを用いて、前記生共有鍵を復号するものである
ことを特徴とするプログラム実装方法。 In claim 4,
The shared key key information includes an encrypted shared key obtained by encrypting a raw shared key with a raw first intermediate key, and an encrypted first intermediate key obtained by encrypting the raw first intermediate key with a raw second intermediate key. Including
The program mounting method characterized in that the first step is to decrypt the raw shared key using the encrypted shared key, the encrypted first intermediate key, and a program encryption type.
前記固有鍵鍵情報は、生固有鍵を生第1中間鍵で暗号化した暗号化固有鍵と、前記生第1中間鍵を生第2中間鍵で暗号化した暗号化第1中間鍵とを含むものであり、
前記第3のステップは、前記暗号化固有鍵および暗号化第1中間鍵と、プログラム暗号種とを用いて、前記生固有鍵を復号するものである
ことを特徴とするプログラム実装方法。 In claim 4,
The unique key key information includes an encrypted unique key obtained by encrypting a raw unique key with a raw first intermediate key, and an encrypted first intermediate key obtained by encrypting the raw first intermediate key with a raw second intermediate key. Including
The program mounting method characterized in that the third step is to decrypt the raw unique key using the encrypted unique key, the encrypted first intermediate key, and the program encryption type.
前記固有鍵鍵情報は、当該LSIに固有の固有IDである
ことを特徴とするプログラム実装方法。 In claim 4,
The program mounting method, wherein the unique key / key information is a unique ID unique to the LSI.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007121815A JP2007249996A (en) | 2007-05-02 | 2007-05-02 | Program development support apparatus and program implementation method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007121815A JP2007249996A (en) | 2007-05-02 | 2007-05-02 | Program development support apparatus and program implementation method |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002215096A Division JP2004054834A (en) | 2002-07-24 | 2002-07-24 | Program development method, program development support device, and program implementation method |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009112759A Division JP2009169989A (en) | 2009-05-07 | 2009-05-07 | Program mounting method and information processing apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2007249996A true JP2007249996A (en) | 2007-09-27 |
Family
ID=38594130
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007121815A Pending JP2007249996A (en) | 2007-05-02 | 2007-05-02 | Program development support apparatus and program implementation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2007249996A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9042553B2 (en) | 2011-03-03 | 2015-05-26 | Kabushiki Kaisha Toshiba | Communicating device and communicating method |
-
2007
- 2007-05-02 JP JP2007121815A patent/JP2007249996A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9042553B2 (en) | 2011-03-03 | 2015-05-26 | Kabushiki Kaisha Toshiba | Communicating device and communicating method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4099039B2 (en) | Program update method | |
| JP3881942B2 (en) | Semiconductor device having encryption unit | |
| US8190912B2 (en) | Program development method, program development supporting system, and program installation method | |
| KR101735023B1 (en) | Method and apparatus including architecture for protecting sensitive code and data | |
| CN102609665B (en) | Method and device for signing user program and method and device for verifying signature of user program | |
| JP2017504267A (en) | Key extraction during secure boot | |
| US20170046280A1 (en) | Data processing device and method for protecting a data processing device against attacks | |
| EP2270707B1 (en) | Loading secure code into a memory | |
| JP2010033603A (en) | Information processor | |
| JP2007249996A (en) | Program development support apparatus and program implementation method | |
| JP2009169989A (en) | Program mounting method and information processing apparatus | |
| CN111291389B (en) | Method and system for protecting full life cycle of computer core program | |
| JP4336690B2 (en) | Semiconductor device having external interface | |
| JP4580024B2 (en) | Content playback method | |
| JP4676547B2 (en) | Semiconductor device and boot method thereof | |
| JP4580030B2 (en) | Secure device | |
| JP2007272923A5 (en) | ||
| JP2007272923A (en) | server | |
| JP2010033613A (en) | Information processor | |
| JP2004280678A (en) | Data processor and data processing method | |
| JP2004103027A (en) | Game controller | |
| JP2007013835A (en) | Encrypted data decryption apparatus and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090303 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090507 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090915 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091106 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100302 |