JP2007221807A - Decoding device and electronics - Google Patents

Decoding device and electronics Download PDF

Info

Publication number
JP2007221807A
JP2007221807A JP2007061737A JP2007061737A JP2007221807A JP 2007221807 A JP2007221807 A JP 2007221807A JP 2007061737 A JP2007061737 A JP 2007061737A JP 2007061737 A JP2007061737 A JP 2007061737A JP 2007221807 A JP2007221807 A JP 2007221807A
Authority
JP
Japan
Prior art keywords
decryption
data
encrypted
encryption
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.)
Pending
Application number
JP2007061737A
Other languages
Japanese (ja)
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.)
SoftBank Corp
Original Assignee
SoftBank Mobile Corp
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 SoftBank Mobile Corp filed Critical SoftBank Mobile Corp
Priority to JP2007061737A priority Critical patent/JP2007221807A/en
Publication of JP2007221807A publication Critical patent/JP2007221807A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To confirm whether or not the decryption is performed correctly with small processing power in a little time. <P>SOLUTION: When encryption processing is started, a previously set decryption authentication code is added to the original data 30 and encrypted. Furthermore, an encryption header 41 is added to the encrypted data 42 and stored as a stored data 34 in a memory card. The encryption header 41 is the information which indicates the cryptographic algorithm used. It can be judged to be decrypted correctly when the data is decoded by confirming only the decryption authentication code. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、移動機に適用することのできる復号化装置および電子機器に関する。   The present invention relates to a decoding device and an electronic apparatus that can be applied to a mobile device.

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

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

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

そこで、本発明は、正しく復号化されているか否かの確認をわずかな処理パワーとわずかな時間で行うことのできる復号化装置および電子機器を提供することを目的としている。   Therefore, an object of the present invention is to provide a decoding device and an electronic apparatus that can confirm whether or not decoding is correctly performed with a small processing power and a short time.

上記目的を達成するために、本発明の復号化装置は、暗号化すべき元データの先頭に、正しく復号化が行われたことを確認するための予め定められた復号化確認コードを付加し、前記復号化確認コードが先頭に付加された前記元データを所定の暗号アルゴリズムで暗号化し、暗号化された暗号化データに、復号化する際に必要な情報を含む暗号化ヘッダを付加した暗号化処理データを復号化する復号化装置であって、前記暗号化処理データから前記暗号化ヘッダを除去すると共に、該暗号化ヘッダから復号化する際に必要な情報を得る暗号化ヘッダ除去手段と、該暗号化ヘッダ除去手段において得られた復号化する際に必要な情報に基づく所定の復号アルゴリズムにより、前記暗号化処理データから前記暗号化ヘッダを除去した前記暗号化データを復号化する復号化手段と、該復号化手段により復号された復号データにおいて前記元データの先頭に付加されている前記復号化確認コードが、正しく復号されているかを確認すると共に、該復号化確認コードを除去することにより前記元データを得る除去手段と、該除去手段により得られた前記元データを記憶する記憶手段とからなり、該除去手段において復号化された前記元データを得る際に、前記除去手段において前記復号化確認コードが正しく復号されていると確認されない場合は、前記復号化手段により復号された前記復号データを記憶することなく破棄するようにしている。
また、上記本発明の復号化装置において、前記暗号化ヘッダの情報が、前記復号アルゴリズムを特定することのできる情報とされていてもよい。
In order to achieve the above object, the decryption apparatus of the present invention adds a predetermined decryption confirmation code for confirming that the decryption has been correctly performed to the head of the original data to be encrypted, Encryption in which the original data with the decryption confirmation code added at the head is encrypted with a predetermined encryption algorithm, and an encrypted header including information necessary for decryption is added to the encrypted data A decryption device for decrypting process data, the encrypted header removing means for removing the encrypted header from the encrypted process data and obtaining information necessary for decryption from the encrypted header; The encrypted data obtained by removing the encrypted header from the encrypted data by a predetermined decryption algorithm based on information necessary for decryption obtained by the encrypted header removing means. Decoding means for decoding the data, and whether the decoding confirmation code added to the head of the original data in the decoded data decoded by the decoding means is correctly decoded, and the decoding When obtaining the original data decrypted by the removing means, comprising: removing means for obtaining the original data by removing the conversion confirmation code; and storage means for storing the original data obtained by the removing means In addition, when it is not confirmed by the removing means that the decoding confirmation code is correctly decoded, the decoded data decoded by the decoding means is discarded without being stored.
In the decryption device of the present invention, the information of the encryption header may be information that can specify the decryption algorithm.

次に、上記目的を達成することのできる本発明の電子機器は、暗号化すべき元データの先頭に、正しく復号化が行われたことを確認するための予め定められた復号化確認コードを付加し、前記復号化確認コードが先頭に付加された前記元データを所定の暗号アルゴリズムで暗号化し、暗号化された暗号化データに、復号化する際に必要な情報を含む暗号化ヘッダを付加した暗号化処理データが記憶されている記憶手段と、該記憶手段から読み出された前記暗号化処理データから前記暗号化ヘッダを除去すると共に、該暗号化ヘッダから復号化する際に必要な情報を得る暗号化ヘッダ除去手段と、該暗号化ヘッダ除去手段において得られた復号化する際に必要な情報に基づく所定の復号アルゴリズムにより、前記暗号化処理データから前記暗号化ヘッダを除去した前記暗号化データを復号化する復号化手段と、該復号化手段により復号された復号データにおいて前記元データの先頭に付加されている前記復号化確認コードが、正しく復号されているかを確認すると共に、該復号化確認コードを除去することにより前記元データを得る除去手段と、該除去手段により得られた前記元データを記憶する記憶部とからなる復号化処理手段を備え、前記記憶手段に保存されていた前記暗号化処理データを、前記復号化処理手段により復号化して、暗号化処理される前の前記元データを得る際に、前記除去手段において前記復号化確認コードが正しく復号されていると確認されない場合は、前記復号化手段において復号された復号データを記憶することなく破棄するようにしている。
また、上記本発明の電子機器において、前記復号化処理手段における前記暗号化ヘッダの情報が、前記復号アルゴリズムを特定することのできる情報とされていてもよい。
Next, in the electronic device of the present invention capable of achieving the above object, a predetermined decryption confirmation code for confirming that the decryption has been correctly performed is added to the head of the original data to be encrypted. The original data prefixed with the decryption confirmation code is encrypted with a predetermined encryption algorithm, and an encrypted header including information necessary for decryption is added to the encrypted encrypted data. Storage means for storing encryption processing data, and information necessary for decoding the encryption header from the encryption processing data read from the storage means and decrypting from the encryption header An encrypted header removing means to be obtained, and a predetermined decryption algorithm based on information necessary for decryption obtained by the encrypted header removing means, from the encrypted processing data. Decryption means for decrypting the encrypted data with the header removed, and whether the decryption confirmation code added to the head of the original data in the decrypted data decrypted by the decryption means is correctly decrypted And a decoding processing means comprising a removing means for obtaining the original data by removing the decoding confirmation code, and a storage unit for storing the original data obtained by the removing means, When the encryption processing data stored in the storage means is decrypted by the decryption processing means to obtain the original data before being encrypted, the decryption confirmation code is correct in the removal means. If it is not confirmed that the data has been decrypted, the decrypted data decrypted by the decrypting means is discarded without being stored.
In the electronic apparatus of the present invention, the information on the encryption header in the decryption processing unit may be information that can specify the decryption algorithm.

このような本発明によれば、著作権を有するデータやプライバシー保護を必要とするデータを暗号化して、そのセキュリティを保持するようにしている。この際に、元データに予め定められた復号化確認コードを付加して暗号化するようにしたので、復号化した際に復号化確認コードだけを確認することにより誤りなく正しく復号化されたか否かを、わずかな処理パワーとわずかな時間を費やすだけで検出することができるようになる。また、暗号化ヘッダとして、復号化する際に必要な情報、例えば暗号アルゴリズムを特定できる情報とすると、復号化を行う際に暗号化ヘッダの情報に基づいて復号アルゴリズムを特定することができ、復号化処理をわずかな処理パワーとわずかな時間を費やすだけで実行することができるようになる。   According to the present invention as described above, copyrighted data and data requiring privacy protection are encrypted to maintain the security. At this time, since a predetermined decryption confirmation code was added to the original data for encryption, it was correctly decrypted without error by confirming only the decryption confirmation code at the time of decryption. Can be detected with little processing power and little time. Also, if the information necessary for decryption, for example, information that can identify the encryption algorithm, is used as the encryption header, the decryption algorithm can be specified based on the information in the encryption header when decryption is performed. Can be executed with little processing power and little time.

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

また、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 connected to a channel codec circuit 15 that performs data codec processing. The channel codec circuit 15 performs data compression / decompression processing and scramble / descrambling processing. For example, when the received signal is data, the channel codec circuit 15 converts the data supplied from the RF circuit 11 to the channel codec circuit 15. The descrambling 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 that is detachably attached to the mobile device 1. The memory card I / O 16 is provided with a slot in which the memory card 3 is inserted.

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

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

この暗号化処理が開始されると、RAM19から暗号化を行うべき元データ30が読み出され、復号化確認コード付加手段31において、図3にS2で示すように復号化確認コード40が付加される。この復号化確認コード40は、移動機1毎に異なる予め定められたコードであり、予めROM18に格納されている。そして、復号化処理された際に復号化された復号化確認コード40と、ROM18に格納されている復号化確認コード40とが一致しているか否かを確認することにより、正しく復号化されているか否かを判断することができる。なお、暗号化すべきデータの種類によっては、全機共通に使用してもよいデータも考えられるので、この場合には全機共通の復号化確認コード40を使用するようにしてもよい。   When this encryption process is started, the original data 30 to be encrypted is read from the RAM 19, and the decryption confirmation code adding means 31 adds the decryption confirmation code 40 as shown by S2 in FIG. The The decryption confirmation code 40 is a predetermined code different 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 process matches the decryption confirmation code 40 stored in the ROM 18, the decryption is correctly performed. It can be determined whether or not. Note that depending on the type of data to be encrypted, data that can be used in common for all devices is also conceivable. In this case, the decryption confirmation code 40 common to all devices may be used.

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

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

次に、メモリカード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 for decrypting the encrypted storage data 34 stored in the memory card 3 and importing it into the mobile device 1 will be described.
When the decryption process is started, the stored data 34 is read from the memory card 3 and taken into the mobile device 1 via the memory card I / O 16 as shown in S11 of FIG. In the stored data 34, the encrypted header decrypting / removing means 35 decrypts the encrypted header 41, 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 decrypting / removing means 35. The encrypted data 42 is decrypted by the decrypting means 36 having a plurality of decryption algorithms by using the encryption key unique to the own device. At this time, the encryption algorithm can be specified from the decrypted information of the encrypted header 41, and the corresponding decryption algorithm can be selected. Therefore, it is possible to eliminate the necessity of changing the decoding algorithm many times and performing decoding.

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

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

本発明は以上説明したように、著作権を有するデータやプライバシー保護を必要とするデータを暗号化して、そのセキュリティを保持するようにしている。この際に、元データに予め定められた復号化確認コードを付加して暗号化するようにしたので、復号化した際に復号化確認コードだけを確認することにより誤りなく正しく復号化されたか否かを、わずかな処理パワーとわずかな時間を費やすだけで検出することができるようになる。また、暗号化ヘッダとして、復号化する際に必要な情報、例えば暗号アルゴリズムを特定できる情報とすると、復号化を行う際に暗号化ヘッダの情報に基づいて復号アルゴリズムを特定することができ、復号化処理をわずかな処理パワーとわずかな時間を費やすだけで実行することができるようになる。特に、移動機においてはCPUパワーが小さいため、好適な復号化装置となる。   As described above, the present invention encrypts copyrighted data and data that requires privacy protection to maintain the security. At this time, since a predetermined decryption confirmation code was added to the original data for encryption, it was correctly decrypted without error by confirming only the decryption confirmation code at the time of decryption. Can be detected with little processing power and little time. Also, if the information necessary for decryption, for example, information that can identify the encryption algorithm, is used as the encryption header, the decryption algorithm can be specified based on the information in the encryption header when decryption is performed. Can be executed with little processing power and little time. In particular, a mobile device has a low CPU power, and therefore is a suitable decoding device.

本発明の復号化装置を備える本発明にかかる電子機器の実施例の一構成例を示す図である。It is a figure which shows one structural example of the Example of the electronic device concerning this invention provided with the decoding apparatus of this invention. 本発明の実施例にかかる移動機において暗号化および復号化を実行する処理手段の構成を示す図である。It is a figure which shows the structure of the process means which performs encryption and a decoding in the mobile apparatus concerning the Example of this invention. 本発明の実施例にかかる移動機において実行される暗号化および復号化における各ステップにおけるデータ構造を示す図である。It is a figure which shows the data structure in each step in the encryption and the decryption which are performed in the mobile device concerning the Example of this invention.

符号の説明Explanation of symbols

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

Claims (4)

暗号化すべき元データの先頭に、正しく復号化が行われたことを確認するための予め定められた復号化確認コードを付加し、前記復号化確認コードが先頭に付加された前記元データを所定の暗号アルゴリズムで暗号化し、暗号化された暗号化データに、復号化する際に必要な情報を含む暗号化ヘッダを付加した暗号化処理データを復号化する復号化装置であって、
前記暗号化処理データから前記暗号化ヘッダを除去すると共に、該暗号化ヘッダから復号化する際に必要な情報を得る暗号化ヘッダ除去手段と、
該暗号化ヘッダ除去手段において得られた復号化する際に必要な情報に基づく所定の復号アルゴリズムにより、前記暗号化処理データから前記暗号化ヘッダを除去した前記暗号化データを復号化する復号化手段と、
該復号化手段により復号された復号データにおいて前記元データの先頭に付加されている前記復号化確認コードが、正しく復号されているかを確認すると共に、該復号化確認コードを除去することにより前記元データを得る除去手段と、
該除去手段により得られた前記元データを記憶する記憶手段とからなり、
該除去手段において復号化された前記元データを得る際に、前記除去手段において前記復号化確認コードが正しく復号されていると確認されない場合は、前記復号化手段により復号された前記復号データを記憶することなく破棄するようにしたことを特徴とする復号化装置。
A predetermined decryption confirmation code for confirming that the decryption has been correctly performed is added to the head of the original data to be encrypted, and the original data with the decryption confirmation code added to the head is predetermined. A decryption device for decrypting encrypted processing data obtained by adding an encryption header including information necessary for decryption to encrypted data encrypted by the encryption algorithm of:
An encryption header removing unit that removes the encryption header from the encryption processing data and obtains information necessary for decryption from the encryption header;
Decrypting means for decrypting the encrypted data obtained by removing the encrypted header from the encrypted processing data by a predetermined decryption algorithm based on information necessary for decryption obtained in the encrypted header removing means When,
In the decoded data decoded by the decoding means, it is confirmed whether the decoding confirmation code added to the head of the original data is correctly decoded, and the original is obtained by removing the decoding confirmation code Removal means to obtain data;
Comprising storage means for storing the original data obtained by the removing means,
When obtaining the original data decoded by the removing unit, if the decoding unit does not confirm that the decoding confirmation code is correctly decoded, the decoded data decoded by the decoding unit is stored. A decoding apparatus characterized by discarding without performing.
前記暗号化ヘッダの情報が、前記復号アルゴリズムを特定することのできる情報とされていることを特徴とする請求項1記載の復号化装置。   The decryption apparatus according to claim 1, wherein the information of the encryption header is information that can specify the decryption algorithm. 暗号化すべき元データの先頭に、正しく復号化が行われたことを確認するための予め定められた復号化確認コードを付加し、前記復号化確認コードが先頭に付加された前記元データを所定の暗号アルゴリズムで暗号化し、暗号化された暗号化データに、復号化する際に必要な情報を含む暗号化ヘッダを付加した暗号化処理データが記憶されている記憶手段と、
該記憶手段から読み出された前記暗号化処理データから前記暗号化ヘッダを除去すると共に、該暗号化ヘッダから復号化する際に必要な情報を得る暗号化ヘッダ除去手段と、該暗号化ヘッダ除去手段において得られた復号化する際に必要な情報に基づく所定の復号アルゴリズムにより、前記暗号化処理データから前記暗号化ヘッダを除去した前記暗号化データを復号化する復号化手段と、該復号化手段により復号された復号データにおいて前記元データの先頭に付加されている前記復号化確認コードが、正しく復号されているかを確認すると共に、該復号化確認コードを除去することにより前記元データを得る除去手段と、該除去手段により得られた前記元データを記憶する記憶部とからなる復号化処理手段を備え、
前記記憶手段に保存されていた前記暗号化処理データを、前記復号化処理手段により復号化して、暗号化処理される前の前記元データを得る際に、前記除去手段において前記復号化確認コードが正しく復号されていると確認されない場合は、前記復号化手段において復号された復号データを記憶することなく破棄するようにしたことを特徴とする電子機器。
A predetermined decryption confirmation code for confirming that the decryption has been correctly performed is added to the head of the original data to be encrypted, and the original data with the decryption confirmation code added to the head is predetermined. A storage means for storing encryption processing data in which an encryption header including information necessary for decryption is added to the encrypted data encrypted by the encryption algorithm of
An encrypted header removing means for removing the encrypted header from the encrypted data read from the storage means and obtaining information necessary for decryption from the encrypted header; and the encrypted header removing Decrypting means for decrypting the encrypted data obtained by removing the encryption header from the encrypted processing data by a predetermined decryption algorithm based on information necessary for decryption obtained by the means, and the decryption In the decoded data decoded by the means, it is confirmed whether the decoding confirmation code added to the head of the original data is correctly decoded, and the original data is obtained by removing the decoding confirmation code A decoding processing unit comprising a removing unit and a storage unit that stores the original data obtained by the removing unit;
When the encryption processing data stored in the storage means is decrypted by the decryption processing means to obtain the original data before being encrypted, the decryption confirmation code is stored in the removal means. An electronic apparatus characterized in that when it is not confirmed that the data is correctly decoded, the decoded data decoded by the decoding means is discarded without being stored.
前記復号化処理手段における前記暗号化ヘッダの情報が、前記復号アルゴリズムを特定することのできる情報とされていることを特徴とする請求項3記載の電子機器。   4. The electronic apparatus according to claim 3, wherein the information of the encrypted header in the decryption processing unit is information that can specify the decryption algorithm.
JP2007061737A 2007-03-12 2007-03-12 Decoding device and electronics Pending JP2007221807A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (1)

Publication Number Publication Date
JP2007221807A true JP2007221807A (en) 2007-08-30

Family

ID=38498462

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2007221807A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10347266B2 (en) 2015-08-05 2019-07-09 Panasonic Intellectual Property Management Co., Ltd. Speech signal decoding device and method for decoding speech signal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11345181A (en) * 1998-06-03 1999-12-14 Nippon Telegr & Teleph Corp <Ntt> Method and device for transferring enciphered electronic mail and recording medium with the method recorded therein
WO2000052684A1 (en) * 1999-03-03 2000-09-08 Sony Corporation Recording device, recording method, reproducing device and reproducing method
JP2001127757A (en) * 1999-10-28 2001-05-11 Sony Corp Data reception method and data receiver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11345181A (en) * 1998-06-03 1999-12-14 Nippon Telegr & Teleph Corp <Ntt> Method and device for transferring enciphered electronic mail and recording medium with the method recorded therein
WO2000052684A1 (en) * 1999-03-03 2000-09-08 Sony Corporation Recording device, recording method, reproducing device and reproducing method
JP2001127757A (en) * 1999-10-28 2001-05-11 Sony Corp Data reception method and data receiver

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CSNB200000345001, 宝木 和夫 KAZUO TAKARAGI, ファイアウォール −インターネット関連技術について− 情報セキュリティシリーズ 第2巻 初版 Firewa, 19980610, 第1版, 株式会社昭晃堂 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10347266B2 (en) 2015-08-05 2019-07-09 Panasonic Intellectual Property Management Co., Ltd. Speech signal decoding device and method for decoding speech signal

Similar Documents

Publication Publication Date Title
KR100947213B1 (en) Secure conditional access and digital rights management in a multimedia processor
JP2001320768A (en) Portable telephone set and secrecy method of data
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
CA2504843A1 (en) Providing a user device with a set of access codes
JP2003018148A (en) Radio data communication device and data communication method therefor
US10291591B2 (en) Anti-eavesdropping system for mobile phone communication
JP2005316284A (en) Portable terminal and data security system
JP6397046B2 (en) Address book protection method, apparatus and communication system
CN112182624A (en) Encryption method, encryption device, storage medium and electronic equipment
EP2175580A1 (en) Encryption method for a wireless headset, and wireless headset
JP4475449B2 (en) Decoding device and electronic device
JP2007221807A (en) Decoding device and electronics
CN106331282B (en) Mobile phone communication anti-eavesdropping system for implementing encryption and decryption at Bluetooth earphone end
JP4289186B2 (en) Telephone and telephone system having authentication function
JP2005142894A (en) Information processor and function expansion instrument, and method of controlling the same
JP2004258870A (en) Communication terminal and firmware rewriting method
KR20070021461A (en) Method for performing account of credit card in wireless terminal
CN115378592A (en) Password service calling method and system
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
JP2009004824A (en) Transmitter, receiver, program, transmission method and reception method
KR100605920B1 (en) Method for securing external memory in wireless terminal
JP2004147189A (en) Data processing method in information communication terminal and information communication terminal
CN100569024C (en) A kind of guard method of PHS mobile phone identification information
KR100703608B1 (en) Method for setting of environments in mobile communication terminal with subscriber identity module card

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100629

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101026