JP2003032248A - Cryptographic method, decoding method, and electronic device - Google Patents

Cryptographic method, decoding method, and electronic device

Info

Publication number
JP2003032248A
JP2003032248A JP2001218218A JP2001218218A JP2003032248A JP 2003032248 A JP2003032248 A JP 2003032248A JP 2001218218 A JP2001218218 A JP 2001218218A JP 2001218218 A JP2001218218 A JP 2001218218A JP 2003032248 A JP2003032248 A JP 2003032248A
Authority
JP
Japan
Prior art keywords
decryption
encryption
data
encrypted
header
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001218218A
Other languages
Japanese (ja)
Other versions
JP4475449B2 (en
Inventor
Kazuhisa Higuchi
和久 樋口
Shinji Uetsuki
伸次 植月
Masato Fukaya
真人 深谷
Akio Kikuchi
昭夫 菊池
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.)
PHONE EAST CO Ltd J
SoftBank Corp
Original Assignee
PHONE EAST CO Ltd J
J Phone East 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 PHONE EAST CO Ltd J, J Phone East Co Ltd filed Critical PHONE EAST CO Ltd J
Priority to JP2001218218A priority Critical patent/JP4475449B2/en
Publication of JP2003032248A publication Critical patent/JP2003032248A/en
Application granted granted Critical
Publication of JP4475449B2 publication Critical patent/JP4475449B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To verify whether or not the decoding has been carried out correctly, with small processing power in a short time. SOLUTION: When cryptographic process is started, a previously set decoding certification code is added to the original data 30 and ciphered. A cryptographic header 41 is added to the cryptographic data 42 and stored as a memory data 34 in a memory card. The cryptographic header 41 is the information used for indicating the used cryptographic algorithm. When the data is decoded, whether or not the decoding is correct can be determined, by certifying only the decoding certification code.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、移動機に適用する
ことのできる暗号化方法および復号化方法、ならびに、
電子機器に関する。
TECHNICAL FIELD The present invention relates to an encryption method and a decryption method applicable to a mobile device, and
Regarding electronic devices.

【0002】[0002]

【従来の技術】アナログセルラーシステムやデジタルセ
ルラーシステムとして知られているPDC(Personal D
igital Cellular telecommunication system)等の携帯
電話システムや、簡易型携帯電話システム(PHS:Pe
rsonal Handyphone System)において、ユーザが携帯し
ている携帯電話機では、着信があった際に着信をユーザ
に報知するための着信メロディや、表示器に表示される
背景画像の画像データをダウンロードすることができる
ようになってきている。また、ゲーム等のJavaアプ
リケーションをダウンロードすることができる機種も登
場している。
2. Description of the Related Art PDC (Personal D) which is known as an analog cellular system or a digital cellular system.
mobile phone systems such as igital Cellular telecommunication system, and simple mobile phone systems (PHS: Pe
In the rsonal Handyphone System), the mobile phone carried by the user can download the ringing melody for notifying the user of the incoming call when there is an incoming call and the image data of the background image displayed on the display. It is becoming possible. In addition, models that can download Java applications such as games have also appeared.

【0003】[0003]

【発明が解決しようとする課題】携帯電話機にダウンロ
ードされた種々のデータには、著作権を有するデータが
多くされており、また、携帯電話機にはプライバシー保
護を必要とするメモリダイヤル(電話帳)等のデータが
存在している。これらのデータを、携帯電話機から外部
へ読み出す際には、著作権保護あるいはプライバシー保
護のために暗号化する必要がある。暗号化する際には、
携帯電話機に用意された複数の暗号アルゴリズムのいず
れかを用いてそのデータを暗号化する。暗号化されたデ
ータは、例えば、携帯電話機に装着されたメモリカード
に保存される。このようにしてメモリカードに保存した
データは、自機のみに取り込むことができるようにされ
ており、再び携帯電話機内に取り込まれた暗号化された
データは、所定の復号アルゴリズムを用いて復号化され
るようになる。
A large amount of copyrighted data is contained in various data downloaded to a mobile phone, and a memory dial (telephone directory) requiring privacy protection for the mobile phone. There is data such as. When reading these data from the mobile phone to the outside, it is necessary to encrypt them for copyright protection or privacy protection. When encrypting,
The data is encrypted using any one of a plurality of encryption algorithms prepared for the mobile phone. The encrypted data is stored in, for example, a memory card mounted on the mobile phone. In this way, the data saved in the memory card can be taken into only the device itself, and the encrypted data taken into the mobile phone again can be decrypted using a predetermined decryption algorithm. Will be done.

【0004】しかしながら、複数の暗号アルゴリズムが
用意されていることからそれに対応する複数の復号アル
ゴリズムが用意されており、いずれの復号アルゴリズム
で復号するべきかがわからないことから、復号処理され
たデータが正しく復号化されているか否かを確認する必
要があった。しかしながら、正しく復号化されているか
否かの確認は、復号処理された全てのデータに対して行
わなければならないことから、その確認処理に多くの処
理パワーを与えなければならないと共に多くの時間を費
やさなければならないと云う問題点があった。
However, since a plurality of encryption algorithms are prepared, a plurality of decryption algorithms corresponding to them are prepared, and since it is not known which decryption algorithm should be used for decryption, the decrypted data is correct. It was necessary to confirm whether it was decrypted. However, since it has to be confirmed whether all the data has been properly decoded, it is necessary to give a lot of processing power to the confirmation process and spend a lot of time. There was a problem that it had to be.

【0005】そこで、本発明は、正しく復号化されてい
るか否かの確認をわずかな処理パワーとわずかな時間で
行うことのできる暗号化方法および復号化方法、ならび
に、電子機器を提供することを目的としている。
Therefore, the present invention provides an encryption method and a decryption method, and an electronic device, which can confirm whether or not they are correctly decrypted with a small processing power and a short time. Has an aim.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明の暗号化方法は、暗号化すべき元データに、
正しく復号化が行われたことを確認するための予め定め
られた復号化確認コードを付加する付加ステップと、該
付加ステップにより、前記復号化確認コードが付加され
た前記元データを所定の暗号アルゴリズムで暗号化する
暗号化ステップと、該暗号化ステップにより暗号化され
た暗号化データに、復号化する際に必要な情報を含む暗
号化ヘッダを付加する暗号化ヘッダ付加ステップとから
なり、該暗号化ヘッダ付加ステップから暗号化処理を施
した暗号化処理データを得るようにしている。また、上
記本発明の暗号化方法において、前記暗号化ヘッダの情
報が、前記暗号アルゴリズムを特定することのできる情
報とされていてもよい。
In order to achieve the above object, the encryption method of the present invention uses the original data to be encrypted,
An addition step of adding a predetermined decryption confirmation code for confirming that the decryption has been performed correctly, and the original data to which the decryption confirmation code has been added is subjected to a predetermined encryption algorithm by the addition step. And an encryption header adding step of adding an encryption header containing information necessary for decryption to the encrypted data encrypted by the encryption step. The encrypted processing data subjected to the encryption processing is obtained from the step of adding the encrypted header. Further, in the encryption method of the present invention, the information of the encryption header may be information that can specify the encryption algorithm.

【0007】次に、上記目的を達成することのできる本
発明の復号化方法は、暗号化処理データから暗号化ヘッ
ダを除去すると共に、該暗号ヘッダから復号化する際に
必要な情報を得る暗号化ヘッダ除去ステップと、該暗号
化ヘッダ除去ステップにおいて得られた復号化する際に
必要な情報に基づく所定の復号アルゴリズムにより、前
記暗号化処理データから暗号化ヘッダを除去した暗号化
データを復号化する復号化ステップと、該復号化ステッ
プにより復号された復号データのうちの復号化確認コー
ドが、正しく復号されているかを確認すると共に、該復
号化確認コードを除去するようにした除去ステップとか
らなり、該除去ステップから復号化された元データを得
るようにようにしている。
Next, the decryption method of the present invention that can achieve the above object is an encryption method that removes an encryption header from encrypted data and obtains information necessary for decryption from the encryption header. Decrypting the encrypted data from which the encrypted header has been removed from the encrypted data by the encrypted header removal step and a predetermined decryption algorithm based on the information necessary for decryption obtained in the encrypted header removal step And a removing step for confirming whether the decoding confirmation code of the decoded data decoded by the decoding step is correctly decoded and for removing the decoding confirmation code. Therefore, the decoded original data is obtained from the removing step.

【0008】また、上記本発明の復号化方法において、
前記暗号化ヘッダの情報が、前記復号アルゴリズムを特
定することのできる情報とされていてもよい。さらに、
上記本発明の復号化方法において、前記除去ステップに
おいて、前記復号化確認コードが正しく復号されていな
い場合は、前記復号データを破棄するようにしてもよ
い。
Further, in the above decoding method of the present invention,
The information of the encryption header may be information that can specify the decryption algorithm. further,
In the above decoding method of the present invention, if the decoding confirmation code is not correctly decoded in the removing step, the decoded data may be discarded.

【0009】次に、上記目的を達成することのできる本
発明の電子機器は、暗号化すべき元データに、正しく復
号化が行われたことを確認するための予め定められた復
号化確認コードを付加する付加手段と、該付加手段によ
り、前記復号化確認コードが付加された前記元データを
所定の暗号アルゴリズムで暗号化する暗号化手段と、該
暗号化手段により暗号化された暗号化データに、復号化
する際に必要な情報を含む暗号化ヘッダを付加する暗号
化ヘッダ付加手段とからなる暗号化処理手段を備え、前
記暗号化処理手段から得られた暗号化処理を施した暗号
化処理データを、記憶手段に保存可能とされている。ま
た、上記本発明の電子機器において、前記暗号化処理手
段における前記暗号化ヘッダの情報が、前記暗号アルゴ
リズムを特定することのできる情報とされていてもよ
い。
Next, in the electronic device of the present invention which can achieve the above object, a predetermined decryption confirmation code for confirming that the original data to be encrypted is properly decrypted is provided. Addition means for adding, encryption means for encrypting the original data to which the decryption confirmation code is added by the addition means by a predetermined encryption algorithm, and encrypted data encrypted by the encryption means , An encryption processing means comprising an encryption header adding means for adding an encryption header containing information necessary for decryption, and an encryption processing to which the encryption processing obtained from the encryption processing means is applied. The data can be stored in the storage means. Further, in the electronic device of the present invention, the information of the encryption header in the encryption processing means may be information that can specify the encryption algorithm.

【0010】さらに、上記目的を達成することのできる
本発明の他の電子機器は、記憶手段から読み出された暗
号化処理が施された暗号化処理データから暗号化ヘッダ
を除去すると共に、該暗号ヘッダから復号化する際に必
要な情報を得る暗号化ヘッダ除去手段と、該暗号化ヘッ
ダ除去手段において得られた復号化する際に必要な情報
に基づく所定の復号アルゴリズムにより、前記暗号化処
理データから暗号化ヘッダを除去した暗号化データを復
号化する復号化手段と、該復号化手段により復号された
復号データのうちの復号化確認コードが、正しく復号さ
れているかを確認すると共に、該復号化確認コードを除
去する除去手段とからなる復号化処理手段を備え、前記
記憶手段に保存されていた前記暗号化処理データを、前
記復号化処理手段により復号化して、暗号化処理される
前の元データを得るようにしている。
Further, another electronic device of the present invention which can achieve the above object removes the encryption header from the encrypted data read from the storage means and subjected to the encryption process, and The encryption processing is performed by an encryption header removing unit that obtains information required when decrypting from the encryption header, and a predetermined decryption algorithm based on the information required when decrypting that is obtained by the encryption header removing unit. Decryption means for decrypting the encrypted data from which the encryption header has been removed from the data, and whether or not the decryption confirmation code of the decrypted data decrypted by the decryption means is correctly decrypted, Decryption processing means including removal means for removing the decryption confirmation code is provided, and the encryption processing data stored in the storage means is decrypted by the decryption processing means. And more decoded, so as to obtain the original data before being processed encrypted.

【0011】さらにまた、上記本発明の他の電子機器に
おいて、前記復号化処理手段における前記暗号化ヘッダ
の情報が、前記復号アルゴリズムを特定することのでき
る情報とされていてもよい。さらにまた、上記本発明の
他の電子機器において、前記復号化処理手段における前
記除去手段において、前記復号化確認コードが正しく復
号されていない場合は、前記復号データを破棄するよう
にしてもよい。
Furthermore, in the other electronic device of the present invention, the information of the encryption header in the decryption processing means may be information that can specify the decryption algorithm. Furthermore, in the other electronic device of the present invention, the decryption data may be discarded if the decryption confirmation code is not correctly decrypted by the removal unit in the decryption processing unit.

【0012】このような本発明によれば、著作権を有す
るデータやプライバシー保護を必要とするデータを暗号
化して、そのセキュリティを保持するようにしている。
この際に、元データに予め定められた復号化確認コード
を付加して暗号化するようにしたので、復号化した際に
復号化確認コードだけを確認することにより誤りなく正
しく復号化されたか否かを、わずかな処理パワーとわず
かな時間を費やすだけで検出することができるようにな
る。また、暗号化ヘッダとして、復号化する際に必要な
情報、例えば暗号アルゴリズムを特定できる情報とする
と、復号化を行う際に暗号化ヘッダの情報に基づいて復
号アルゴリズムを特定することができ、復号化処理をわ
ずかな処理パワーとわずかな時間を費やすだけで実行す
ることができるようになる。
According to the present invention as described above, the copyrighted data and the data requiring privacy protection are encrypted to maintain their security.
At this time, since a predetermined decryption confirmation code was added to the original data for encryption, only the decryption confirmation code was confirmed when decrypting to determine whether the decryption was successful or not. It becomes possible to detect such a thing with a little processing power and a little time. If the information required for decryption, for example, the information that can identify the encryption algorithm, is used as the encryption header, the decryption algorithm can be identified based on the information in the encryption header when performing the decryption. The conversion process can be executed with a small amount of processing power and a small amount of time.

【0013】[0013]

【発明の実施の形態】本発明の暗号化方法および復号化
方法が実行される本発明にかかる電子機器の実施の形態
の一構成例を図1に示す。図1では、本発明にかかる電
子機器を移動機に適用した実施の形態を示している。図
1に示す移動機1は、移動通信システムにおける携帯電
話機とされている。この移動機1は、アンテナ2を備え
ており、アンテナ2はRF回路11に接続されている。
このRF回路11には送受信回路や変復調回路が備えら
れている。このRF回路11における変復調回路は、音
声コーデック回路12およびチャネルコーデック回路1
5に接続されている。音声コーデック回路12は変復調
回路で復調された受話信号を音声圧縮復号化して音声信
号に復号していると共に、入力された音声信号を音声圧
縮符号化して送話信号としている。すなわち、音声コー
デック回路12は、送話用の音声信号を高能率圧縮符号
化すると共に受話用の音声信号に復号化しており、例え
ばCELP(Code Excited LPC )系のコーデックとさ
れている。音声コーデック回路12から出力される音声
信号はスピーカ13に印加され、マイク14から入力さ
れた音声信号が音声コーデック回路12に供給されてい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a configuration example of an embodiment of an electronic apparatus according to the present invention in which the encryption method and the decryption method of the present invention are executed. FIG. 1 shows an embodiment in which the electronic device according to the present invention is applied to a mobile device. The mobile device 1 shown in FIG. 1 is a mobile phone in a mobile communication system. The mobile device 1 includes an antenna 2, which is connected to an RF circuit 11.
The RF circuit 11 includes a transmission / reception circuit and a modulation / demodulation circuit. The modulation / demodulation circuit in the RF circuit 11 includes a voice codec circuit 12 and a channel codec circuit 1.
Connected to 5. The voice codec circuit 12 voice-compresses and decodes the reception signal demodulated by the modulation / demodulation circuit into a voice signal, and also voice-compresses and codes the input voice signal into a transmission signal. That is, the voice codec circuit 12 performs high-efficiency compression encoding of a voice signal for transmission and decodes it into a voice signal for reception, and is, for example, a CELP (Code Excited LPC) type codec. The audio signal output from the audio codec circuit 12 is applied to the speaker 13, and the audio signal input from the microphone 14 is supplied to the audio codec circuit 12.

【0014】また、RF回路11にはデータのコーデッ
ク処理を行うチャネルコーデック回路15が接続されて
いる。このチャネルコーデック回路15は、データの圧
縮/伸長処理やスクランブル/デスクランブル処理を行
っており、例えば受信した信号がデータであった場合
は、RF回路11からチャネルコーデック回路15に供
給されたデータのデスクランブル処理および伸長処理が
行われて、再生されたデータがRAM19に格納される
ようになる。また、チャネルコーデック回路15に入力
されたデータは、圧縮処理およびスクランブル処理が施
されてRF回路11を介して出力され、アンテナ2から
送信されるようになる。メモリカードインタフェース
(I/O)16は、移動機1に着脱自在に装着されるメ
モリカード3のインタフェースである。このメモリカー
ドI/O16にはスロットが設けられており、このスロ
ットにメモリカード3が装着されるようになされてい
る。
The RF circuit 11 is also connected to a channel codec circuit 15 for performing data codec processing. The channel codec circuit 15 performs data compression / decompression processing and scramble / descramble processing. For example, when the received signal is data, the data supplied from the RF circuit 11 to the channel codec circuit 15 is processed. The descramble process and the decompression process are performed, and the reproduced data is stored in the RAM 19. Further, the data input to the channel codec circuit 15 is subjected to compression processing and scramble processing, is output via the RF circuit 11, and is transmitted from the antenna 2. The memory card interface (I / O) 16 is an interface of the memory card 3 which is detachably attached to the mobile device 1. The memory card I / O 16 is provided with a slot, and the memory card 3 is attached to this slot.

【0015】中央処理装置(Central Processing Uni
t:CPU)17は、電話機能プログラムを実行するこ
とにより移動機1の各部の動作を制御するシステム制御
部であり、動作時の経過時間を示したり、特定の時間間
隔でタイマ割込を発生するタイマを備えている。また、
CPU17は暗号化プログラムや復号化プログラムを実
行することにより、後述する暗号化処理や復号化処理を
実行している。ROM18はCPU17が実行する送信
処理や受信処理の各種電話機能プログラム、暗号化プロ
グラムや復号化プログラム、および、複数の暗号アルゴ
リズムおよび複数の復号アルゴリズム等のプログラムが
格納されているROM(Read Only Memory)である。さ
らに、後述する復号化確認コードが格納されている。R
AM19はユーザ設定データ格納エリアや、ダウンロー
ドされた着信メロディや画像データ等の格納エリア、C
PU17のワークエリア等が設定されるRAM(Random
Access Memory)である。なお、各機能ブロックはバス
20を介してデータや命令の授受を行っている。また、
図示していないが移動機1には充電可能な二次電池が備
えられている。
Central Processing Uni
(t: CPU) 17 is a system control unit that controls the operation of each unit of the mobile device 1 by executing a telephone function program, and indicates the elapsed time during operation or generates a timer interrupt at a specific time interval. Equipped with a timer to Also,
The CPU 17 executes the encryption program and the decryption program, thereby executing the encryption process and the decryption process described later. The ROM 18 stores various telephone function programs for transmission processing and reception processing executed by the CPU 17, an encryption program and a decryption program, and a ROM (Read Only Memory) storing programs such as a plurality of encryption algorithms and a plurality of decryption algorithms. Is. Further, a decryption confirmation code described later is stored. R
AM 19 is a storage area for user setting data, a storage area for downloaded incoming melody and image data, C
RAM (Random
Access Memory). Each functional block exchanges data and commands via the bus 20. Also,
Although not shown, the mobile device 1 is equipped with a rechargeable secondary battery.

【0016】次に、以上説明した移動機1において実行
される本発明の実施の形態にかかる暗号化方法および復
号化方法について、図2および図3を参照しながら説明
する。図2は、本発明の実施の形態にかかる暗号化方法
および復号化方法を実行する処理手段の構成を示す図で
あり、ブロックで示されているが実際にはCPU17が
暗号化プログラムや復号化プログラムを実行することに
より実現されている。図3には、本発明にかかる暗号化
方法および復号化方法における各ステップにおけるデー
タ構造を示している。暗号化を行う元データ30はRA
M19に格納されている。この元データ30は、例えば
移動機1においてダウンロードされた著作権を有する着
信メロディのデータや画像データ、あるいは、プライバ
シー保護を必要とするメモリダイヤル(電話帳)等のデ
ータとされている。これらのデータを、移動機1に装着
されたメモリカード3に保存する場合には、自機以外で
使用されることを禁止するために暗号化することにな
る。
Next, an encryption method and a decryption method according to the embodiment of the present invention executed in the mobile device 1 described above will be described with reference to FIGS. 2 and 3. FIG. 2 is a diagram showing a configuration of processing means for executing the encryption method and the decryption method according to the embodiment of the present invention. Although shown as a block, the CPU 17 actually causes the encryption program and the decryption program to be executed. It is realized by executing a program. FIG. 3 shows a data structure in each step in the encryption method and the decryption method according to the present invention. The original data 30 to be encrypted is RA
It is stored in M19. The original data 30 is, for example, data of a ringing melody having a copyright downloaded in the mobile device 1, image data, or data such as a memory dial (telephone book) requiring privacy protection. When these data are stored in the memory card 3 attached to the mobile device 1, they are encrypted in order to prohibit their use by other devices.

【0017】この暗号化処理が開始されると、RAM1
9から暗号化を行うべき元データ30が読み出され、復
号化確認コード付加手段31において、図3にS2で示
すように復号化確認コード40が付加される。この復号
化確認コード40は、移動機1毎に異なる予め定められ
たコードであり、予めROM18に格納されている。そ
して、復号化処理された際に復号化された復号化確認コ
ード40と、ROM18に格納されている復号化確認コ
ード40とが一致しているか否かを確認することによ
り、正しく復号化されているか否かを判断することがで
きる。なお、暗号化すべきデータの種類によっては、全
機共通に使用してもよいデータも考えられるので、この
場合には全機共通の復号化確認コード40を使用するよ
うにしてもよい。
When this encryption process is started, the RAM 1
The original data 30 to be encrypted is read from 9, and the decryption confirmation code adding means 31 adds the decryption confirmation code 40 as shown in S2 in FIG. The decryption confirmation code 40 is a predetermined code that differs for each mobile device 1, and is stored in the ROM 18 in advance. Then, by confirming whether or not the decryption confirmation code 40 decrypted at the time of the decryption processing and the decryption confirmation code 40 stored in the ROM 18 match, the decryption confirmation code 40 is correctly decrypted. It is possible to determine whether or not there is. Note that depending on the type of data to be encrypted, data that may be commonly used by all devices may be considered, and in this case, the decryption confirmation code 40 common to all devices may be used.

【0018】復号化確認コード40が元データ30に付
加されたデータは、複数の暗号アルゴリズムを備える暗
号化手段32において自機固有の暗号鍵を用いて暗号化
される。この際に、データのセキュリティの程度等に応
じて複数の暗号アルゴリズムの内の最適の暗号アルゴリ
ズムを選択されて、選択された暗号アルゴリズムと自機
固有の暗号鍵を用いて暗号化される。暗号化された暗号
化データ42には、暗号化ヘッダ付加手段33において
図3のS3で示すように暗号化ヘッダ41が付加され
る。この暗号化ヘッダ41を構成する情報として、使用
した暗号化アルゴリズムを指示する情報を含ませること
ができる。また、暗号化ヘッダ41に他の情報も入れる
ことができるようにされており、暗号化ヘッダ41は拡
張可能とされている。
The data obtained by adding the decryption confirmation code 40 to the original data 30 is encrypted by the encryption means 32 having a plurality of encryption algorithms using the encryption key unique to the device itself. At this time, an optimum encryption algorithm is selected from among a plurality of encryption algorithms according to the degree of security of data and the like, and encryption is performed using the selected encryption algorithm and the own encryption key. The encrypted header 42 is added to the encrypted encrypted data 42 by the encryption header adding means 33 as shown in S3 of FIG. Information that constitutes the encryption header 41 can include information that indicates the encryption algorithm used. Further, other information can be put in the encrypted header 41, and the encrypted header 41 is expandable.

【0019】このようにして暗号化処理された暗号化ヘ
ッダ41が付加された暗号化データ42は、メモリカー
ドI/O16を介して移動機1に装着されたメモリカー
ド3に転送され、メモリカード3に保存されるようにな
る。すなわち、メモリカード3においては、図3のS4
にも示すように暗号化ヘッダ41が付加された暗号化デ
ータ42が保存データ34として格納されるようにな
る。
The encrypted data 42 added with the encrypted header 41 that has been encrypted in this way is transferred to the memory card 3 mounted on the mobile device 1 through the memory card I / O 16 and the memory card Will be stored in 3. That is, in the memory card 3, S4 in FIG.
The encrypted data 42 with the encrypted header 41 added thereto is stored as the storage data 34 as shown in FIG.

【0020】次に、メモリカード3に保存されている暗
号化されている保存データ34を復号化して移動機1に
取り込む復号化処理について説明する。復号化処理が開
始されると、図3のS11にも示すようにメモリカード
3から保存データ34が読み出されてメモリカードI/
O16を介して移動機1側へ取り込まれる。この保存デ
ータ34は暗号化ヘッダ解読・除去手段35において暗
号化ヘッダ41が解読されると共に、図3のS12に示
すように暗号化ヘッダ41が分離されて除去されるよう
になる。すなわち、暗号化ヘッダ解読・除去手段35か
らは、暗号化データ42のみが出力されるようになる。
この暗号化データ42は、複数の復号アルゴリズムを備
える復号化手段36において自機固有の暗号鍵を用いて
復号化されるようになる。この際に、解読された暗号化
ヘッダ41の情報から、暗号アルゴリズムを特定するこ
とができ、対応する復号アルゴリズムを選択することが
できるようになる。従って、何回も復号アルゴリズムを
変更して復号化する必要をなくすことができる。
Next, a decryption process of decrypting the encrypted storage data 34 stored in the memory card 3 and loading it into the mobile device 1 will be described. When the decryption processing is started, the storage data 34 is read from the memory card 3 and the memory card I / I is read as shown in S11 of FIG.
It is taken into the mobile device 1 side via O16. The stored header 34 is decrypted by the encrypted header decryption / removal means 35, and the encrypted header 41 is separated and removed as shown in S12 of FIG. That is, only the encrypted data 42 is output from the encrypted header decoding / removing means 35.
The encrypted data 42 is decrypted by the decryption means 36 having a plurality of decryption algorithms using the encryption key unique to the device itself. At this time, the encryption algorithm can be specified from the information of the decrypted encryption header 41, and the corresponding decryption algorithm can be selected. Therefore, it is possible to eliminate the need to change the decoding algorithm many times to perform decoding.

【0021】復号化手段36において復号化されたデー
タは、復号化確認コード解読・除去手段37において復
号化確認コード40が解読されると共に、図3のS13
に示すように復号化確認コード40が分離されて除去さ
れる。復号化確認コード40の解読では、ROM18に
格納されている復号化確認コード40との一致が検出さ
れ、正しく復号されていると確認されると復号化処理が
完了し、復号化確認コード解読・除去手段37からは、
復号された元データ30のみが出力されるようになる。
この復号された元データ30はRAM19に格納される
ようになる。また、復号化確認コード40の解読におい
て、ROM18に格納されている復号化確認コード40
との一致が検出されず、正しく復号されていないと判断
された場合は、その移動機1において復号してよいデー
タではないと判断されて、そのデータは破棄されるよう
になる。
For the data decrypted by the decryption means 36, the decryption confirmation code 40 is decrypted by the decryption confirmation code decryption / removal means 37, and S13 in FIG.
The decryption confirmation code 40 is separated and removed as shown in FIG. In decoding the decryption confirmation code 40, a match with the decryption confirmation code 40 stored in the ROM 18 is detected, and if it is confirmed that the decryption is correct, the decryption processing is completed, and the decryption confirmation code 40 From the removing means 37,
Only the decrypted original data 30 will be output.
The decrypted original data 30 is stored in the RAM 19. In decoding the decryption confirmation code 40, the decryption confirmation code 40 stored in the ROM 18
If no match is detected and it is determined that the data has not been correctly decoded, it is determined that the data is not data that can be decoded by the mobile device 1, and the data is discarded.

【0022】以上の説明では、本発明にかかる暗号化方
法および復号化方法が、携帯電話機のような移動機に適
用されるものとして説明したが、これに限るものではな
くメモリカードを装着することのできる電子機器に適用
することができるものである。また、暗号化処理および
復号化処理する際に用いられる自機固有の暗号鍵は、共
通鍵方式の暗号鍵あるいは公開鍵方式の暗号鍵のいずれ
でも用いることができる。さらに、保存データはメモリ
カードに保存されるものとしたが、メモリカードのよう
に着脱自在に装着できる記憶手段に限るものではなく、
移動機や電子機器に内蔵されている記憶手段であっても
よい。内蔵されている記憶手段に保存された保存データ
は、移動機や電子機器に備えられているインタフェース
を介して他の移動機や外部の電子機器へロード可能とさ
れる。
In the above description, the encryption method and the decryption method according to the present invention have been described as being applied to a mobile device such as a mobile phone, but the present invention is not limited to this, and a memory card should be attached. The present invention can be applied to electronic devices that can be used. Further, as the encryption key unique to the device itself used in the encryption process and the decryption process, either a common key system encryption key or a public key system encryption key can be used. Furthermore, although the saved data is supposed to be saved in the memory card, it is not limited to the storage means that can be detachably attached like a memory card,
It may be a storage means built in the mobile device or the electronic device. The stored data stored in the built-in storage means can be loaded into another mobile device or an external electronic device through an interface provided in the mobile device or the electronic device.

【0023】[0023]

【発明の効果】本発明は以上説明したように、著作権を
有するデータやプライバシー保護を必要とするデータを
暗号化して、そのセキュリティを保持するようにしてい
る。この際に、元データに予め定められた復号化確認コ
ードを付加して暗号化するようにしたので、復号化した
際に復号化確認コードだけを確認することにより誤りな
く正しく復号化されたか否かを、わずかな処理パワーと
わずかな時間を費やすだけで検出することができるよう
になる。また、暗号化ヘッダとして、復号化する際に必
要な情報、例えば暗号アルゴリズムを特定できる情報と
すると、復号化を行う際に暗号化ヘッダの情報に基づい
て復号アルゴリズムを特定することができ、復号化処理
をわずかな処理パワーとわずかな時間を費やすだけで実
行することができるようになる。特に、移動機において
はCPUパワーが小さいため、好適な暗号化方法および
復号化方法となる。
As described above, the present invention encrypts copyrighted data or data requiring privacy protection to maintain its security. At this time, since a predetermined decryption confirmation code was added to the original data for encryption, only the decryption confirmation code was confirmed when decrypting to determine whether the decryption was successful or not. It becomes possible to detect such a thing with a little processing power and a little time. If the information required for decryption, for example, the information that can identify the encryption algorithm, is used as the encryption header, the decryption algorithm can be identified based on the information in the encryption header when performing the decryption. The conversion process can be executed with a small amount of processing power and a small amount of time. In particular, since the CPU power is low in the mobile device, the encryption method and the decryption method are suitable.

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

【図1】本発明の暗号化方法および復号化方法が実行さ
れる本発明にかかる電子機器の実施の形態の一構成例を
示す図である。
FIG. 1 is a diagram showing a configuration example of an embodiment of an electronic apparatus according to the present invention in which an encryption method and a decryption method of the present invention are executed.

【図2】本発明の実施の形態にかかる暗号化方法および
復号化方法を実行する処理手段の構成を示す図である。
FIG. 2 is a diagram showing a configuration of processing means for executing the encryption method and the decryption method according to the exemplary embodiment of the present invention.

【図3】本発明の実施の形態にかかる暗号化方法および
復号化方法における各ステップにおけるデータ構造を示
す図である。
FIG. 3 is a diagram showing a data structure in each step in the encryption method and the decryption method according to the exemplary embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 移動機、2 アンテナ、3 メモリカード、11
RF回路、12 音声コーデック回路、13 スピー
カ、14 マイク、15 チャネルコーデック回路、1
6 メモリカードI/O、17 CPU、18 RO
M、19 RAM、20 バス、30 元データ、31
復号化確認コード付加手段、32 暗号化手段、33
暗号化ヘッダ付加手段、34 保存データ、35 暗
号化ヘッダ解読・除去手段、36 復号化手段、37
復号化確認コード解読・除去手段、40復号化確認コー
ド、41 暗号化ヘッダ、42 暗号化データ
1 mobile unit, 2 antennas, 3 memory card, 11
RF circuit, 12 audio codec circuit, 13 speaker, 14 microphone, 15 channel codec circuit, 1
6 memory card I / O, 17 CPU, 18 RO
M, 19 RAM, 20 bus, 30 original data, 31
Decryption confirmation code adding means, 32 Encryption means, 33
Encryption header adding means, 34 stored data, 35 encryption header decoding / removing means, 36 decryption means, 37
Decryption confirmation code decoding / removal means, 40 decryption confirmation code, 41 encrypted header, 42 encrypted data

フロントページの続き (72)発明者 深谷 真人 東京都新宿区信濃町34番地 JR信濃町ビ ル ジェイフォン東日本株式会社内 (72)発明者 菊池 昭夫 東京都新宿区信濃町34番地 JR信濃町ビ ル ジェイフォン東日本株式会社内 Fターム(参考) 5J104 AA32 AA37 NA02 NA35 PA02Continued front page    (72) Inventor Masato Fukaya             34 Shinanomachi Shinjuku-ku, Tokyo JR Shinanomachi Bi             Within Le JF East Japan Co., Ltd. (72) Inventor Akio Kikuchi             34 Shinanomachi Shinjuku-ku, Tokyo JR Shinanomachi Bi             Within Le JF East Japan Co., Ltd. F term (reference) 5J104 AA32 AA37 NA02 NA35 PA02

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 暗号化すべき元データに、正しく復号化
が行われたことを確認するための予め定められた復号化
確認コードを付加する付加ステップと、 該付加ステップにより、前記復号化確認コードが付加さ
れた前記元データを所定の暗号アルゴリズムで暗号化す
る暗号化ステップと、 該暗号化ステップにより暗号化された暗号化データに、
復号化する際に必要な情報を含む暗号化ヘッダを付加す
る暗号化ヘッダ付加ステップとからなり、 該暗号化ヘッダ付加ステップから暗号化処理を施した暗
号化処理データを得るようにしたことを特徴とする暗号
化方法。
1. An addition step of adding a predetermined decryption confirmation code for confirming that the decryption is correctly performed to the original data to be encrypted, and the decryption confirmation code by the addition step. An encryption step of encrypting the original data to which is added by a predetermined encryption algorithm, and the encrypted data encrypted by the encryption step,
An encryption header adding step of adding an encryption header including information necessary for decryption, and the encrypted processing data obtained by performing the encryption processing is obtained from the encryption header adding step. Encryption method.
【請求項2】 前記暗号化ヘッダの情報が、前記暗号ア
ルゴリズムを特定することのできる情報とされているこ
とを特徴とする請求項1記載の暗号化方法。
2. The encryption method according to claim 1, wherein the information of the encryption header is information that can specify the encryption algorithm.
【請求項3】 暗号化処理データから暗号化ヘッダを除
去すると共に、該暗号ヘッダから復号化する際に必要な
情報を得る暗号化ヘッダ除去ステップと、 該暗号化ヘッダ除去ステップにおいて得られた復号化す
る際に必要な情報に基づく所定の復号アルゴリズムによ
り、前記暗号化処理データから暗号化ヘッダを除去した
暗号化データを復号化する復号化ステップと、 該復号化ステップにより復号された復号データのうちの
復号化確認コードが、正しく復号されているかを確認す
ると共に、該復号化確認コードを除去するようにした除
去ステップとからなり、 該除去ステップから復号化された元データを得るように
したことを特徴とする復号化方法。
3. An encryption header removing step of removing an encryption header from encrypted processing data and obtaining information necessary for decryption from the encryption header, and a decryption obtained in the encryption header removing step. A decryption step of decrypting the encrypted data from which the encrypted header is removed from the encrypted data by a predetermined decryption algorithm based on the information necessary for decryption, and the decrypted data decrypted by the decrypting step. The decryption confirmation code includes a removal step for confirming whether the decryption confirmation code is correctly decoded and removing the decryption confirmation code, and the decrypted original data is obtained from the removal step. A decoding method characterized by the above.
【請求項4】 前記暗号化ヘッダの情報が、前記復号ア
ルゴリズムを特定することのできる情報とされているこ
とを特徴とする請求項3記載の復号化方法。
4. The decryption method according to claim 3, wherein the information of the encryption header is information that can specify the decryption algorithm.
【請求項5】 前記除去ステップにおいて、前記復号化
確認コードが正しく復号されていない場合は、前記復号
データを破棄するようにしたことを特徴とする請求項3
記載の復号化方法。
5. The removing step, wherein the decrypted data is discarded if the decryption confirmation code is not properly decrypted.
The described decryption method.
【請求項6】 暗号化すべき元データに、正しく復号化
が行われたことを確認するための予め定められた復号化
確認コードを付加する付加手段と、該付加手段により、
前記復号化確認コードが付加された前記元データを所定
の暗号アルゴリズムで暗号化する暗号化手段と、該暗号
化手段により暗号化された暗号化データに、復号化する
際に必要な情報を含む暗号化ヘッダを付加する暗号化ヘ
ッダ付加手段とからなる暗号化処理手段を備え、 前記暗号化処理手段から得られた暗号化処理を施した暗
号化処理データを、記憶手段に保存可能とされているこ
とを特徴とする電子機器。
6. An addition unit for adding a predetermined decryption confirmation code for confirming that the decryption is correctly performed to the original data to be encrypted, and the addition unit.
An encryption unit that encrypts the original data to which the decryption confirmation code is added by a predetermined encryption algorithm, and the encrypted data encrypted by the encryption unit includes information necessary for decryption. An encryption processing means including an encryption header adding means for adding an encryption header is provided, and the encryption processing data that has been subjected to the encryption processing obtained from the encryption processing means can be stored in the storage means. An electronic device characterized by being present.
【請求項7】 前記暗号化処理手段における前記暗号化
ヘッダの情報が、前記暗号アルゴリズムを特定すること
のできる情報とされていることを特徴とする請求項6記
載の電子機器。
7. The electronic device according to claim 6, wherein the information of the encryption header in the encryption processing means is information that can specify the encryption algorithm.
【請求項8】 記憶手段から読み出された暗号化処理が
施された暗号化処理データから暗号化ヘッダを除去する
と共に、該暗号ヘッダから復号化する際に必要な情報を
得る暗号化ヘッダ除去手段と、該暗号化ヘッダ除去手段
において得られた復号化する際に必要な情報に基づく所
定の復号アルゴリズムにより、前記暗号化処理データか
ら暗号化ヘッダを除去した暗号化データを復号化する復
号化手段と、該復号化手段により復号された復号データ
のうちの復号化確認コードが、正しく復号されているか
を確認すると共に、該復号化確認コードを除去する除去
手段とからなる復号化処理手段を備え、 前記記憶手段に保存されていた前記暗号化処理データ
を、前記復号化処理手段により復号化して、暗号化処理
される前の元データを得るようにしたことを特徴とする
電子機器。
8. The encryption header removal from the encryption processing data read out from the storage means and subjected to the encryption processing to obtain the information necessary for decryption from the encryption header. And a decryption for decrypting the encrypted data from which the encrypted header has been removed from the encrypted data, by means of a predetermined decryption algorithm based on the information necessary for decryption obtained by the encrypted header removing means. Decoding means for confirming whether the decoding confirmation code of the decoded data decoded by the decoding means is correctly decoded, and removing means for removing the decoding confirmation code. And decrypting the encrypted processing data stored in the storage means by the decryption processing means to obtain the original data before the encryption processing. Electronic devices, characterized in that.
【請求項9】 前記復号化処理手段における前記暗号化
ヘッダの情報が、前記復号アルゴリズムを特定すること
のできる情報とされていることを特徴とする請求項8記
載の電子機器。
9. The electronic device according to claim 8, wherein the information of the encryption header in the decryption processing means is information that can specify the decryption algorithm.
【請求項10】 前記復号化処理手段における前記除去
手段において、前記復号化確認コードが正しく復号され
ていない場合は、前記復号データを破棄するようにした
ことを特徴とする請求項8記載の電子機器。
10. The electronic device according to claim 8, wherein the removal means in the decryption processing means discards the decrypted data when the decryption confirmation code is not properly decrypted. machine.
JP2001218218A 2001-07-18 2001-07-18 Decoding device and electronic device Expired - Fee Related JP4475449B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001218218A JP4475449B2 (en) 2001-07-18 2001-07-18 Decoding device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001218218A JP4475449B2 (en) 2001-07-18 2001-07-18 Decoding device and electronic device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007061737A Division JP2007221807A (en) 2007-03-12 2007-03-12 Decoding device and electronics

Publications (2)

Publication Number Publication Date
JP2003032248A true JP2003032248A (en) 2003-01-31
JP4475449B2 JP4475449B2 (en) 2010-06-09

Family

ID=19052430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001218218A Expired - Fee Related JP4475449B2 (en) 2001-07-18 2001-07-18 Decoding device and electronic device

Country Status (1)

Country Link
JP (1) JP4475449B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7945046B2 (en) 2005-10-31 2011-05-17 Konica Minolta Business Technologies, Inc. Decryption processing apparatus, decryption method and image forming apparatus
JP4969572B2 (en) * 2007-06-15 2012-07-04 株式会社日立ソリューションズ File processing system and method, and file processing program
JP2019519827A (en) * 2016-07-12 2019-07-11 キム ジュハンKIM, Juhan Two-channel authentication agent system and method capable of detecting false alteration of application

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7945046B2 (en) 2005-10-31 2011-05-17 Konica Minolta Business Technologies, Inc. Decryption processing apparatus, decryption method and image forming apparatus
JP4969572B2 (en) * 2007-06-15 2012-07-04 株式会社日立ソリューションズ File processing system and method, and file processing program
US8307408B2 (en) 2007-06-15 2012-11-06 Hitachi Solutions, Ltd. System and method for file processing and file processing program
JP2019519827A (en) * 2016-07-12 2019-07-11 キム ジュハンKIM, Juhan Two-channel authentication agent system and method capable of detecting false alteration of application

Also Published As

Publication number Publication date
JP4475449B2 (en) 2010-06-09

Similar Documents

Publication Publication Date Title
JP3456528B2 (en) Mobile phone and data concealment method
KR100734836B1 (en) System and method for generating reproducible session keys
US20030114191A1 (en) Mobile communication terminal
JP2007328777A (en) Mobile electronic device, data protecting method, protection data outputting method, control program and recording medium
KR100766313B1 (en) Apparatus and method for encrypting of preservation key in mobile communication terminal
JP2010259074A (en) Secure session set up based on wireless application protocol
JPH11285080A (en) Method for information transfer between subscriber discrimination module and radio communication mobile terminal, and corresonding subscriber discrimination module and mobile terminal
JP2002328903A (en) Electronic device
US10291591B2 (en) Anti-eavesdropping system for mobile phone communication
JP6397046B2 (en) Address book protection method, apparatus and communication system
JP2003032248A (en) Cryptographic method, decoding method, and electronic device
US7023997B1 (en) Secure messaging communication system
JP4289186B2 (en) Telephone and telephone system having authentication function
JP4615128B2 (en) Voice and data encryption method using encryption key split combiner
JP2007221807A (en) Decoding device and electronics
KR20070021461A (en) Method for performing account of credit card in wireless terminal
US20050182955A1 (en) Apparatus and method for securing external memory for portable terminal
US6285870B1 (en) Telephony device comprising a base station and at least one handset, subscription method of a handset, handset and base station suitable for such a device
JP2002261916A (en) Portable communication terminal and personal identification number confirmation system
JP2009038598A (en) Electronic apparatus, portable terminal device, portable communication system and data migration program
JP2009004824A (en) Transmitter, receiver, program, transmission method and reception method
JP3983717B2 (en) Mobile terminal and data setting method
JP2003069695A (en) Portable telephone set
KR100610896B1 (en) Securing Apparatus and Method for Preventing of Contents illegal Using in Mobile Communication Terminal
JP2011211255A (en) Data transfer system, communication apparatus, and data transfer method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040929

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20041006

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060926

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061108

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070312

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070319

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20070803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100201

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100303

R150 Certificate of patent or registration of utility model

Ref document number: 4475449

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160319

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees