JP2003263105A - Block encryption circuit and its method - Google Patents

Block encryption circuit and its method

Info

Publication number
JP2003263105A
JP2003263105A JP2002064071A JP2002064071A JP2003263105A JP 2003263105 A JP2003263105 A JP 2003263105A JP 2002064071 A JP2002064071 A JP 2002064071A JP 2002064071 A JP2002064071 A JP 2002064071A JP 2003263105 A JP2003263105 A JP 2003263105A
Authority
JP
Japan
Prior art keywords
data
bus width
block
input
endian
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
JP2002064071A
Other languages
Japanese (ja)
Inventor
Iwao Ofuji
巌 大藤
Nobutane Hideshima
信種 秀嶋
Tsutomu Ichinose
勉 一ノ瀬
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2002064071A priority Critical patent/JP2003263105A/en
Publication of JP2003263105A publication Critical patent/JP2003263105A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To speed up data transfer processing even when encrypting data from an interface having optional data width. <P>SOLUTION: When a power supply is turned on, the bus width of an input data register 220 and the byte order of the register 220 are set up by the initializing operation of a CPU 11. A block encryption circuit 120 inputs unencrypted data from an internal bus 114, encrypts the inputted data and outputs the encrypted data. An endian selection circuit 240 executes byte order conversion processing of input data and stores the processed input data in an input data register 220 of which byte width is 8 bytes, so that a ciphering block 210 is ciphered by using a block of 8 bytes. Since conventional byte order conversion processing to be executed by the CPU 101 is unnecessary and the processing load of the CPU 101 can be reduced, the speedup of data transfer processing can be realized. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、入力データを所定
長(ブロック長)毎に分割し、そのブロック単位でデー
タの暗号化を行うブロック暗号回路および方法に関し、
特に任意のデータ幅を有するインターフェイスからのデ
ータを暗号化する場合にデータ転送処理の高速化を実現
する構成に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a block cipher circuit and method for dividing input data into predetermined lengths (block lengths) and encrypting the data in block units.
In particular, the present invention relates to a configuration that speeds up data transfer processing when data from an interface having an arbitrary data width is encrypted.

【0002】[0002]

【従来の技術】一般に、この種のブロック暗号化では、
入力データを4バイトや8バイトといったブロック長単
位で暗号化する場合、各バイト単位でのデータ順によっ
て暗号化の結果が変わってしまうため、適正なバイト単
位の順序でデータを入力する必要がある。また、このよ
うなブロック暗号回路とCPUとのインターフェース
は、従来は1バイト(8ビット)単位で行うものが主流
であったが、近年のCPUでは、バス幅が8ビットより
広いことが多くなり、より高速にデータ転送を行うため
には、ブロック暗号回路とCPUとのバス幅を合わせる
ことが必要になってくる。
2. Description of the Related Art Generally, in this type of block encryption,
When input data is encrypted in block length units such as 4 bytes or 8 bytes, the result of encryption changes depending on the data order in each byte unit, so it is necessary to input data in an appropriate byte unit order. . In the past, the interface between such a block cipher circuit and the CPU was conventionally performed in units of 1 byte (8 bits), but in recent CPUs, the bus width is often wider than 8 bits. In order to transfer data at a higher speed, it is necessary to match the bus widths of the block cipher circuit and the CPU.

【0003】図5は、このような従来のブロック暗号回
路を搭載したCD−RまたはCD−RW(以下、CD−
R/RWという)の記録/再生装置の概要構成例を示す
ブロック図である。この記録/再生装置は、装置全体を
制御するCPU1と、CD−R/RW2へのデータの書
き込みや読み出しを行うディスクドライブ3と、再生デ
ータや記録データを格納するRAM4と、再生データや
記録データの暗号化を行うブロック暗号回路(暗号化ブ
ロック)5とを有する。この装置では、CPU1とディ
スクドライブ3との間のバス幅は1バイト、CPU1と
RAM4およびブロック暗号回路5との間のバス幅は2
バイトとなっている。また、ブロック暗号回路5の暗号
化処理単位(ブロック長)は8バイト(64ビット)と
なっている。
FIG. 5 shows a CD-R or CD-RW (hereinafter referred to as CD-R) equipped with such a conventional block cipher circuit.
FIG. 3 is a block diagram showing an example of a schematic configuration of a recording / reproducing device (referred to as R / RW). This recording / reproducing apparatus includes a CPU 1 that controls the entire apparatus, a disk drive 3 that writes and reads data to and from a CD-R / RW 2, a RAM 4 that stores reproduced data and recorded data, and a reproduced data and recorded data. And a block encryption circuit (encryption block) 5 for performing encryption. In this device, the bus width between the CPU 1 and the disk drive 3 is 1 byte, and the bus width between the CPU 1 and the RAM 4 and the block encryption circuit 5 is 2.
It has become a byte. Further, the encryption processing unit (block length) of the block encryption circuit 5 is 8 bytes (64 bits).

【0004】図6は、このような記録/再生装置におけ
るデータ再生時の暗号化処理を示すフローチャートであ
り、図7は、その暗号化処理におけるデータの遷移を示
す説明図である。まず、CPU1は、ディスクドライブ
3を制御してCD−R/RW2からデータを読み出し、
これをRAM4に転送し、格納する(図6;S1)。こ
の段階で、図7(A)(B)に示すように、CD−R/
RW2から読み出された各バイトデータA、B、C、…
…は、RAM4の格納領域にワード単位で格納され、バ
イトデータB、A、D、C、……の順番で格納されてい
る。
FIG. 6 is a flow chart showing an encryption process at the time of reproducing data in such a recording / reproducing apparatus, and FIG. 7 is an explanatory diagram showing a data transition in the encryption process. First, the CPU 1 controls the disk drive 3 to read data from the CD-R / RW 2,
This is transferred to the RAM 4 and stored (FIG. 6; S1). At this stage, as shown in FIGS. 7A and 7B, CD-R /
Each byte data A, B, C, ... Read from RW2
Are stored in the storage area of the RAM 4 in units of words, and are stored in the order of byte data B, A, D, C, ....

【0005】そこで、CPU1は、このRAM4に格納
したデータに対し、ブロック暗号化のためのバイトオー
ダーの変換処理を行う(図6;S2)。これは、図7
(C)に示すように、RAM4の格納データ順をバイト
単位で変更し、読み出し時のバイトデータ順であるA、
B、C、……に変更するものである。なお、このような
バイトオーダーの変換処理は、例えば特開2000−3
30760号公報に開示されている。そして、この変換
したデータを16ビット幅でブロック暗号回路5に転送
し(図7(D))、ブロック暗号化を行った後(図6;
S3)、この暗号化したデータをCPU1に取り込む
(図6;S4)。
Therefore, the CPU 1 performs byte-order conversion processing for block encryption on the data stored in the RAM 4 (FIG. 6; S2). This is shown in Figure 7.
As shown in (C), the data order stored in the RAM 4 is changed in byte units, and the byte data order at the time of reading is A,
Change to B, C, .... Note that such a byte-order conversion process is described in, for example, Japanese Patent Laid-Open No. 2000-3.
It is disclosed in Japanese Patent No. 30760. Then, this converted data is transferred to the block encryption circuit 5 with a 16-bit width (FIG. 7 (D)), and after block encryption is performed (FIG. 6;
S3), the encrypted data is loaded into the CPU 1 (FIG. 6; S4).

【0006】[0006]

【発明が解決しようとする課題】以上のように、従来の
ブロック暗号回路を用いたシステムでは、CPUがブロ
ック暗号回路とのインターフェイスを考慮したバイトオ
ーダーの変換処理を行うことが必要となり、その分、デ
ータ転送処理が長くなって処理の高速化ができないとい
う問題がある。
As described above, in the system using the conventional block cipher circuit, the CPU needs to perform byte-order conversion processing in consideration of the interface with the block cipher circuit. However, there is a problem that the data transfer process becomes long and the process cannot be speeded up.

【0007】そこで本発明の目的は、任意のデータ幅を
有するインターフェイスからのデータを暗号化する場合
でもデータ転送処理の高速化を実現することが可能なブ
ロック暗号回路および方法を提供することにある。
Therefore, an object of the present invention is to provide a block cipher circuit and method capable of realizing high speed data transfer processing even when data from an interface having an arbitrary data width is encrypted. .

【0008】[0008]

【課題を解決するための手段】本発明は前記目的を達成
するため、任意のバス幅を有する入力インターフェイス
からデータを入力し、ブロック暗号化を行うブロック暗
号回路において、前記入力インターフェイスからのデー
タを格納する入力データレジスタと、前記入力データレ
ジスタのバス幅を設定するバス幅設定手段と、前記入力
データレジスタに格納するデータのエンディアンを設定
するエンディアン設定手段と、前記バス幅設定手段の設
定値に基づいて前記入力データレジスタのバス幅を制御
するとともに、前記エンディアン設定手段の設定値に基
づいて前記入力インターフェイスから入力したデータの
バイトオーダーを制御して前記入力データレジスタに格
納するバイトオーダー選択手段と、前記入力データレジ
スタに格納されたデータのブロック暗号化を行うブロッ
ク暗号化手段とを有することを特徴とする。
In order to achieve the above-mentioned object, the present invention provides a block cipher circuit for inputting data from an input interface having an arbitrary bus width and performing block encryption. An input data register to be stored, a bus width setting means for setting a bus width of the input data register, an endian setting means for setting an endian of data to be stored in the input data register, and a set value of the bus width setting means. And a byte order selecting means for controlling the bus width of the input data register on the basis of the input data register and controlling the byte order of the data input from the input interface on the basis of the set value of the endian setting means and storing the data in the input data register. Stored in the input data register And having a block encryption unit performs block encryption over data.

【0009】また本発明は、任意のバス幅を有する入力
インターフェイスからデータを入力し、ブロック暗号化
を行うブロック暗号方法において、システム制御手段に
よって設定されたバス幅設定値に基づいて前記入力イン
ターフェイスからのデータを格納する入力データレジス
タのバス幅を制御するとともに、システム制御手段によ
って設定されたエンディアン設定値に基づいて前記入力
インターフェイスから入力したデータのバイトオーダー
を制御して前記入力データレジスタに格納するバイトオ
ーダー選択ステップを有することを特徴とする。
Further, according to the present invention, in a block cipher method for inputting data from an input interface having an arbitrary bus width and performing block encryption, the block width is set from the input interface based on the bus width set value set by the system control means. Controlling the bus width of the input data register for storing the data of, and controlling the byte order of the data input from the input interface based on the endian setting value set by the system control means and storing the data in the input data register. It is characterized by having a byte order selection step.

【0010】本発明のブロック暗号回路では、バス幅設
定手段の設定値に基づいて入力データレジスタのバス幅
を制御するとともに、エンディアン設定手段の設定値に
基づいて入力データのバイトオーダーを制御して入力デ
ータレジスタに格納するバイトオーダー選択手段を設け
た。このため、任意のデータ幅を有するインターフェイ
スからのデータを暗号化する場合に、システム側のCP
U等におけるバイトオーダー変更処理の負担を軽減し、
データ転送処理の高速化を実現することが可能となる。
In the block cipher circuit of the present invention, the bus width of the input data register is controlled based on the setting value of the bus width setting means, and the byte order of the input data is controlled based on the setting value of the endian setting means. A byte order selecting means for storing in the input data register is provided. Therefore, when encrypting data from an interface with an arbitrary data width, the CP on the system side
To reduce the burden of changing byte order in U etc.,
It is possible to speed up the data transfer process.

【0011】また、本発明のブロック暗号方法では、予
め設定されたバス幅設定値に基づいて入力データレジス
タのバス幅を制御するとともに、予め設定されたエンデ
ィアン設定値に基づいて入力データのバイトオーダーを
制御して入力データレジスタに格納するバイトオーダー
選択ステップを設けた。このため、任意のデータ幅を有
するインターフェイスからのデータを暗号化する場合
に、システム側のCPU等におけるバイトオーダー変更
処理の負担を軽減し、データ転送処理の高速化を実現す
ることが可能となる。
In the block cipher method of the present invention, the bus width of the input data register is controlled based on the preset bus width setting value, and the byte order of the input data is determined based on the preset endian setting value. And a byte order selecting step for controlling and storing in the input data register. Therefore, when the data from the interface having an arbitrary data width is encrypted, it is possible to reduce the load of the byte order changing process on the CPU and the like on the system side and realize the high speed data transfer process. .

【0012】[0012]

【発明の実施の形態】以下、本発明によるブロック暗号
回路および方法の実施の形態例について説明する。図1
は、本発明の実施の形態によるブロック暗号回路を搭載
したCD−R/RWの記録/再生装置の構成例を示すブ
ロック図であり、記録/再生装置の構成要素を図5に示
すブロック図よりもやや具体的に示すものである。この
記録/再生装置は、CPU101、ROM102、キー
入力部(KEY)103、RAM104、液晶表示部
(LCD)105、EEPROM106、マイク(MI
C)107と、スピーカ(SP)108、A/D・D/
Aインターフェイス(I/F)109、ディスクドライ
ブ110、ディスクインターフェイス111、USBイ
ンターフェイス112、電源スイッチ113、ブロック
暗号回路120、および以上の各ブロックを接続する内
部バス114とを有する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a block cipher circuit and method according to the present invention will be described below. Figure 1
FIG. 6 is a block diagram showing a configuration example of a CD-R / RW recording / reproducing apparatus equipped with a block cipher circuit according to an embodiment of the present invention. FIG. 5 is a block diagram showing components of the recording / reproducing apparatus from FIG. It is a little concrete. This recording / reproducing apparatus includes a CPU 101, a ROM 102, a key input section (KEY) 103, a RAM 104, a liquid crystal display section (LCD) 105, an EEPROM 106, a microphone (MI).
C) 107, speaker (SP) 108, A / D / D /
It has an A interface (I / F) 109, a disk drive 110, a disk interface 111, a USB interface 112, a power switch 113, a block cipher circuit 120, and an internal bus 114 connecting the above blocks.

【0013】CPU101は、システム制御手段として
本装置全体を制御するものであり、ROM102にはC
PU101が実行する制御プログラム等が設けられてい
る。RAM104は、各種のデータを格納するためのも
のであり、EEPROM106は、電源オフ時にも保存
すべきデータを格納するためのものである。また、キー
入力部(KEY)103は、ユーザが各種のキー入力を
行うためのものであり、液晶表示部(LCD)105
は、各種データの表示を行うものである。また、マイク
107は各種の音声入力を行うものであり、スピーカ
(SP)108は各種の音声出力を行うものである。そ
して、A/D・D/Aインターフェイス109はマイク
107やスピーカ108と内部バス114との間でアナ
ログ/デジタル変換を行うインターフェイスである。ま
た、ディスクドライブ110は、CD−R/RWに対し
てデータの書き込み、読み出しを行うものであり、ディ
スクインターフェイス111は、ディスクドライブ11
0と内部バス114との間のインターフェイスである。
また、USBインターフェイス112は、PCやその他
の外部処理装置130を接続するインターフェイスであ
り、電源スイッチ113は、本装置の電源をオン・オフ
するためのスイッチである。
A CPU 101 controls the entire apparatus as a system control means, and a ROM 102 stores a C
A control program executed by the PU 101 and the like are provided. The RAM 104 is for storing various data, and the EEPROM 106 is for storing data to be saved even when the power is off. A key input unit (KEY) 103 is used by a user to input various keys, and a liquid crystal display unit (LCD) 105.
Displays various data. The microphone 107 is for inputting various types of voice, and the speaker (SP) 108 is for outputting various types of voice. The A / D / D / A interface 109 is an interface for performing analog / digital conversion between the microphone 107 or the speaker 108 and the internal bus 114. The disk drive 110 writes and reads data to and from the CD-R / RW, and the disk interface 111 includes a disk drive 11
0 and the internal bus 114.
Also, the USB interface 112 is an interface for connecting a PC or other external processing device 130, and the power switch 113 is a switch for turning on / off the power of the present device.

【0014】また、ブロック暗号回路120は、データ
のブロック暗号化を行うためのものであり、暗号化ブロ
ック210と、入力データレジスタ220と、バス幅選
択回路230と、エンディアン選択回路240とを有す
る。暗号化ブロック210は、入力データレジスタ22
0に格納されたデータに対してブロック暗号化を行うも
のであり、入力データレジスタ220には、エンディア
ン選択回路240によってバイトオーダー変換処理され
たデータが格納される。また、バス幅選択回路230
は、入力データレジスタ220のバス幅を設定するバス
幅設定手段であり、CPU101からの指示によりバス
幅を設定するレジスタである。具体的には、2n バイト
(n=1、2、3、……)のバス幅を選択的に設定す
る。エンディアン選択回路240は、入力データのエン
ディアンを設定するエンディアン設定手段と、入力デー
タのバイトオーダーを制御して入力データレジスタ23
0に格納するバイトオーダー選択手段とを含むものであ
り、CPU101のバス幅に対応してバイトオーダーの
変換処理を行うものである。
The block encryption circuit 120 is for performing block encryption of data, and has an encryption block 210, an input data register 220, a bus width selection circuit 230, and an endian selection circuit 240. . The encryption block 210 includes the input data register 22.
Block encryption is performed on the data stored in 0, and the input data register 220 stores the data subjected to byte order conversion by the endian selection circuit 240. In addition, the bus width selection circuit 230
Is a bus width setting means for setting the bus width of the input data register 220, and is a register for setting the bus width according to an instruction from the CPU 101. Specifically, the bus width of 2 n bytes (n = 1, 2, 3, ...) Is selectively set. The endian selection circuit 240 controls the endian setting means for setting the endian of the input data and the byte order of the input data to control the input data register 23.
It includes a byte order selecting means for storing in 0, and performs byte order conversion processing corresponding to the bus width of the CPU 101.

【0015】図2は、エンディアン選択回路240の機
能構成を示すブロック図である。ここで、エンディアン
選択回路240のブロック全体がバイトオーダー選択手
段であり、このブロック内のLittle設定レジスタ
241がエンディアン設定手段である。Little設
定レジスタ241は、CPU101からの指示によりビ
ックエンディアン(Little=0)、リトルエンデ
ィアン(Little=1)のいずれかを示す識別デー
タが設定されるものである。また、エンディアン選択回
路(バイトオーダー選択手段)240は、バス幅選択回
路230の設定値に基づいて入力データレジスタ220
のバス幅を設定し、Little設定レジスタ241の
設定値に基づいて入力データに対するバイトオーダーの
変換処理を行い、入力データレジスタ220に格納す
る。
FIG. 2 is a block diagram showing the functional arrangement of the endian selection circuit 240. Here, the entire block of the endian selection circuit 240 is a byte order selection unit, and the Little setting register 241 in this block is an endian setting unit. The Little setting register 241 is set with identification data indicating either big endian (Little = 0) or little endian (Little = 1) according to an instruction from the CPU 101. In addition, the endian selection circuit (byte order selection means) 240 receives the input data register 220 based on the set value of the bus width selection circuit 230.
The bus width is set, the byte-order conversion processing is performed on the input data based on the setting value of the Little setting register 241, and the result is stored in the input data register 220.

【0016】なお、バス幅選択回路230の設定値およ
びエンディアン選択回路240のLittle設定レジ
スタ241の設定値は、CPU101の仕様等によって
決まるものであり、記録/再生装置の製造時に、例えば
EEPROM106等に設定されており、電源オフ時も
消えないものである。そして、電源オン時の初期設定動
作において、これらの設定値をCPU101が読み出
し、CPU101からの制御によってブロック暗号回路
120に設定する。
The setting value of the bus width selection circuit 230 and the setting value of the Little setting register 241 of the endian selection circuit 240 are determined by the specifications of the CPU 101, etc. It is set and will not disappear when the power is turned off. Then, in the initial setting operation when the power is turned on, these set values are read by the CPU 101 and set in the block cipher circuit 120 under the control of the CPU 101.

【0017】図3は、本実施の形態例におけるブロック
暗号回路120の暗号化処理方法を示すフローチャート
であり、図4は、その暗号化処理方法におけるデータの
遷移を示す説明図である。まず、電源がオンすると(図
3;S11)、CPU101の初期設定動作によってバ
ス幅選択回路230の設定値が決定され、この設定値に
基づいて入力データレジスタ220のバス幅を設定する
(図3;S12)。次に、エンディアン選択回路240
のLittle設定レジスタ241の設定値が決定さ
れ、この設定値に基づいて入力データレジスタ220に
対するバイトオーダーを設定する(図3;S13)。こ
の後、記録/再生装置でデータ再生動作が指示される
と、図4(A)(B)に示すように、CPU101は、
ディスクドライブ110を制御してCD−R/RWから
データを読み出し、これをRAM104に転送し、格納
する。そして、このRAM104の格納データをブロッ
ク暗号回路120に内部バス114を通して転送する。
FIG. 3 is a flow chart showing an encryption processing method of the block encryption circuit 120 in the present embodiment, and FIG. 4 is an explanatory diagram showing data transition in the encryption processing method. First, when the power is turned on (FIG. 3; S11), the setting value of the bus width selection circuit 230 is determined by the initial setting operation of the CPU 101, and the bus width of the input data register 220 is set based on this setting value (FIG. 3). S12). Next, the endian selection circuit 240
The setting value of the Little setting register 241 is determined, and the byte order for the input data register 220 is set based on this setting value (FIG. 3; S13). Thereafter, when the data reproducing operation is instructed by the recording / reproducing apparatus, the CPU 101, as shown in FIGS.
The disk drive 110 is controlled to read the data from the CD-R / RW, transfer it to the RAM 104, and store it. Then, the data stored in the RAM 104 is transferred to the block cipher circuit 120 through the internal bus 114.

【0018】これにより、ブロック暗号回路120で
は、内部バス114から未暗号化データを入力し(図
3;S14)、暗号化を行い(図3;S15)、暗号化
データを出力する(図3;S16)。この際、エンディ
アン選択回路240では、入力データのバイト順に対し
て図2および図4(C)に示すようなバイトオーダー変
換処理を行い、バイト幅が8バイト(64ビット)の入
力データレジスタ220に格納することにより(図4
(D))、この8バイトをブロック単位として暗号化ブ
ロック210の暗号化を行う。したがって、本実施の形
態によるブロック暗号回路では、上記従来例のようなC
PUによるバイトオーダー変換処理(図6のS2に示す
処理)が不要となり、CPUによる処理負担を軽減でき
るため、データ転送処理の高速化を実現することができ
る。
As a result, the block cipher circuit 120 inputs unencrypted data from the internal bus 114 (FIG. 3; S14), performs encryption (FIG. 3; S15), and outputs the encrypted data (FIG. 3). S16). At this time, the endian selection circuit 240 performs byte order conversion processing as shown in FIGS. 2 and 4C on the byte order of the input data, and the input data register 220 having a byte width of 8 bytes (64 bits). By storing (Fig. 4
(D)) The encryption block 210 is encrypted in units of 8 bytes. Therefore, in the block cipher circuit according to the present embodiment, the C
The byte order conversion process by the PU (the process shown in S2 of FIG. 6) is unnecessary, and the processing load on the CPU can be reduced, so that the data transfer process can be speeded up.

【0019】なお、以上は本発明のブロック暗号回路お
よび方法をCD−R/RWの記録/再生装置に適用した
例について説明したが、本発明はこれに限定されるもの
ではなく、各種データのブロック暗号化を行うシステム
にも同様に適用し得るものである。また、上述したバイ
ト幅等の具体的数値は、あくまでも一例であり、種々変
更し得ることはもちろんである。
In the above, the example in which the block cipher circuit and method of the present invention is applied to a CD-R / RW recording / reproducing apparatus has been described, but the present invention is not limited to this, and various data can be recorded. It can be similarly applied to a system that performs block encryption. Further, the specific numerical values such as the byte width described above are merely examples, and needless to say, various changes can be made.

【0020】[0020]

【発明の効果】以上説明したように本発明のブロック暗
号回路によれば、バス幅設定手段の設定値に基づいて入
力データレジスタのバス幅を制御するとともに、エンデ
ィアン設定手段の設定値に基づいて入力データのバイト
オーダーを制御して入力データレジスタに格納するバイ
トオーダー選択手段を設けたことにより、任意のデータ
幅を有するインターフェイスからのデータを暗号化する
場合に、システム側のCPU等におけるバイトオーダー
変更処理の負担を軽減し、データ転送処理の高速化を実
現することが可能となる。
As described above, according to the block cipher circuit of the present invention, the bus width of the input data register is controlled on the basis of the set value of the bus width setting means, and the set value of the endian setting means is used. By providing the byte order selection means for controlling the byte order of the input data and storing it in the input data register, when the data from the interface having an arbitrary data width is encrypted, the byte order in the CPU etc. on the system side It is possible to reduce the load of the change processing and realize the speedup of the data transfer processing.

【0021】また、本発明のブロック暗号方法によれ
ば、予め設定されたバス幅設定値に基づいて入力データ
レジスタのバス幅を制御するとともに、予め設定された
エンディアン設定値に基づいて入力データのバイトオー
ダーを制御して入力データレジスタに格納するバイトオ
ーダー選択ステップを設けたことにより、任意のデータ
幅を有するインターフェイスからのデータを暗号化する
場合に、システム側のCPU等におけるバイトオーダー
変更処理の負担を軽減し、データ転送処理の高速化を実
現することが可能となる。
Further, according to the block cipher method of the present invention, the bus width of the input data register is controlled on the basis of the preset bus width setting value and the input data of the input data register is controlled on the basis of the preset endian setting value. By providing the byte order selection step of controlling the byte order and storing it in the input data register, when the data from the interface having an arbitrary data width is encrypted, the byte order changing process in the CPU of the system side can be performed. It is possible to reduce the burden and realize the speedup of the data transfer process.

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

【図1】本発明の実施の形態によるブロック暗号回路を
搭載したCD−R/RWの記録/再生装置の構成例を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a CD-R / RW recording / reproducing apparatus equipped with a block cipher circuit according to an embodiment of the present invention.

【図2】図1に示すブロック暗号回路におけるエンディ
アン選択回路の機能構成を示すブロック図である。
FIG. 2 is a block diagram showing a functional configuration of an endian selection circuit in the block cipher circuit shown in FIG.

【図3】図1に示すブロック暗号回路の暗号化処理を示
すフローチャートである。
FIG. 3 is a flowchart showing an encryption process of the block cipher circuit shown in FIG.

【図4】図3に示す暗号化処理におけるデータの遷移を
示す説明図である。
FIG. 4 is an explanatory diagram showing a transition of data in the encryption processing shown in FIG.

【図5】従来のブロック暗号回路を搭載したCD−R/
RWの記録/再生装置の概要構成例を示すブロック図で
ある。
FIG. 5: CD-R / equipped with a conventional block cipher circuit
It is a block diagram which shows the example of a schematic structure of the recording / reproducing apparatus of RW.

【図6】図5に示す記録/再生装置におけるデータ再生
時の暗号化処理を示すフローチャートである。
6 is a flowchart showing an encryption process at the time of reproducing data in the recording / reproducing apparatus shown in FIG.

【図7】図6に示す暗号化処理におけるデータの遷移を
示す説明図である。
FIG. 7 is an explanatory diagram showing a data transition in the encryption processing shown in FIG.

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

101……CPU、102……ROM、103……キー
入力部(KEY)、104……RAM、105……液晶
表示部(LCD)、106……EEPROM、107…
…マイク(MIC)、108……スピーカ(SP)、1
09……A/D・D/Aインターフェイス(I/F)、
110……ディスクドライブ、111……ディスクイン
ターフェイス、112……USBインターフェイス、1
13……電源スイッチ、114……内部バス、120…
…ブロック暗号回路、210……暗号化ブロック、22
0……入力データレジスタ、230……バス幅選択回
路、240……エンディアン選択回路。
101 ... CPU, 102 ... ROM, 103 ... Key input section (KEY), 104 ... RAM, 105 ... Liquid crystal display section (LCD), 106 ... EEPROM, 107 ...
… Microphone (MIC), 108… Speaker (SP), 1
09 ...... A / D / D / A interface (I / F),
110 ... Disk drive, 111 ... Disk interface, 112 ... USB interface, 1
13 ... power switch, 114 ... internal bus, 120 ...
... Block encryption circuit, 210 ... Encryption block, 22
0 ... Input data register, 230 ... Bus width selection circuit, 240 ... Endian selection circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 一ノ瀬 勉 東京都台東区池之端1−2−11 アイワ株 式会社内 Fターム(参考) 5J104 AA18 NA22    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Tsutomu Ichinose             Aiwa Co., Ltd. 1-2-11 Ikenohata, Taito-ku, Tokyo             Inside the company F-term (reference) 5J104 AA18 NA22

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 任意のバス幅を有する入力インターフェ
イスからデータを入力し、ブロック暗号化を行うブロッ
ク暗号回路において、 前記入力インターフェイスからのデータを格納する入力
データレジスタと、 前記入力データレジスタのバス幅を設定するバス幅設定
手段と、 前記入力データレジスタに格納するデータのエンディア
ンを設定するエンディアン設定手段と、 前記バス幅設定手段の設定値に基づいて前記入力データ
レジスタのバス幅を制御するとともに、前記エンディア
ン設定手段の設定値に基づいて前記入力インターフェイ
スから入力したデータのバイトオーダーを制御して前記
入力データレジスタに格納するバイトオーダー選択手段
と、 前記入力データレジスタに格納されたデータのブロック
暗号化を行うブロック暗号化手段と、 を有することを特徴とするブロック暗号回路。
1. In a block cipher circuit for inputting data from an input interface having an arbitrary bus width and performing block encryption, an input data register for storing data from the input interface, and a bus width of the input data register. A bus width setting means for setting, an endian setting means for setting an endian of data to be stored in the input data register, and a bus width of the input data register based on a set value of the bus width setting means, Byte order selection means for controlling the byte order of the data input from the input interface based on the set value of the endian setting means and storing it in the input data register, and block encryption of the data stored in the input data register Block cipher hand doing Block cipher circuit, characterized in that it comprises a and.
【請求項2】 前記バス幅設定手段の設定と前記エンデ
ィアン設定手段の設定を行うシステム制御手段を有する
ことを特徴とする請求項1記載のブロック暗号回路。
2. The block cipher circuit according to claim 1, further comprising system control means for setting the bus width setting means and the endian setting means.
【請求項3】 前記入力インターフェイスからデータを
入力するシステム制御手段を有することを特徴とする請
求項1記載のブロック暗号回路。
3. The block cipher circuit according to claim 1, further comprising system control means for inputting data from the input interface.
【請求項4】 前記エンディアン設定手段は、ビックエ
ンディアン、リトルエンディアンのいずれかを設定する
レジスタであることを特徴とする請求項1記載のブロッ
ク暗号回路。
4. The block cipher circuit according to claim 1, wherein the endian setting means is a register for setting either big endian or little endian.
【請求項5】 前記バス幅設定手段は、2n バイト(n
=1、2、3、……)のバス幅を設定するレジスタであ
ることを特徴とする請求項1記載のブロック暗号回路。
5. The bus width setting means is 2 n bytes (n
2. The block cipher circuit according to claim 1, wherein the block cipher circuit is a register for setting a bus width of = 1, 2, 3 ,.
【請求項6】 任意のバス幅を有する入力インターフェ
イスからデータを入力し、ブロック暗号化を行うブロッ
ク暗号方法において、 予め設定されたバス幅設定値に基づいて前記入力インタ
ーフェイスからのデータを格納する入力データレジスタ
のバス幅を制御するとともに、予め設定されたエンディ
アン設定値に基づいて前記入力インターフェイスから入
力したデータのバイトオーダーを制御して前記入力デー
タレジスタに格納するバイトオーダー選択ステップを有
する、 ことを特徴とするブロック暗号方法。
6. A block cipher method for inputting data from an input interface having an arbitrary bus width and performing block encryption, wherein an input for storing data from the input interface based on a preset bus width setting value. Controlling the bus width of the data register and controlling the byte order of the data input from the input interface based on a preset endian setting value, and storing the byte order in the input data register. Characteristic block cipher method.
【請求項7】 前記バス幅設定値およびエンディアン設
定値は、電源投入後にシステム制御手段によって設定さ
れることを特徴とする請求項6記載のブロック暗号方
法。
7. The block cipher method according to claim 6, wherein the bus width setting value and the endian setting value are set by the system control means after the power is turned on.
JP2002064071A 2002-03-08 2002-03-08 Block encryption circuit and its method Pending JP2003263105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002064071A JP2003263105A (en) 2002-03-08 2002-03-08 Block encryption circuit and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002064071A JP2003263105A (en) 2002-03-08 2002-03-08 Block encryption circuit and its method

Publications (1)

Publication Number Publication Date
JP2003263105A true JP2003263105A (en) 2003-09-19

Family

ID=29197029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002064071A Pending JP2003263105A (en) 2002-03-08 2002-03-08 Block encryption circuit and its method

Country Status (1)

Country Link
JP (1) JP2003263105A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008524969A (en) * 2004-12-21 2008-07-10 サンディスク コーポレーション Memory system having in-stream data encryption / decryption function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008524969A (en) * 2004-12-21 2008-07-10 サンディスク コーポレーション Memory system having in-stream data encryption / decryption function

Similar Documents

Publication Publication Date Title
US5513262A (en) Device for enciphering and deciphering, by means of the DES algorithm, data to be written to be read from a hard disk
JP4767985B2 (en) Executing AES encryption or decryption in multiple modes with a single instruction
US20080170686A1 (en) Confidential information processing apparatus, confidential information processing device, and confidential information processing method
JP2012090286A (en) Memory system having encryption/decryption function of in stream data
JP2004226969A (en) Cryptographic system and method for supporting multiple modes
JP2004226966A (en) Cryptographic apparatus for supporting multiple modes
KR20050069924A (en) Block encoding/decoding method, circuit, and device
JP2002158985A (en) Digital contents distribution system, digital contents distributing method, digital contents distributor, information processor, and digital contents recording medium
JP5118494B2 (en) Memory system having in-stream data encryption / decryption function
US20090022320A1 (en) Content copying device and content copying method
KR101117588B1 (en) Record carrier comprising encryption indication information
JP2008524969A5 (en)
GB2398213A (en) Encryption using the KASUMI algorithm
CN101673206A (en) Programmable device and booting method
US7386124B2 (en) Block encoding method and block encoding/decoding circuit
JP2003263105A (en) Block encryption circuit and its method
JP4733793B2 (en) Encryption / decryption system, encryption device, decryption device, encryption method, decryption method, and program
JP2002140226A (en) Bit stream processor
WO2008035616A1 (en) Data transfer device and mobile telephone
US20020181704A1 (en) Data encryption circuit pre-holding next data to be operated in buffer
US20090041245A1 (en) Confidential information processing device,confidential information processing apparatus, and confidential information processing method
JP3661944B2 (en) Arithmetic engine, microprocessor, and arithmetic control method thereof
JP3736731B2 (en) Replacement processing apparatus and program recording medium thereof
JPH05314014A (en) Disk controller
JP3043347B2 (en) Automatic data output encryption processing circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20050203

Free format text: JAPANESE INTERMEDIATE CODE: A621

A131 Notification of reasons for refusal

Effective date: 20070717

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071112