JP4821200B2 - Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded - Google Patents

Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded Download PDF

Info

Publication number
JP4821200B2
JP4821200B2 JP2005203139A JP2005203139A JP4821200B2 JP 4821200 B2 JP4821200 B2 JP 4821200B2 JP 2005203139 A JP2005203139 A JP 2005203139A JP 2005203139 A JP2005203139 A JP 2005203139A JP 4821200 B2 JP4821200 B2 JP 4821200B2
Authority
JP
Japan
Prior art keywords
data
encrypted
encoded
encryption
interval
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.)
Expired - Fee Related
Application number
JP2005203139A
Other languages
Japanese (ja)
Other versions
JP2007027860A (en
Inventor
晃由 山口
敬喜 山田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2005203139A priority Critical patent/JP4821200B2/en
Publication of JP2007027860A publication Critical patent/JP2007027860A/en
Application granted granted Critical
Publication of JP4821200B2 publication Critical patent/JP4821200B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Transmission Control (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

データの暗号化、復号化に関する技術である。   This is a technology related to data encryption and decryption.

近年デジタルカメラの普及や文書の電子化に伴い、画像を電子データのまま扱う機会が増えている。また、これらのデータサイズは増加する傾向にある。一方で、これらのコンテンツを不正な閲覧から守るため、データの暗号化が求められる。   In recent years, with the spread of digital cameras and the digitization of documents, opportunities to handle images as electronic data are increasing. In addition, these data sizes tend to increase. On the other hand, data encryption is required to protect these contents from unauthorized browsing.

図8にはデジタルカメラ等で多く用いられているJPEG形式(本来JPEGは圧縮法を定義したものであり、一般的にデジタルカメラ等で用いられているJPEG画像とは、JPEG圧縮された画像データをJFIF形式などの形式に従い形式化したものである。形式化手法としては一般にJFIF形式が用いられるが、JFIF以外の形式もある。本稿ではこれらを総じてJPEG形式と呼ぶ)で表現されている画像データの一例を示す。SOI,DHT,SOF0,SOS,EOIはマーカと呼ばれ、その後に続くデータが何かを示す。(SOI,EOIだけは例外的にマーカ単体で意味を成す。SOIはイメージの先頭を、EOIは終端を示す。)これらは2バイトデータであり、先頭の1バイトは16進数「ff」が格納されている。データ長はそれに続くデータの長さをバイト単位で示す。符号化されたデータ本体が画像データである。符号化されたデータ本体のうち、値に16進数「ff」を持つところは、その次のデータに16進数「00」が挿入されている。   FIG. 8 shows a JPEG format often used in digital cameras and the like (originally JPEG defines a compression method. JPEG images generally used in digital cameras and the like are JPEG-compressed image data) The JFIF format is generally used, and the JFIF format is generally used as the formalization method, but there are formats other than JFIF, which are collectively referred to as the JPEG format in this paper) An example of data is shown. SOI, DHT, SOF0, SOS, and EOI are called markers and indicate what data follows. (SOI and EOI only make sense as a single marker exceptionally. SOI indicates the beginning of the image and EOI indicates the end.) These are 2-byte data, and the first byte stores the hexadecimal number “ff”. Has been. The data length indicates the length of the subsequent data in bytes. The encoded data body is image data. Of the encoded data body, the place having the hexadecimal number “ff” in the value has the hexadecimal number “00” inserted in the next data.

従来のJPEG形式で符号化された画像の暗号化は、画像の復号に必要な量子化テーブルや符号化テーブルを暗号化することによって、画像の秘匿を行っていた。例えば、特開2004-198760号公報(以下特許文献1と呼ぶ)、特開2005-072699号公報(以下特許文献2と呼ぶ)である。また、JPEG2000の形式で符号化された画像については、特開2003-153228号公報(以下特許文献3と呼ぶ)に示されるような情報半開示を行うために画像の暗号化を行う方法や、特開2004-32538号公報(以下特許文献4と呼ぶ)に示されるような暗号化位置を画像データ中に埋め込む方法も提案されている。また、JPEG圧縮の動作が説明された文献として日本工業標準調査会のJIS X 4301 連続階調静止画像のデジタル圧縮及び符号処理(以下非特許文献1と呼ぶ)がある。   In the conventional encryption of an image encoded in the JPEG format, the image is concealed by encrypting a quantization table and an encoding table necessary for decoding the image. For example, JP-A-2004-198760 (hereinafter referred to as Patent Document 1) and JP-A-2005-072699 (hereinafter referred to as Patent Document 2). For images encoded in the JPEG2000 format, a method of encrypting images to perform semi-disclosure of information as disclosed in Japanese Patent Laid-Open No. 2003-153228 (hereinafter referred to as Patent Document 3), A method of embedding an encrypted position in image data as disclosed in Japanese Patent Laid-Open No. 2004-32538 (hereinafter referred to as Patent Document 4) has also been proposed. Further, as a document explaining the operation of JPEG compression, there is JIS X 4301 continuous tone still image digital compression and code processing (hereinafter referred to as non-patent document 1) of the Japan Industrial Standards Committee.

特開2004-198760号公報JP 2004-198760 A 特開2005-072699号公報JP 2005-072699 A 特開2003-153228号公報JP 2003-153228 A 特開2004-32538号公報JP 2004-32538 A JIS X 4301 連続階調静止画像のデジタル圧縮及び符号処理(日本工業標準調査会)JIS X 4301 Digital compression and code processing of continuous tone still images (Japan Industrial Standards Committee)

従来の特許文献1,2の手法で暗号化した場合、暗号化した各テーブルの情報を推定し、暗号化されたテーブルと置き換えることで画像を復号することができる。一般に量子化テーブルは固定値を用いるか、撮影対象の輝度によって最適化したものを用いるため、他の画像のそれと置き換えても画像を復号化することができる。一方、符号化テーブルは、実装上固定値を用いることが多く、テーブルの置き換えも容易である。例えば、あるカメラで撮影した画像を一度でも復元できた場合、同じ特性のカメラであれば、仮に異なるカメラであっても、復元した画像のテーブルを用いて、暗号化された画像を復号化することなく復元できる。   When encryption is performed using the methods disclosed in Patent Documents 1 and 2, the information of each encrypted table is estimated, and the image can be decrypted by replacing it with the encrypted table. In general, since the quantization table uses a fixed value or is optimized according to the luminance of the object to be imaged, the image can be decoded even if it is replaced with that of another image. On the other hand, the encoding table often uses a fixed value for mounting, and the table can be easily replaced. For example, if an image taken with a camera can be restored even once, the encrypted image can be decrypted using the restored image table even if the camera has the same characteristics, even if it is a different camera. It can be restored without

一方、特許文献3,4の手法は、JPEG2000の形式に特化した手法であり、この手法をそのままJPEG形式の画像に適用することはできない。   On the other hand, the methods of Patent Documents 3 and 4 are methods specialized for the JPEG 2000 format, and this method cannot be directly applied to an image in the JPEG format.

この発明は上記のような問題点を解決するためになされたもので、JPEG形式等で符号化された画像を高速かつ確実に暗号化し、情報を秘匿することを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to encrypt an image encoded in the JPEG format or the like at high speed and reliably and to conceal information.

算術符号で符号化されたデータを暗号化するデータ変換装置であって、符号化されたデータのうち、暗号化を行うデータの配置を一様に分布させて前記暗号化を行うデータを選択する暗号位置抽出部と、前記暗号位置抽出部により選択されたデータを暗号化する暗号化部と、前記暗号化部により暗号化されたデータを前記符号化されたデータ本体中の前記暗号位置抽出部により選択されたデータと置換するデータ置換部とを備えるものである。   A data conversion device for encrypting data encoded with an arithmetic code, wherein the data to be encrypted is selected from the encoded data by uniformly distributing the arrangement of the data to be encrypted An encryption position extraction section; an encryption section for encrypting the data selected by the encryption position extraction section; and the encryption position extraction section in the encoded data body of the data encrypted by the encryption section. And a data replacement unit that replaces the data selected by.

算術符号で符号化されたデータを暗号化するデータ変換装置であって、符号化されたデータのうち、暗号化を行うデータの配置を一様に分布させて前記暗号化を行うデータを選択する暗号位置抽出部と、前記暗号位置抽出部により選択されたデータを暗号化する暗号化部と、前記暗号化部により暗号化されたデータを前記符号化されたデータ本体中の前記暗号位置抽出部により選択されたデータと置換するデータ置換部とを備えることにより、JPEG形式等で符号化された画像を高速かつ確実に暗号化し、情報を秘匿することができる。   A data conversion device for encrypting data encoded with an arithmetic code, wherein the data to be encrypted is selected from the encoded data by uniformly distributing the arrangement of the data to be encrypted An encryption position extraction section; an encryption section for encrypting the data selected by the encryption position extraction section; and the encryption position extraction section in the encoded data body of the data encrypted by the encryption section. By providing the data replacement unit that replaces the data selected by the above, an image encoded in the JPEG format or the like can be encrypted at high speed and reliably, and the information can be concealed.

実施の形態1.
図1はこの発明を実施する装置の構成を示すブロック図である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing the configuration of an apparatus for carrying out the present invention.

図1において、周波数変換部101は所定の画像符号化方式により、画像データ108に2次元DCT変換や2次元ウェーブレット変換を行い、周波数画像データ109を出力する。画像データ108はRGB系もしくはYCbCr系などの色空間で表現されているものとする。量子化部102は周波数画像データ109と量子化テーブル110を入力とし、量子化画像データ111を出力する。量子化部102では、周波数画像データ109の数値を対応する量子化テーブル110の数値で割り、小数点以下を切り捨てる操作を行う。算術符号化部103は、量子化画像データ111と符号化テーブル112を入力として、符号化画像データ113を出力する。算術符号化部103では、量子化画像データ111をストリームデータに変換し、符号化テーブルによる算術符号化を行う。周波数変換部101、量子化部102、算術符号化部103の動作は、従来の画像のデジタル圧縮で用いられているものであるので、これらの詳細については非特許文献1などを参照されたい。   In FIG. 1, a frequency conversion unit 101 performs two-dimensional DCT conversion and two-dimensional wavelet conversion on image data 108 by a predetermined image encoding method, and outputs frequency image data 109. It is assumed that the image data 108 is expressed in a color space such as RGB or YCbCr. The quantization unit 102 receives the frequency image data 109 and the quantization table 110 and outputs quantized image data 111. The quantization unit 102 performs an operation of dividing the numerical value of the frequency image data 109 by the numerical value of the corresponding quantization table 110 and truncating after the decimal point. The arithmetic encoding unit 103 receives the quantized image data 111 and the encoding table 112, and outputs encoded image data 113. The arithmetic coding unit 103 converts the quantized image data 111 into stream data, and performs arithmetic coding using a coding table. Since the operations of the frequency conversion unit 101, the quantization unit 102, and the arithmetic coding unit 103 are used in the conventional digital compression of an image, refer to Non-Patent Document 1 for details thereof.

暗号位置抽出部104は符号化画像データ113を入力とし、暗号化部分データ114を抽出する。抽出法は画像の作成者と閲覧者とで等しく設定されている必要がある。前記抽出法を前記作成者が公開しても良い。前記抽出法は符号化画像データ113全体に対して暗号化部分データ114の配置が一様に分布するようにする。具体的には符号化画像データ113の暗号化開始点から、一定間隔で暗号化部分データ114を抽出する。この場合、暗号化開始点と暗号化を行うデータの間隔を作成者が決定する。符号化画像データ113全てを暗号化部分データ114として抽出してもよい。暗号化部分データ114を暗号化部105へ送る。   The encryption position extraction unit 104 receives the encoded image data 113 and extracts the encrypted partial data 114. The extraction method needs to be set equally between the creator of the image and the viewer. The creator may make the extraction method public. In the extraction method, the arrangement of the encrypted partial data 114 is uniformly distributed over the entire encoded image data 113. Specifically, the encrypted partial data 114 is extracted at regular intervals from the encryption start point of the encoded image data 113. In this case, the creator determines the interval between the encryption start point and the data to be encrypted. The entire encoded image data 113 may be extracted as the encrypted partial data 114. The encrypted partial data 114 is sent to the encryption unit 105.

暗号化部105は暗号鍵データ115を用いて、暗号化部分データ114を所定の暗号法で暗号化し、暗号化された暗号化部分データ116を出力する。例えば暗号化にはAES,MISTYといった共通鍵暗号やRSA,楕円曲線暗号などの公開鍵暗号を用いる。暗号鍵データ115は暗号法の定めるところにより、対応する復号鍵データが存在し、暗号鍵データ115を作成者が、対応する復号鍵データを閲覧者が持つ。暗号化された暗号化部分データ116をデータ置換部106へ送る。   Using the encryption key data 115, the encryption unit 105 encrypts the encrypted partial data 114 using a predetermined encryption method, and outputs the encrypted encrypted partial data 116. For example, common key cryptography such as AES and MISTY, and public key cryptography such as RSA and elliptic curve cryptography are used for encryption. The encryption key data 115 has corresponding decryption key data as defined by the encryption method, and the creator has the encryption key data 115 and the viewer has the corresponding decryption key data. The encrypted encrypted partial data 116 is sent to the data replacing unit 106.

データ置換部106は、符号化画像データ113のうち、暗号化部分データ114に相当する部分を対応する暗号化された暗号化部分データ116に置き換え、暗号化された符号化データ117を生成する。   The data replacement unit 106 replaces a portion corresponding to the encrypted partial data 114 in the encoded image data 113 with the corresponding encrypted partial data 116, and generates encrypted encoded data 117.

形式化部107は量子化テーブル110、符号化テーブル112、暗号化された符号化データ117を入力とし、出力する画像の形式に従い、量子化テーブル110、符号化テーブル112、暗号化された符号化データ117を形式化し、形式化された暗号化画像データ118として出力する。   The formatting unit 107 receives the quantization table 110, the encoding table 112, and the encrypted encoded data 117, and in accordance with the format of the output image, the quantization table 110, the encoding table 112, and the encoded encoding Data 117 is formatted and output as formatted encrypted image data 118.

図2は、図1で生成された形式化された暗号化画像データ118を復号化する装置の構成を示すブロック図である。   FIG. 2 is a block diagram showing a configuration of an apparatus for decrypting the formalized encrypted image data 118 generated in FIG.

図2において、分解部201は形式化された暗号化画像データ118を入力とし、暗号化された符号化データ209、符号化テーブル214、量子化テーブル215を抽出する。形式化された暗号化画像データ208は図1の形式化された暗号化画像データ118と同じものであり、暗号化された符号化データ209は図1の暗号化された符号化データ117と同じものである。   In FIG. 2, the decomposing unit 201 receives the formatted encrypted image data 118 as an input, and extracts encrypted encoded data 209, an encoding table 214, and a quantization table 215. The formatted encrypted image data 208 is the same as the formatted encrypted image data 118 of FIG. 1, and the encrypted encoded data 209 is the same as the encrypted encoded data 117 of FIG. Is.

復号位置抽出部202は、暗号化された符号化データ209を入力とし、復号化部分データ210を抽出する。抽出法は画像暗号化時と同じである必要がある。   The decryption position extraction unit 202 receives the encrypted encoded data 209 and extracts the decrypted partial data 210. The extraction method needs to be the same as in image encryption.

復号化部203は復号鍵データ211を用いて、復号化部分データ210を復号化し、復号化された復号化部分データ212を生成する。復号化部203は暗号化部105で行われた暗号法に対応する復号法を用いる。復号鍵データ211は暗号鍵データ115と対応する。   The decryption unit 203 decrypts the decrypted partial data 210 using the decryption key data 211, and generates decrypted decrypted partial data 212. The decryption unit 203 uses a decryption method corresponding to the encryption method performed by the encryption unit 105. The decryption key data 211 corresponds to the encryption key data 115.

データ置換部204は暗号化された符号化データ209と復号化された復号化部分データ212を入力とし、符号化画像データ213を出力する。データ置換部204では、暗号化された符号化データ209のうち、復号化部分データ210に相当する部分を対応する復号化された復号化部分データ212に置き換える。正しい復号鍵データ211で復号化された場合、符号化画像データ213は符号化画像データ113と等しくなる。   The data replacement unit 204 receives the encrypted encoded data 209 and the decoded partial data 212, and outputs the encoded image data 213. The data replacement unit 204 replaces a portion corresponding to the decrypted partial data 210 in the encrypted encoded data 209 with the corresponding decrypted decrypted partial data 212. When decrypted with the correct decryption key data 211, the encoded image data 213 is equal to the encoded image data 113.

算術復号化部205は符号化画像データ213と符号化テーブル214を入力し、算術復号化画像データ216を生成する。算術復号化部205で行われる算術復号処理は算術符号化部103で行われる符号化に対応する。算術復号化画像データ216は量子化画像データ111と等しい。逆量子化部206は算術復号化画像データ216と量子化テーブル215を入力し、逆量子化画像データ217を生成する。逆量子化部206では、算術復号化画像データ216の数値に対応する量子化テーブル215の数値を掛ける操作を行う。逆量子化画像データ217は周波数画像データ109と等しい。周波数逆変換部207は逆量子化画像データ217を入力し画像データ218を生成する。周波数逆変換部207では、周波数変換部101で行った周波数変換の逆変換を行う。算術復号化部205、逆量子化部206、周波数逆変換部207の動作の詳細については非特許文献1などを参照されたい。   The arithmetic decoding unit 205 receives the encoded image data 213 and the encoding table 214, and generates arithmetic decoded image data 216. The arithmetic decoding process performed by the arithmetic decoding unit 205 corresponds to the encoding performed by the arithmetic encoding unit 103. The arithmetic decoded image data 216 is equal to the quantized image data 111. The inverse quantization unit 206 receives the arithmetic decoded image data 216 and the quantization table 215, and generates inversely quantized image data 217. The inverse quantization unit 206 performs an operation of multiplying the numerical value of the arithmetic decoding image data 216 by the numerical value of the quantization table 215. The inverse quantized image data 217 is equal to the frequency image data 109. The frequency inverse transform unit 207 receives the inverse quantized image data 217 and generates image data 218. The frequency inverse transform unit 207 performs inverse transform of the frequency conversion performed by the frequency transform unit 101. For details of operations of the arithmetic decoding unit 205, the inverse quantization unit 206, and the frequency inverse transform unit 207, refer to Non-Patent Document 1 and the like.

以上のように、符号化された状態のデータに対し、暗号化を施すデータの配置の分布が一様になるように暗号化対象を選択し、暗号処理を施すことで、画像データ全体の一部分を暗号化しても、対象画像に対して十分な秘匿効果をもたらすことができる。また、符号化された後のデータに対し、その一部のみを暗号化するので、暗号化にかかる時間を短縮することができる。   As described above, a part of the entire image data can be obtained by selecting the encryption target so that the distribution of the arrangement of the data to be encrypted becomes uniform with respect to the encoded data, and performing the encryption process. Encrypting can also provide a sufficient concealing effect on the target image. Also, since only a part of the encoded data is encrypted, the time required for encryption can be shortened.

さらに、本方式によれば算術符号化されたデータであればJPEG画像以外のデータにも適用可能である。この場合、算術符号化されたデータの暗号処理を施す部分データ全体に対して暗号化されるデータの配置が一様に分布するようにデータを選択する。   Furthermore, according to this method, any data other than JPEG images can be applied as long as it is arithmetically encoded data. In this case, the data is selected so that the arrangement of data to be encrypted is uniformly distributed over the entire partial data subjected to the encryption processing of the arithmetically encoded data.

実施の形態2.
上記実施の形態1では、輝度情報を持つ画像データを入力として暗号化し、形式化された暗号化画像データを出力するものについて説明したが、本実施の形態2ではJPEG形式等で形式化された画像データを入力として暗号化し、形式化された暗号化画像データを出力する場合について説明する。
Embodiment 2. FIG.
In Embodiment 1 described above, image data having luminance information is encrypted as input, and formatted encrypted image data is output. In Embodiment 2, the image data is formatted in JPEG format or the like. A case where image data is encrypted as input and formalized encrypted image data is output will be described.

図3は、形式化された画像データを入力として暗号化し、形式化された暗号化画像データを出力する装置の構成を示すブロック図である。暗号位置抽出部301は形式化画像データ304を入力として暗号化部分データ305を抽出する。形式化画像データ304のうち、符号化されたデータ本体の部分に暗号化を施す。   FIG. 3 is a block diagram illustrating a configuration of an apparatus that encrypts formatted image data as input and outputs the formatted encrypted image data. The encryption position extraction unit 301 extracts the encrypted partial data 305 by using the formatted image data 304 as an input. Of the formatted image data 304, the encoded data body is encrypted.

符号化されたデータ本体の部分の暗号化開始点の検出法を図4に示す。図4ではJPEG画像データの場合を示す。まず、画像データの暗号化開始点にポインタを進める(1001)。その後、マーカを検出し(1002)、ポインタを2つ進める(1003)。マーカがSOI,EOIである場合にはマーカの検出を行う(1004)。そうでない場合はデータ長を検出する(1005)。検出したデータ長と、データ長を示すデータの分だけポインタを進める(1006)。マーカがSOSでない場合は次のマーカを検出し(1007)、そうである場合は処理を終了する。符号化されたデータ本体の暗号化開始点が既知である場合は、図4の処理を行わなくても良い。   FIG. 4 shows a method for detecting the encryption start point of the encoded data body. FIG. 4 shows the case of JPEG image data. First, the pointer is advanced to the encryption start point of the image data (1001). Thereafter, the marker is detected (1002), and the pointer is advanced by two (1003). If the marker is SOI or EOI, the marker is detected (1004). Otherwise, the data length is detected (1005). The pointer is advanced by the detected data length and the data indicating the data length (1006). If the marker is not SOS, the next marker is detected (1007). If so, the process is terminated. When the encryption start point of the encoded data body is known, the process of FIG. 4 may not be performed.

図3において、暗号位置抽出部301は画像の作成者と閲覧者とで等しく設定されている必要がある。前記抽出法を前記作成者が公開しても良い。前記抽出法は形式化画像データ304の符号化されたデータ本体全体に対して暗号化部分データ305の配置の分布が一様になるようにする。具体的には形式化画像データ304の符号化されたデータ本体の暗号化開始点から、一定間隔で暗号化部分データ305を抽出する。この場合、暗号化開始点と暗号化を行うデータの間隔を作成者が決定する。符号化されたデータ本体に形式化されたデータが含まれていても、形式化されたまま抽出する。形式化画像データ304の符号化されたデータ本体全体を暗号化部分データ305として抽出してもよい。暗号化部分データ305を暗号化部302へ送る。   In FIG. 3, the encryption position extraction unit 301 needs to be set equally between the creator of the image and the viewer. The creator may make the extraction method public. In the extraction method, the distribution of the arrangement of the encrypted partial data 305 is made uniform over the entire encoded data body of the formatted image data 304. Specifically, the encrypted partial data 305 is extracted at regular intervals from the encryption start point of the encoded data body of the formatted image data 304. In this case, the creator determines the interval between the encryption start point and the data to be encrypted. Even if the encoded data body includes formatted data, it is extracted as it is. The entire encoded data body of the formatted image data 304 may be extracted as the encrypted partial data 305. The encrypted partial data 305 is sent to the encryption unit 302.

暗号化部302は暗号鍵データ306を用いて、暗号化部分データ305を所定の暗号法で暗号化し、暗号化された暗号化部分データ307を出力する。例えば暗号化にはAES,MISTYといった共通鍵暗号やRSA,楕円曲線暗号などの公開鍵暗号を用いる。暗号鍵データ306は暗号法の定めるところにより、対応する復号鍵データが存在し、暗号鍵データ306を作成者が、対応する復号鍵データを閲覧者が持つ。暗号化された暗号化部分データ307をデータ置換部303へ送る。   Using the encryption key data 306, the encryption unit 302 encrypts the encrypted partial data 305 using a predetermined encryption method, and outputs the encrypted encrypted partial data 307. For example, common key cryptography such as AES and MISTY, and public key cryptography such as RSA and elliptic curve cryptography are used for encryption. The encryption key data 306 has corresponding decryption key data as defined by the encryption method, and the creator has the encryption key data 306 and the viewer has the corresponding decryption key data. The encrypted encrypted partial data 307 is sent to the data replacing unit 303.

データ置換部303は形式化画像データ304,暗号化された暗号化部分データ307を入力とし、形式化された暗号化画像データ308を生成する。データ置換部303は、形式化画像データ304のうち、暗号化部分データ305に相当する部分を対応する暗号化された暗号化部分データ307に置き換える。このとき、形式化画像データ304が準ずる形式に違反したデータ構成になっても、それを補正せずに形式化された暗号化画像データ308として出力する。   The data replacement unit 303 receives the formatted image data 304 and the encrypted encrypted partial data 307, and generates the formatted encrypted image data 308. The data replacement unit 303 replaces the portion corresponding to the encrypted partial data 305 in the formatted image data 304 with the corresponding encrypted encrypted partial data 307. At this time, even if the formatted image data 304 has a data configuration that violates the conforming format, it is output as the formatted encrypted image data 308 without correction.

図5は、図3で暗号化された形式化された暗号化画像データ308を復号化する装置の構成を示すブロック図である。   FIG. 5 is a block diagram illustrating a configuration of an apparatus for decrypting the encrypted image data 308 that has been encrypted in FIG.

復号位置抽出部401は、形式化された暗号化画像データ405を入力とし、復号化部分データ406を抽出する。抽出法は画像暗号化時と同じである必要がある。   The decryption position extraction unit 401 receives the formatted encrypted image data 405 and extracts the decrypted partial data 406. The extraction method needs to be the same as in image encryption.

復号化部402は復号鍵データ407を用いて、復号化部分データ406を復号化し、復号化された復号化部分データ408を生成する。復号化部402は暗号化部302で行われた暗号法に対応する復号法を用いる。復号鍵データ407は暗号鍵データ306と対応する。   The decryption unit 402 decrypts the decrypted partial data 406 using the decryption key data 407, and generates decrypted decrypted partial data 408. The decryption unit 402 uses a decryption method corresponding to the encryption method performed by the encryption unit 302. The decryption key data 407 corresponds to the encryption key data 306.

データ置換部403は形式化された暗号化画像データ405と復号化された復号化部分データ408を入力とし、置換画像データ409を出力する。データ置換部403では、形式化された暗号化画像データ405のうち、復号化部分データ406に相当する部分を対応する復号化された復号化部分データ408に置き換える。   The data replacement unit 403 receives the formatted encrypted image data 405 and the decrypted decrypted partial data 408, and outputs replacement image data 409. The data replacement unit 403 replaces the portion corresponding to the decrypted partial data 406 in the formatted encrypted image data 405 with the corresponding decrypted decrypted partial data 408.

形式補正部404は置換画像データ409を形式化画像データ410に変換する。置換画像データ409について、それが準ずる形式に違反したデータ構成になった場合、その補正を行う。JPEG形式の場合、符号化されたデータ本体のうち、マーカEOI以外は値に16進数「ff」を持つところは、その次のデータに16進数「00」が挿入されている。しかし、暗号化画像データ404や誤った鍵で復号化された形式化画像データ410は、16進数「ff」の次のデータが16進数「00」である保障がない。この場合、16進数「ff」の次のデータに16進数「00」を挿入する。または16進数「ff」の次のデータとマーカEOIの下位1バイトのデータとを置換して処理を終了しても良い。正しい復号鍵データ407で復号化された場合、形式化画像データ410は形式化画像データ304と等しくなる。   The format correcting unit 404 converts the replacement image data 409 into the formatted image data 410. If the replacement image data 409 has a data configuration that violates the format that it conforms to, the correction is performed. In the case of the JPEG format, in the encoded data body, except for the marker EOI, the value having the hexadecimal number “ff” has the hexadecimal number “00” inserted in the next data. However, the encrypted image data 404 and the formatted image data 410 decrypted with the wrong key are not guaranteed that the data next to the hexadecimal number “ff” is the hexadecimal number “00”. In this case, the hexadecimal number “00” is inserted into the data next to the hexadecimal number “ff”. Alternatively, the processing may be terminated by replacing the data next to the hexadecimal number “ff” with the lower 1 byte data of the marker EOI. When decrypted with the correct decryption key data 407, the formatted image data 410 becomes equal to the formatted image data 304.

以上のように形式化されたままの画像データを暗号化し、復号化することで、暗号化された状態のデータでも再生が可能となる。画像データであれば暗号化された画像を閲覧することができる。また前記構成では、従来のJPEGエンコーダ等にカスケード接続することで、容易に暗号機能を実装することができる。   By encrypting and decrypting the image data as it is formatted as described above, it is possible to reproduce even the encrypted data. If it is image data, an encrypted image can be browsed. In the above configuration, the encryption function can be easily implemented by cascade connection to a conventional JPEG encoder or the like.

実施の形態3.
上記実施の形態2では、形式化された画像データを入力とし、画像データ中の符号化されたデータ本体を形式化されたまま暗号化する手法について説明したが、本実施の形態3では、形式化された画像データを入力とし、画像データ中の符号化されたデータ本体の形式化された表現を解いて暗号化する実施形態を示す。
Embodiment 3 FIG.
In the second embodiment, the method for encrypting the encoded data body in the image data with the formatted image data as input has been described. In the third embodiment, the format is used. An embodiment is described in which the encoded image data is input and the formalized representation of the encoded data body in the image data is resolved and encrypted.

図6は、このような場合の装置の構成を示すブロック図である。図3の場合は、暗号位置抽出部301は形式化画像データ304を入力として暗号化部分データ305を抽出し、形式化画像データ304のうち、符号化されたデータ本体の部分に暗号化を施す。   FIG. 6 is a block diagram showing the configuration of the apparatus in such a case. In the case of FIG. 3, the encryption position extraction unit 301 receives the formatted image data 304 and extracts the encrypted partial data 305, and encrypts the encoded data body portion of the formatted image data 304. .

図3との違いは、暗号位置抽出部502の前に符号化データ抽出部501がつき、その出力である符号化画像データ本体507が暗号位置抽出部502の入力となるところと、データ置換部504の出力が形式化されていない暗号化データ本体511となり、データ形式化部505に入力されるところである。   The difference from FIG. 3 is that an encoded data extraction unit 501 is attached in front of the encryption position extraction unit 502, and an encoded image data body 507 as an output thereof is input to the encryption position extraction unit 502, and a data replacement unit. The output 504 becomes an unformatted encrypted data body 511 and is input to the data formatting unit 505.

符号化データ抽出部501は形式化画像データ506を入力とし、符号化画像データ507を抽出する。符号化画像データ507は図1における符号化画像データ113と同一のものである。それを暗号位置抽出部502に入力する。   The encoded data extraction unit 501 receives the formatted image data 506 as input and extracts encoded image data 507. The encoded image data 507 is the same as the encoded image data 113 in FIG. This is input to the encryption position extraction unit 502.

暗号位置抽出部502は符号化画像データ507を入力とし、暗号化部分データ508を抽出する。暗号位置抽出部502は画像の作成者と閲覧者とで等しく設定されている必要がある。前記抽出法を前記作成者が公開しても良い。前記抽出法は符号化画像データ507に対して暗号化部分データ508の配置の分布が一様になるようにする。具体的には符号化画像データ507のある暗号化開始点から、一定間隔で暗号化部分データ508を抽出する。この場合、暗号化開始点と暗号化を行うデータの間隔を作成者が決定する。符号化画像データ507全てを暗号化部分データ508として抽出してもよい。暗号化部分データ508を暗号化部503へ送る。   The encryption position extraction unit 502 receives the encoded image data 507 as input and extracts the encrypted partial data 508. The encryption position extraction unit 502 needs to be set equally between the image creator and the viewer. The creator may make the extraction method public. The extraction method makes the distribution of the arrangement of the encrypted partial data 508 uniform with respect to the encoded image data 507. Specifically, the encrypted partial data 508 is extracted at regular intervals from a certain encryption start point of the encoded image data 507. In this case, the creator determines the interval between the encryption start point and the data to be encrypted. The entire encoded image data 507 may be extracted as the encrypted partial data 508. The encrypted partial data 508 is sent to the encryption unit 503.

暗号化部503は暗号鍵データ509を用いて、暗号化部分データ508を所定の暗号法で暗号化し、暗号化された暗号化部分データ510を出力する。例えば暗号化にはAES,MISTYといった共通鍵暗号やRSA,楕円曲線暗号などの公開鍵暗号を用いる。暗号鍵データ509は暗号法の定めるところにより、対応する復号鍵データが存在し、暗号鍵データ509を作成者が、対応する復号鍵データを閲覧者が持つ。暗号化された暗号化部分データ510をデータ置換部504へ送る。   Using the encryption key data 509, the encryption unit 503 encrypts the encrypted partial data 508 using a predetermined encryption method, and outputs the encrypted encrypted partial data 510. For example, common key cryptography such as AES and MISTY, and public key cryptography such as RSA and elliptic curve cryptography are used for encryption. The encryption key data 509 has corresponding decryption key data as defined by the encryption method, and the creator has the encryption key data 509 and the viewer has the corresponding decryption key data. The encrypted encrypted partial data 510 is sent to the data replacing unit 504.

データ置換部504は符号化画像データ507,暗号化された暗号化部分データ510を入力とし、暗号化画像データ511を生成する。データ置換部504は、符号化画像データ507のうち、暗号化部分データ508に相当する部分を対応する暗号化された暗号化部分データ510に置き換える。その結果を暗号化画像データ511とする。   The data replacement unit 504 receives the encoded image data 507 and the encrypted encrypted partial data 510, and generates encrypted image data 511. The data replacement unit 504 replaces the portion corresponding to the encrypted partial data 508 in the encoded image data 507 with the corresponding encrypted partial data 510. The result is defined as encrypted image data 511.

形式化部505は形式化画像データ506と暗号化画像データ511を入力とし、形式化された暗号化画像データ512を生成する。形式化部505は暗号化画像データ511を所定の形式に従い形式化した後、形式化画像データ506のうち符号化されたデータ本体と置換する。置換した画像データを形式化された暗号化画像データ512として出力する。   The formatting unit 505 receives the formatted image data 506 and the encrypted image data 511, and generates the formatted encrypted image data 512. The formatting unit 505 formats the encrypted image data 511 according to a predetermined format, and then replaces the encoded data body in the formatted image data 506. The replaced image data is output as formatted encrypted image data 512.

図7は、図6で暗号化された形式化された暗号化画像データ512を復号化する装置の構成を示すブロック図である。   FIG. 7 is a block diagram showing a configuration of an apparatus for decrypting the formalized encrypted image data 512 encrypted in FIG.

符号化データ抽出部601は形式化された暗号化画像データ606を入力とし、符号化画像データ607を抽出する。符号化画像データ607は図2における暗号化された符号化データ209と同一のものである。それを復号位置抽出部602に入力する。   The encoded data extraction unit 601 receives the formatted encrypted image data 606 as input, and extracts encoded image data 607. The encoded image data 607 is the same as the encrypted encoded data 209 in FIG. This is input to the decoding position extraction unit 602.

復号位置抽出部602は、符号化画像データ607を入力とし、復号化部分データ608を抽出する。抽出法は画像暗号化時と同じである必要がある。   Decoding position extraction section 602 receives encoded image data 607 as input, and extracts decoded partial data 608. The extraction method needs to be the same as in image encryption.

復号化部603は復号鍵データ609を用いて、復号化部分データ608を復号化し、復号化された復号化部分データ610を生成する。復号化部603は暗号化部503で行われた暗号法に対応する復号法を用いる。復号鍵データ609は暗号鍵データ509と対応する。   Using the decryption key data 609, the decryption unit 603 decrypts the decrypted partial data 608, and generates decrypted decrypted partial data 610. The decryption unit 603 uses a decryption method corresponding to the encryption method performed by the encryption unit 503. The decryption key data 609 corresponds to the encryption key data 509.

データ置換部604は符号化画像データ607,復号化された復号化部分データ610を入力とし、復号化画像データ611を生成する。データ置換部604は、符号化画像データ607のうち、復号化部分データ608に相当する部分を対応する復号化された復号化部分データ610に置き換える。その結果を復号化画像データ611とする。   The data replacement unit 604 receives the encoded image data 607 and the decoded partial data 610, and generates decoded image data 611. The data replacement unit 604 replaces a portion corresponding to the decoded partial data 608 in the encoded image data 607 with the corresponding decoded partial data 610. The result is set as decoded image data 611.

形式化部605は形式化された暗号化画像データ606と復号化画像データ611を入力とし、形式化画像データ612を生成する。形式化部605は復号化画像データ611を所定の形式に従い形式化した後、形式化された暗号化画像データ606のうち符号化されたデータ本体と置換する。置換した画像データを形式化画像データ612として出力する。   The formatting unit 605 receives the formatted encrypted image data 606 and the decrypted image data 611, and generates the formatted image data 612. The formatting unit 605 formats the decrypted image data 611 in accordance with a predetermined format, and then replaces the encoded data body in the formatted encrypted image data 606. The replaced image data is output as formalized image data 612.

以上のように形式化された画像データから、符号化された画像データを抽出した後に暗号化および復号化することで、暗号化された画像データに形式違反がなくなるので、暗号化された画像を既存のJPEGデコーダで閲覧することができる。また、実施の形態1と異なり形式化されたままの画像データを暗号化することで、従来のJPEGエンコーダ等にカスケード接続することで、容易に暗号機能を実装することができる。   Since the encoded image data is extracted from the image data formatted as described above and then encrypted and decrypted, there is no format violation in the encrypted image data. Can be viewed with an existing JPEG decoder. Also, unlike the first embodiment, by encrypting the image data that has been formatted, it is possible to easily implement the encryption function by cascading to a conventional JPEG encoder or the like.

輝度情報を含む画像データを暗号化する装置の構成を示すブロック図Block diagram showing the configuration of an apparatus for encrypting image data including luminance information 形式化された暗号化画像データを復号化する装置の構成を示すブロック図A block diagram showing a configuration of an apparatus for decrypting formatted encrypted image data 形式化された画像データを入力として暗号化する装置の構成を示すブロック図Block diagram showing the configuration of a device that encrypts formatted image data as input 符号化されたデータ本体の部分の暗号化開始点の検出法を示すフローチャートFlowchart showing a method for detecting the encryption start point of the encoded data body part 形式化された画像データを出力として復号化する装置の構成を示すブロック図The block diagram which shows the structure of the apparatus which decodes the formatted image data as an output 形式化された画像データを入力として画像データ中の符号化されたデータ本体の形式化された表現を解いて暗号化する装置の構成を示すブロック図A block diagram showing the configuration of an apparatus that uses formatted image data as input and solves and encrypts the formatted representation of the encoded data body in the image data. 形式化された画像データを出力として画像データ中の符号化されたデータ本体の形式化された表現を解いて復号化する装置の構成を示すブロック図A block diagram showing the configuration of an apparatus that uses the formatted image data as an output to decode and decode the formalized representation of the encoded data body in the image data JPEG圧縮された画像を形式化する際のフォーマットの一例を示す説明図Explanatory drawing which shows an example of the format when formatting a JPEG compressed image

符号の説明Explanation of symbols

101 周波数変換部
102 量子化部
103 算術符号化部
104 暗号位置抽出部
105 暗号化部
106 データ置換部
107 形式化部
108 画像データ
109 周波数画像データ
110 量子化テーブル
111 量子化画像データ
112 符号化テーブル
113 符号化画像データ
114 暗号化部分データ
115 暗号鍵データ
116 暗号化された暗号化部分データ
117 暗号化された符号化データ
118 形式化された暗号化画像データ
201 分解部
202 復号位置抽出部
203 復号化部
204 データ置換部
205 算術復号化部
206 逆量子化部
207 周波数逆変換部
208 形式化された暗号化画像データ
209 暗号化された符号化データ
210 復号化部分データ
211 復号鍵データ
212 復号化された復号化部分データ
213 符号化画像データ
214 符号化テーブル
215 量子化テーブル
216 算術復号化画像データ
217 逆量子化画像データ
218 画像データ
301 暗号位置抽出部
302 暗号化部
303 データ置換部
304 形式化画像データ
305 暗号化部分データ
306 暗号鍵データ
307 暗号化された暗号化部分データ
308 形式化された暗号化画像データ
401 復号位置抽出部
402 復号化部
403 データ置換部
404 形式補正部
405 形式化された暗号化画像データ
406 復号化部分データ
407 復号鍵データ
408 復号化された復号化部分データ
409 置換画像データ
410 形式化画像データ
501 符号化データ抽出部
502 暗号位置抽出部
503 暗号化部
504 データ置換部
505 形式化部
506 形式化画像データ
507 符号化画像データ本体
508 暗号化部分データ
509 暗号鍵データ
510 暗号化された暗号化部分データ
511 暗号化画像データ
512 形式化された暗号化画像データ
601 符号化データ抽出部
602 復号位置抽出部
603 復号化部
604 データ置換部
605 形式化部
606 形式化された暗号化画像データ
607 符号化画像データ
608 復号化部分データ
609 復号鍵データ
610 復号化された復号化部分データ
611 復号化画像データ
612 形式化画像データ
101 Frequency converter
102 Quantizer
103 Arithmetic coding part
104 Cryptographic position extraction unit
105 Encryption section
106 Data replacement part
107 Formatting Department
108 Image data
109 Frequency image data
110 Quantization table
111 Quantized image data
112 Coding table
113 Encoded image data
114 Encrypted partial data
115 Encryption key data
116 Encrypted encrypted partial data
117 Encrypted encoded data
118 Formatted encrypted image data
201 Disassembly part
202 Decoding position extraction unit
203 Decryption unit
204 Data replacement part
205 Arithmetic decoding part
206 Inverse quantization section
207 Frequency inverse converter
208 Formatted encrypted image data
209 Encoded encoded data
210 Decrypted partial data
211 Decryption key data
212 Decrypted partial data
213 Encoded image data
214 coding table
215 Quantization table
216 Arithmetic decoding image data
217 Dequantized image data
218 Image data
301 Cryptographic position extraction unit
302 Encryption section
303 Data replacement part
304 Formatted image data
305 Encrypted partial data
306 Encryption key data
307 Encrypted encrypted partial data
308 Formatted encrypted image data
401 Decoding position extraction unit
402 Decryption unit
403 Data replacement part
404 format correction
405 Formatted encrypted image data
406 Decrypted partial data
407 Decryption key data
408 Decrypted partial data
409 Replacement image data
410 Formatted image data
501 Encoded data extraction unit
502 Cryptographic position extraction unit
503 encryption unit
504 Data replacement part
505 Formatting Department
506 Formatted image data
507 Encoded image data
508 Encrypted partial data
509 Encryption key data
510 Encrypted encrypted partial data
511 Encrypted image data
512-format encrypted image data
601 Encoded data extractor
602 Decoding position extraction unit
603 Decryption unit
604 Data replacement part
605 Formatting Department
606 Formatted encrypted image data
607 Encoded image data
608 Decrypted partial data
609 Decryption key data
610 Decrypted partial data
611 Decoded image data
612 formatted image data

Claims (19)

算術符号で符号化されたデータを暗号化するデータ変換装置であって、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、前記符号化されたデータのうち、前記暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを抽出する暗号位置抽出部と、
前記暗号位置抽出部により抽出されたデータを暗号化する暗号化部と、
前記暗号化部により暗号化されたデータを前記符号化されたデータ本体中の前記暗号位置抽出部により抽出されたデータと置換するデータ置換部と
を備えることを特徴とするデータ変換装置。
A data conversion device for encrypting data encoded with an arithmetic code,
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, among the encoded data, the encryption data is uniformly distributed at regular intervals with respect to the entire encoded data. An encryption position extraction unit for extracting data to be converted,
An encryption unit for encrypting the data extracted by the encryption position extraction unit;
A data conversion device comprising: a data replacement unit that replaces the data encrypted by the encryption unit with the data extracted by the encryption position extraction unit in the encoded data body.
前記算術符号で符号化されたデータはJPEG圧縮されたデータであることを特徴とする請求項1記載のデータ変換装置。   The data conversion apparatus according to claim 1, wherein the data encoded with the arithmetic code is JPEG compressed data. 前記算術符号で符号化されたデータはJPEG圧縮された上で、所定の形式で記述されたデータであることを特徴とする請求項2記載のデータ変換装置。   3. The data conversion apparatus according to claim 2, wherein the data encoded with the arithmetic code is data described in a predetermined format after JPEG compression. 前記暗号化されたデータを復号するデータ変換装置であって、
形式化された暗号化データより、暗号化された符号化データを抽出する分解部と、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、前記暗号化された符号化データを選択することにより、前記暗号化された符号化データから暗号化された部分データを前記暗号化された符号化データ全体に対して一定間隔で抽出する復号位置抽出部と、
前記暗号化された部分データを所定の鍵データと復号法で復号化し、復号化された部分データを生成する復号化部と、
前記暗号化された符号化データの前記暗号化された部分データを対応する前記復号化された部分データに置換するデータ置換部とを備えることを特徴とするデータ変換装置。
A data conversion device for decrypting the encrypted data,
A decomposing unit that extracts encrypted encoded data from the formatted encrypted data;
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted A decoding position for extracting the encrypted partial data from the encrypted encoded data at regular intervals by selecting the encrypted encoded data; An extractor;
A decryption unit that decrypts the encrypted partial data with a predetermined key data and a decryption method, and generates the decrypted partial data;
A data conversion device comprising: a data replacement unit that replaces the encrypted partial data of the encrypted encoded data with the corresponding decoded partial data.
算術符号で符号化されたデータを暗号化するデータ変換方法であって、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、符号化されたデータのうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記符号化されたデータ本体中の前記抽出されたデータと置換するステップと
を備えることを特徴とするデータ変換方法。
A data conversion method for encrypting data encoded with arithmetic codes,
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting data to be encrypted, among the encoded data, the arrangement of data to be encrypted is uniformly distributed at regular intervals with respect to the entire encoded data, and the encryption is performed. Extracting the data to perform;
Encrypting the extracted data;
Replacing the encrypted data with the extracted data in the encoded data body.
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、算術符号で符号化されたデータのうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記符号化されたデータ本体中の前記抽出されたデータと置換するステップと
をコンピュータに実行させることを特徴とするデータ変換プログラム。
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, among the data encoded with arithmetic codes, the arrangement of the data to be encrypted is uniformly distributed at regular intervals with respect to the entire encoded data, and Extracting data to be encrypted;
Encrypting the extracted data;
A data conversion program for causing a computer to execute a step of replacing the extracted data with the extracted data in the encoded data body.
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、算術符号で符号化されたデータのうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記符号化されたデータ本体中の前記抽出されたデータと置換するステップと
をコンピュータに実行させるためのデータ変換プログラムを記録したコンピュータ読み取り可能な記録媒体。
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, among the data encoded with arithmetic codes, the arrangement of the data to be encrypted is uniformly distributed at regular intervals with respect to the entire encoded data, and Extracting data to be encrypted;
Encrypting the extracted data;
A computer-readable recording medium storing a data conversion program for causing a computer to execute the step of replacing the extracted data in the encoded data body with the encrypted data.
算術符号で符号化され、かつ所定の形式により形式化された符号化データを暗号化するデータ変換装置であって、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、形式化された符号化データ中の符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出する暗号位置抽出部と、
前記暗号位置抽出部により抽出されたデータを暗号化する暗号化部と、
前記暗号化部により暗号化されたデータを前記形式化された符号化データ中の前記暗号位置抽出部により抽出されたデータと置換するデータ置換部と
を備えることを特徴とするデータ変換装置。
A data conversion device that encrypts encoded data encoded with an arithmetic code and formatted according to a predetermined format,
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, the arrangement of the data to be encrypted among the encoded data bodies in the encoded data that has been formatted is arranged at regular intervals with respect to the entire encoded data. An encryption position extraction unit for extracting the data to be encrypted uniformly distributed from the encoded data body;
An encryption unit for encrypting the data extracted by the encryption position extraction unit;
A data conversion device comprising: a data replacement unit that replaces the data encrypted by the encryption unit with the data extracted by the encryption position extraction unit in the formalized encoded data.
前記暗号位置抽出部は、前記形式化された符号化データ中に形式化されたデータ構造がある場合、そのデータ構造に変更を加えずにデータの抽出を行うことを特徴とする請求項記載のデータ変換装置。 The encryption position extracting unit, if there is a formalized data structure in the form of encoded data, according to claim 8, wherein the performing the extraction of data without making any changes to the data structure Data converter. 前記データ置換部は、置換後のデータ構造が所定の形式に違反しても、前記違反を修正せずに置換することを特徴とする請求項記載のデータ変換装置。 9. The data conversion apparatus according to claim 8 , wherein the data replacement unit performs replacement without correcting the violation even if the data structure after replacement violates a predetermined format. 号化された形式化された暗号化データを復号化するデータ変換装置であって、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、暗号化された形式化された暗号化データ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化されたデータを選択することにより、前記形式化された暗号化データから暗号化された部分データを前記暗号化された暗号化データ全体に対して一定間隔で抽出する復号位置抽出部と、
前記復号位置抽出部により抽出された暗号化された部分データを所定の鍵データと復号法で復号化する復号化部と、
前記暗号化された符号化データの暗号化された部分データを対応する復号化された部分データに置換するデータ置換部と、
前記データ置換部により置換された符号化データを所定の形式に従い形式化する形式補正部と
を備えることを特徴とするデータ変換装置。
A data conversion apparatus for decoding encrypted format of encrypted data,
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encrypted formalized encrypted data body, the data to be encrypted By selecting encrypted data at intervals indicated by the interval , partial data encrypted from the formatted encrypted data is extracted at regular intervals with respect to the entire encrypted encrypted data. A decoding position extraction unit to perform,
A decryption unit that decrypts the encrypted partial data extracted by the decryption position extraction unit using predetermined key data and a decryption method;
A data replacement unit that replaces the encrypted partial data of the encrypted encoded data with the corresponding decrypted partial data;
A data conversion apparatus comprising: a format correction unit that formats the encoded data replaced by the data replacement unit according to a predetermined format.
算術符号で符号化され、かつ所定の形式により形式化された符号化データを暗号化するデータ変換方法であって、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、形式化された符号化データ中の符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記形式化された符号化データ中の前記抽出されたデータと置換するステップと
を備えることを特徴とするデータ変換方法。
A data conversion method for encrypting encoded data encoded with an arithmetic code and formatted according to a predetermined format,
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, the arrangement of the data to be encrypted among the encoded data bodies in the encoded data that has been formatted is arranged at regular intervals with respect to the entire encoded data. Extracting uniformly encoded data for encryption from the encoded data body;
Encrypting the extracted data;
Replacing the encrypted data with the extracted data in the formalized encoded data. A data conversion method comprising:
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、所定の形式により形式化された符号化データ中の算術符号で符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記形式化された符号化データ中の前記抽出されたデータと置換するステップと
をコンピュータに実行させることを特徴とするデータ変換プログラム。
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted The data arrangement to be encrypted is selected from among the data body encoded with the arithmetic code in the encoded data formatted in a predetermined format by selecting the data to be encrypted. Extracting from the encoded data body the data that is uniformly distributed at regular intervals over the whole and that performs the encryption;
Encrypting the extracted data;
A computer program for causing a computer to execute the step of replacing the extracted data in the formalized encoded data with the encrypted data.
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、所定の形式により形式化された符号化データ中の算術符号で符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記形式化された符号化データ中の前記抽出されたデータと置換するステップと
をコンピュータに実行させるためのデータ変換プログラムを記録したコンピュータ読み取り可能な記録媒体。
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted The data arrangement to be encrypted is selected from among the data body encoded with the arithmetic code in the encoded data formatted in a predetermined format by selecting the data to be encrypted. Extracting from the encoded data body the data that is uniformly distributed at regular intervals over the whole and that performs the encryption;
Encrypting the extracted data;
A computer-readable recording medium storing a data conversion program for causing a computer to execute the step of replacing the extracted data in the formalized encoded data with the encrypted data.
算術符号で符号化され、かつ所定の形式により形式化された符号化データを暗号化するデータ変換装置であって、
形式化された符号化データ中から、符号化されたデータ本体を抽出する符号化データ抽出部と、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、暗号化するデータを選択することにより、前記符号化データ抽出部により抽出された前記符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出する暗号位置抽出部と、
前記暗号位置抽出部により抽出されたデータを暗号化する暗号化部と、
前記暗号化部により暗号化されたデータを前記形式化された符号化データ中の前記暗号位置抽出部により抽出されたデータと置換するデータ置換部と、
前記データ置換部により置換されたデータを所定の形式に従い形式化する形式化部と
を備えることを特徴とするデータ変換装置。
A data conversion device that encrypts encoded data encoded with an arithmetic code and formatted according to a predetermined format,
An encoded data extraction unit that extracts an encoded data body from the encoded data that has been formatted;
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted , By selecting data to be encrypted, out of the encoded data body extracted by the encoded data extraction unit, the arrangement of data to be encrypted is fixed with respect to the entire encoded data An encryption position extraction unit for extracting data to be encrypted by being uniformly distributed at intervals from the encoded data body;
An encryption unit for encrypting the data extracted by the encryption position extraction unit;
A data replacement unit that replaces the data encrypted by the encryption unit with the data extracted by the encryption position extraction unit in the formalized encoded data;
A data conversion apparatus comprising: a formatting unit that formats the data replaced by the data replacement unit according to a predetermined format.
前記暗号化された形式化された暗号化データを復号化するデータ変換装置であって、
形式化された暗号化データから暗号化されたデータ本体を抽出する符号化データ抽出部と、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、前記暗号化されたデータを選択することにより、前記符号化データ抽出部により抽出された暗号化されたデータ本体から暗号化された部分データを前記暗号化されたデータ全体に対して一定間隔で抽出する復号位置抽出部と、
前記復号位置抽出部により抽出された暗号化された部分データを所定の鍵データと復号法で復号化し、復号化された部分データを生成する復号化部と、
前記暗号化されたデータ本体の前記暗号化された部分データを対応する前記復号化部により復号化された部分データに置換するデータ置換部と、
前記データ置換部により置換された暗号化データを所定の形式に従い形式化する形式補正部と
を備えることを特徴とするデータ変換装置。
A data conversion device for decrypting the encrypted and formatted encrypted data,
An encoded data extraction unit that extracts an encrypted data body from the formatted encrypted data;
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted , By selecting the encrypted data, the partial data encrypted from the encrypted data body extracted by the encoded data extraction unit is set at regular intervals with respect to the entire encrypted data. A decoding position extraction unit to extract;
A decryption unit that decrypts the encrypted partial data extracted by the decryption position extraction unit using predetermined key data and a decryption method, and generates decrypted partial data;
A data replacement unit that replaces the encrypted partial data of the encrypted data body with the corresponding partial data decrypted by the corresponding decryption unit;
A data conversion apparatus comprising: a format correction unit that formats the encrypted data replaced by the data replacement unit according to a predetermined format.
算術符号で符号化され、かつ所定の形式により形式化された符号化データを暗号化するデータ変換方法であって、
形式化された符号化データ中から、符号化されたデータ本体を抽出するステップと、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、前記暗号化するデータを選択することにより、前記抽出された前記符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記形式化された符号化データ中の前記抽出されたデータと置換するステップと、
前記置換されたデータを所定の形式に従い形式化するステップと
を備えることを特徴とするデータ変換方法。
A data conversion method for encrypting encoded data encoded with an arithmetic code and formatted according to a predetermined format,
Extracting the encoded data body from the formatted encoded data; and
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, the arrangement of the data to be encrypted among the extracted encoded data bodies is made uniform at regular intervals with respect to the entire encoded data. Extracting the data to be distributed and encrypted from the encoded data body;
Encrypting the extracted data;
Replacing the encrypted data with the extracted data in the formalized encoded data;
And a step of formatting the replaced data according to a predetermined format.
所定の形式により形式化された符号化データ中から、算術符号で符号化されたデータ本体を抽出するステップと、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、前記暗号化するデータを選択することにより、前記抽出された前記符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記形式化された符号化データ中の前記抽出されたデータと置換するステップと、
前記置換されたデータを所定の形式に従い形式化するステップと
をコンピュータに実行させることを特徴とするデータ変換プログラム。
Extracting a data body encoded with an arithmetic code from encoded data formatted according to a predetermined format;
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, the arrangement of the data to be encrypted among the extracted encoded data bodies is made uniform at regular intervals with respect to the entire encoded data. Extracting the data to be distributed and encrypted from the encoded data body;
Encrypting the extracted data;
Replacing the encrypted data with the extracted data in the formalized encoded data;
A data conversion program for causing a computer to execute the step of formatting the replaced data according to a predetermined format.
所定の形式により形式化された符号化データ中から、算術符号で符号化されたデータ本体を抽出するステップと、
データの作成者が決定した暗号化開始点と暗号化を行うデータの間隔とに基づき、符号化されたデータ本体の前記暗号化開始点から、前記暗号化を行うデータの間隔の示す間隔おきに、前記暗号化するデータを選択することにより、前記抽出された前記符号化されたデータ本体のうち、暗号化を行うデータの配置を前記符号化されたデータ全体に対して一定間隔で一様に分布させて前記暗号化を行うデータを前記符号化されたデータ本体から抽出するステップと、
前記抽出されたデータを暗号化するステップと、
前記暗号化されたデータを前記形式化された符号化データ中の前記抽出されたデータと置換するステップと、
前記置換されたデータを所定の形式に従い形式化するステップと
をコンピュータに実行させるためのデータ変換プログラムを記録したコンピュータ読み取り可能な記録媒体。
Extracting a data body encoded with an arithmetic code from encoded data formatted according to a predetermined format;
Based on the encryption start point determined by the creator of the data and the interval of the data to be encrypted, from the encryption start point of the encoded data body, every interval indicated by the interval of the data to be encrypted By selecting the data to be encrypted, the arrangement of the data to be encrypted among the extracted encoded data bodies is made uniform at regular intervals with respect to the entire encoded data. Extracting the data to be distributed and encrypted from the encoded data body;
Encrypting the extracted data;
Replacing the encrypted data with the extracted data in the formalized encoded data;
A computer-readable recording medium recording a data conversion program for causing a computer to execute the step of formatting the replaced data according to a predetermined format.
JP2005203139A 2005-07-12 2005-07-12 Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded Expired - Fee Related JP4821200B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005203139A JP4821200B2 (en) 2005-07-12 2005-07-12 Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005203139A JP4821200B2 (en) 2005-07-12 2005-07-12 Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded

Publications (2)

Publication Number Publication Date
JP2007027860A JP2007027860A (en) 2007-02-01
JP4821200B2 true JP4821200B2 (en) 2011-11-24

Family

ID=37788080

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005203139A Expired - Fee Related JP4821200B2 (en) 2005-07-12 2005-07-12 Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded

Country Status (1)

Country Link
JP (1) JP4821200B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4812117B2 (en) * 2007-03-16 2011-11-09 日本放送協会 Content encryption apparatus and program thereof, and content decryption apparatus and program thereof
JP4883701B2 (en) * 2007-03-16 2012-02-22 日本放送協会 Content decoding apparatus, method and program thereof
JP2009213083A (en) * 2008-03-06 2009-09-17 Hitachi Kokusai Electric Inc Image compression method and apparatus
EP2532156A1 (en) * 2010-02-03 2012-12-12 Thomson Licensing Valid replacement data in encoded video

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001045265A (en) * 1999-07-30 2001-02-16 Olympus Optical Co Ltd Image signal processor
JP2001352452A (en) * 2000-06-09 2001-12-21 Matsushita Electric Ind Co Ltd Scanner and recording medium
JP2003153228A (en) * 2001-11-15 2003-05-23 Sony Corp Image encoding apparatus and image decoding apparatus
JP3894883B2 (en) * 2002-12-13 2007-03-22 シャープ株式会社 Image forming apparatus
JP3687675B2 (en) * 2002-12-25 2005-08-24 株式会社ニコン Electronic camera having digital watermark function and image processing program
JP4371663B2 (en) * 2003-01-14 2009-11-25 キヤノン株式会社 Information processing apparatus and information processing method
JP4136812B2 (en) * 2003-07-01 2008-08-20 キヤノン株式会社 Image encryption method, image encryption / decryption method and apparatus thereof, and computer program and computer-readable storage medium

Also Published As

Publication number Publication date
JP2007027860A (en) 2007-02-01

Similar Documents

Publication Publication Date Title
Long et al. Separable reversible data hiding and encryption for HEVC video
Lin et al. Issues and solutions for authenticating MPEG video
JP4728104B2 (en) Electronic image authenticity guarantee method and electronic data disclosure system
US7295673B2 (en) Method and system for securing compressed digital video
US8046580B2 (en) Data processing apparatus and method for generation of protection compression encoded data
US20040037421A1 (en) Parital encryption of assembled bitstreams
JP6608436B2 (en) Encoder, decoder and method using partial data encryption
US9712845B2 (en) Media content processing method
CN105378679A (en) Method and system for media path security
JP2005236442A (en) Watermark padding device and method, and watermark extracting device and method
JP5393886B2 (en) Media encryption device, media encryption / decryption device, media encryption method, and media encryption / decryption method
JP4821200B2 (en) Data conversion apparatus, data conversion method, data conversion program, and computer-readable recording medium on which data conversion program is recorded
US7567670B2 (en) Verification information for digital video signal
JP2010068421A (en) Digital watermark apparatus and digital watermark method
WO2007085632A1 (en) Method of watermarking digital data
EP1342333B1 (en) Partial encryption of assembled bitstreams
JP2010021931A (en) Video image transmitter and video image receiver
JP4834006B2 (en) Digital watermark embedding method, digital watermark detection method, digital watermark embedding device, and digital watermark detection device
JP4932452B2 (en) Data conversion apparatus, data conversion method, and program
JP4414328B2 (en) Image processing apparatus and image processing apparatus
Rezaei et al. Content-independent steganography and steganalysis of JPEG images
JP4834007B2 (en) Digital watermark embedding method, digital watermark detection method, digital watermark embedding device, and digital watermark detection device
JP2006238455A (en) Image reproducing method and apparatus and recording medium
JP2007081595A (en) Encoder, decoder, encoding method, decoding method and their program
CN118338045A (en) Video code stream encryption method, video code stream decryption method and related devices

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080528

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110118

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110713

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110809

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: 20110822

R151 Written notification of patent or utility model registration

Ref document number: 4821200

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20140916

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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