JP2012244415A - Cryptographic processing device - Google Patents

Cryptographic processing device Download PDF

Info

Publication number
JP2012244415A
JP2012244415A JP2011112601A JP2011112601A JP2012244415A JP 2012244415 A JP2012244415 A JP 2012244415A JP 2011112601 A JP2011112601 A JP 2011112601A JP 2011112601 A JP2011112601 A JP 2011112601A JP 2012244415 A JP2012244415 A JP 2012244415A
Authority
JP
Japan
Prior art keywords
image
importance
unit
storage unit
processing
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.)
Withdrawn
Application number
JP2011112601A
Other languages
Japanese (ja)
Inventor
Takeshi Matsui
健 松井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011112601A priority Critical patent/JP2012244415A/en
Publication of JP2012244415A publication Critical patent/JP2012244415A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a cryptographic processing device which increases the number of cryptographic communication connections and maintains a decoding rate of a cryptographic communication connection of high importance.SOLUTION: A display device 107, which receives image data transmitted from an imaging device 102 via packet communications based on IPsec protocols, determines a degree of importance of image data received by an importance degree determination module 115, and preferentially stores security association (SA) corresponding to transmission of the image of high importance to a first SA storage module (SRAM) 116.

Description

本発明は、複数の暗号通信接続を同時並行的に確立し、暗号処理を行う暗号処理技術に関する。   The present invention relates to a cryptographic processing technique for establishing a plurality of cryptographic communication connections in parallel and performing cryptographic processing.

通信端末間を安全な専用回線で接続するのと同様のセキュリティを確保できる通信技術として、IPsec (IP Security Protocol)プロトコルなどが実用化されている。
IPsecプロトコルを用いた暗号通信の接続においては、送信側と受信側で暗号アルゴリズムや暗号鍵などの情報を共有しなければならない。これらの情報は、セキュリティアソシエーション(以下SAとする)と呼ばれており、暗号アルゴリズムや暗号鍵の他に、イニシャルベクタなどの情報を含むデータコンテクストとして送信端及び受信端の装置で管理されている。SAのコンテクストはIPsecのRFCとして標準化されており、暗号処理装置は送信端と受信端で共有されたSAをパケット毎に参照しながら暗号化及び復号化を行う。
一方、多数の暗号通信コネクションを高速に処理する手法として、例えば暗号処理回路を複数個並列に構成し、複数の暗号通信コネクションを同時に処理する方法がある。しかしながら、暗号通信コネクション数に応じて暗号処理回路を増加することは、回路面積や消費電力の観点から現実的な解決策とは言えない。そのため、複数の暗号通信コネクションに対するパケットを、一つの暗号処理回路で時分割多重処理して対応することが多い。
ここで、IPsecを用いた暗号通信処理を時分割多重で実行した場合、何らかの記憶領域からパケット毎に異なるSAを随時読み出す必要がある。このSAの読み出し速度が低速である場合には、それが暗号通信処理全体のボトルネックになってしまう。特にシステム全体で共有する共有メモリにSAを配置した場合には、SAを読み出すための遅延時間が大きくなり、暗号通信処理の処理性能が低下するという課題がある。
この課題を解決する一手段として、高速な読み出しが可能な専用メモリ領域にSAを配置することが考えられる。例えば、暗号処理装置がCPU、専用ハードウェア装置で構成される場合には、何れもが、高速に読み出し可能なキャッシュ・メモリ(以下キャッシュとする)にSAを配置する(特許文献1)。
An IPsec (IP Security Protocol) protocol or the like has been put into practical use as a communication technology that can ensure the same security as that of connecting communication terminals with a secure dedicated line.
In connection of encryption communication using the IPsec protocol, information such as an encryption algorithm and an encryption key must be shared between the transmission side and the reception side. These pieces of information are called security associations (hereinafter referred to as SA), and are managed by the transmitting end and receiving end devices as a data context including information such as initial vectors in addition to the encryption algorithm and the encryption key. . The SA context is standardized as an IPsec RFC, and the cryptographic processing apparatus performs encryption and decryption while referring to the SA shared by the transmission end and the reception end for each packet.
On the other hand, as a technique for processing a large number of cryptographic communication connections at high speed, for example, there is a method of processing a plurality of cryptographic communication connections simultaneously by configuring a plurality of cryptographic processing circuits in parallel. However, increasing the number of cryptographic processing circuits according to the number of cryptographic communication connections is not a realistic solution from the viewpoint of circuit area and power consumption. For this reason, it is often the case that packets for a plurality of encryption communication connections are processed by time division multiplexing with a single encryption processing circuit.
Here, when cryptographic communication processing using IPsec is executed by time division multiplexing, it is necessary to read out different SAs for each packet from any storage area as needed. When the SA reading speed is low, it becomes a bottleneck of the entire cryptographic communication processing. In particular, when an SA is arranged in a shared memory shared by the entire system, there is a problem that a delay time for reading the SA increases, and the processing performance of the cryptographic communication processing is lowered.
As a means for solving this problem, it is conceivable to arrange the SA in a dedicated memory area where high-speed reading is possible. For example, when the cryptographic processing device is composed of a CPU and a dedicated hardware device, the SA is placed in a cache memory (hereinafter referred to as a cache) that can be read at high speed (Patent Document 1).

特開2004−096178号公報JP 2004-096178 A

通常の組み込みシステムにおいてキャッシュはSRAMとして実装されるが、チップコスト低減の観点からキャッシュ容量は極力小さく抑える必要がある。このため、暗号通信コネクション数が増加した場合、全てのSAをキャッシュに収めることができず、共有メモリにも配置する必要が生じる場合がある。ここで、もし高速な復号化が必要な重要度の高い暗号通信コネクションがあったとしても、当該暗号通信コネクションに対応するSAが共有メモリに配置されていた場合、その復号化を所望の時間内に終えられなくなる可能性が高まるという課題がある。
そこで本発明は、暗号通信コネクション数の増加と、重要度の高い暗号通信コネクションの復号速度の維持とを両立することを目的とする。
In a normal embedded system, the cache is implemented as an SRAM, but the cache capacity needs to be kept as small as possible from the viewpoint of chip cost reduction. For this reason, when the number of encrypted communication connections increases, all SAs cannot be stored in the cache and may need to be arranged in the shared memory. Here, even if there is a highly important encrypted communication connection requiring high-speed decryption, if the SA corresponding to the encrypted communication connection is arranged in the shared memory, the decryption is performed within a desired time. There is a problem that the possibility of not being able to finish is increased.
Accordingly, an object of the present invention is to achieve both an increase in the number of encrypted communication connections and maintenance of a decryption speed of highly important encrypted communication connections.

本発明の暗号処理装置は、暗号化された情報を受信する受信手段と、伝送経路上の暗号通信の確立に必要な情報群を記憶する第一の記憶手段及び第二の記憶手段と、前記暗号化された情報の重要度を判定する重要度判定手段と、前記重要度判定手段の判定結果に基づいて前記情報群の記憶先を選択する選択手段とを有し、前記第1の記憶手段は、前記第二の記憶手段より、高速に読み出すことができ、前記選択手段は、重要度の高い情報の受信に対応する前記情報群の記憶先として、前記第一の記憶手段を選択することを特徴とすることを特徴とする。   The cryptographic processing apparatus of the present invention includes a receiving unit that receives encrypted information, a first storage unit and a second storage unit that store a group of information necessary for establishing encrypted communication on a transmission path, The first storage unit includes an importance level determination unit that determines the level of importance of the encrypted information, and a selection unit that selects a storage destination of the information group based on a determination result of the importance level determination unit. Can be read at a higher speed than the second storage means, and the selection means selects the first storage means as the storage destination of the information group corresponding to reception of highly important information. It is characterized by.

本発明によれば、暗号通信コネクション数の増加と、重要度の高い暗号通信コネクションの復号速度の維持とを両立することができる。   According to the present invention, it is possible to achieve both an increase in the number of encrypted communication connections and maintenance of the decryption speed of highly important encrypted communication connections.

ネットワークカメラシステムの機能構成を示すブロック図。The block diagram which shows the function structure of a network camera system. ネットワークカメラシステムのハードウェア構成を示すブロック図。The block diagram which shows the hardware constitutions of a network camera system. 新規に受信したSAを記憶する際の動作を示すフローチャート。The flowchart which shows the operation | movement at the time of memorize | storing newly received SA. SAと対応づけられる画像の重要度を更新する際の動作を示すフローチャート。The flowchart which shows the operation | movement at the time of updating the importance of the image matched with SA. SAと対応づけられる画像の重要度を更新する際の動作を示す別のフローチャート。10 is another flowchart showing an operation when updating the importance of an image associated with SA. 復号処理のフローチャート。The flowchart of a decoding process.

まず本発明の実施形態として、IPsecを用いて画像伝送を行うネットワークカメラシステムについて、図1を用いて説明する。   First, as an embodiment of the present invention, a network camera system that performs image transmission using IPsec will be described with reference to FIG.

図1は、本実施形態におけるネットワークカメラシステム101の構成を示している。ネットワークカメラシステム101では、撮像装置102、撮像装置103、撮像装置104、撮像装置105から、表示装置107に対してIPsecを用いて画像伝送を行う。なお、撮像装置の数は4つに限らず、増減して構わない。   FIG. 1 shows the configuration of a network camera system 101 in the present embodiment. In the network camera system 101, image transmission is performed from the imaging device 102, the imaging device 103, the imaging device 104, and the imaging device 105 to the display device 107 using IPsec. Note that the number of imaging devices is not limited to four and may be increased or decreased.

撮像装置102は、撮像部108と、IPsec暗号化部109と、パケット送信部110から構成される。撮像部108は、イメージセンサおよび画像処理回路により外部からの入射光をデジタル化し、画像データを作成する。また、当該画像データをTCP/IPあるいはUDPに準ずる形式のパケットに分割する。IPsec暗号化部109は、撮像部108が作成したパケットを、IPsecプロトコルによりあらかじめ定められた暗号化方式で暗号化する。パケット送信部110は、IPsec暗号化部109により暗号化された前記パケットを伝送路106に送出する。   The imaging apparatus 102 includes an imaging unit 108, an IPsec encryption unit 109, and a packet transmission unit 110. The imaging unit 108 digitizes incident light from the outside using an image sensor and an image processing circuit, and creates image data. The image data is divided into packets conforming to TCP / IP or UDP. The IPsec encryption unit 109 encrypts the packet created by the imaging unit 108 using an encryption method determined in advance by the IPsec protocol. The packet transmission unit 110 transmits the packet encrypted by the IPsec encryption unit 109 to the transmission path 106.

撮像装置103、撮像装置104、撮像装置105は、撮像装置102と同じ構成(撮像部108と、IPsec暗号化部109と、パケット送信部110)を持つので、ここでは説明を省略する。   Since the imaging device 103, the imaging device 104, and the imaging device 105 have the same configuration as the imaging device 102 (the imaging unit 108, the IPsec encryption unit 109, and the packet transmission unit 110), description thereof is omitted here.

伝送路106は、撮像装置102をはじめとする複数の撮像装置と表示装置107とを接続する伝送路である。   The transmission path 106 is a transmission path that connects a plurality of imaging devices including the imaging device 102 and the display device 107.

表示装置107は、パケット受信部111、IPsec復号化部112、表示部113、SA配置制御部114、重要度判定部115、第一SA記憶部116、第二SA記憶部117から構成される。パケット受信部111は、パケット送信部110から伝送路106を介して伝送されたパケットを受信する。IPsec復号化部112は、パケット受信部111が受信したパケットについて、第一SA記憶部116あるいは第二SA記憶部117にあらかじめ記憶されたSA(復号する際に用いる情報)に基づいて当該パケットを復号化する。またIPsec復号化部112は、復号化したパケットを収集し、画像データとして再構成する。表示部113は、IPsec復号化部112が再構成した画像データを表示する。本実施形態では、撮像装置102およびそれと同じ構成を持つ撮像装置103、撮像装置104、撮像装置105から伝送された画像を、一台のディスプレイ上で四分割表示する形態をとる。   The display device 107 includes a packet receiving unit 111, an IPsec decoding unit 112, a display unit 113, an SA arrangement control unit 114, an importance level determination unit 115, a first SA storage unit 116, and a second SA storage unit 117. The packet receiver 111 receives a packet transmitted from the packet transmitter 110 via the transmission path 106. The IPsec decryption unit 112 processes the packet received by the packet receiving unit 111 based on the SA (information used when decrypting) stored in advance in the first SA storage unit 116 or the second SA storage unit 117. Decrypt. The IPsec decoding unit 112 collects the decoded packets and reconstructs them as image data. The display unit 113 displays the image data reconstructed by the IPsec decoding unit 112. In the present embodiment, an image transmitted from the image capturing apparatus 102 and the image capturing apparatus 103, the image capturing apparatus 104, and the image capturing apparatus 105 having the same configuration is displayed in four divisions on one display.

SA配置制御部114は、パケット受信部111からSAを受け取り、第一SA記憶部116または第二SA記憶部117に当該SAを配置する。また、重要度判定部115が判定した画像の重要度に基づき、重要な画像を伝送するコネクションに対応するSAを、第二SA記憶部117より第一SA記憶部116に優先的に配置する。このSAの配置に関しては後述する。   The SA placement control unit 114 receives the SA from the packet reception unit 111 and places the SA in the first SA storage unit 116 or the second SA storage unit 117. Further, based on the importance of the image determined by the importance determination unit 115, the SA corresponding to the connection for transmitting the important image is preferentially arranged in the first SA storage unit 116 from the second SA storage unit 117. The arrangement of SA will be described later.

重要度判定部115は、IPsec復号化部112が復号化したパケットを収集し、画像データとして再構成した上で、当該画像の重要度を判定する。たとえば顔認識、人体検知、動体物検知といった画像認識アルゴリズムを用いることで、人体や動体物が画像中に含まれていると判断できた場合、当該画像をその他の画像より重要な画像と判定する。また、表示装置107に画像の重要度を手動で設定する入力装置を加え、当該入力装置からの入力に従って画像の重要度を判定してもよい(図示しない)。あるいは、画像と同時に音声を伝送するネットワークカメラシステムを構築した場合、音声の有無や特徴などに応じて画像の重要度を判定してもよい(図示しない)。そしてその上で、判定した重要度をSA配置制御部114に通知する。重要度は整数値で表すものとし、その範囲はネットワークカメラシステム101の構成に基づきあらかじめ決定する。   The importance determination unit 115 collects the packets decoded by the IPsec decoding unit 112, reconstructs them as image data, and determines the importance of the image. For example, when an image recognition algorithm such as face recognition, human body detection, or moving object detection is used and it can be determined that the human body or moving object is included in the image, the image is determined to be more important than the other images. . Further, an input device for manually setting the importance level of the image may be added to the display device 107, and the importance level of the image may be determined according to an input from the input device (not shown). Alternatively, when a network camera system that transmits audio simultaneously with an image is constructed, the importance of the image may be determined according to the presence or absence of audio, characteristics, and the like (not shown). Then, the determined importance is notified to the SA placement control unit 114. The importance is represented by an integer value, and the range is determined in advance based on the configuration of the network camera system 101.

第一SA記憶部116は、SA配置制御部114から受け取ったSAを記憶する。第一SA記憶部116に記憶されたSAは、第二SA記憶部117に記憶されたSAに比べ、高速に読み出すことができる。ただし、第一SA記憶部116に記憶できるSAの数は、第二SA記憶部117に記憶できるSAの数より少ない。第二SA記憶部117は、SA配置制御部114から受け取ったSAを記憶する。第二SA記憶部117に記憶されたSAは、第一SA記憶部116に記憶されたSAに比べ、高速に読み出すことができない。ただし、第二SA記憶部117に記憶できるSAの数は、第一SA記憶部116に記憶できるSAの数より多い。   The first SA storage unit 116 stores the SA received from the SA arrangement control unit 114. The SA stored in the first SA storage unit 116 can be read out faster than the SA stored in the second SA storage unit 117. However, the number of SAs that can be stored in the first SA storage unit 116 is smaller than the number of SAs that can be stored in the second SA storage unit 117. The second SA storage unit 117 stores the SA received from the SA arrangement control unit 114. The SA stored in the second SA storage unit 117 cannot be read at a higher speed than the SA stored in the first SA storage unit 116. However, the number of SAs that can be stored in the second SA storage unit 117 is greater than the number of SAs that can be stored in the first SA storage unit 116.

尚、本実施形態では、表示装置107が、表示部113を有する例を説明するが、表示装置107が、表示部を持たずに、暗号処理装置として機能し、表示部を有する別の装置で、表示を行っても構わない。   In the present embodiment, an example in which the display device 107 includes the display unit 113 will be described. However, the display device 107 functions as a cryptographic processing device without the display unit, and is a separate device having a display unit. , Display may be performed.

図2は、ネットワークカメラシステム101のハードウェア構成(回路ブロック)を示すブロック図である。   FIG. 2 is a block diagram illustrating a hardware configuration (circuit block) of the network camera system 101.

撮像装置102は、イメージセンサ201、CPU202、RAM203、ROM204、通信部205、およびこれらを接続するバス206を有する。   The imaging apparatus 102 includes an image sensor 201, a CPU 202, a RAM 203, a ROM 204, a communication unit 205, and a bus 206 that connects them.

イメージセンサ201は、撮影対象からイメージセンサ201に入射した可視光を検出して、デジタル画像データを生成する。CPU202は中央演算処理装置であり、アプリケーションプログラム、オペレーティングシステム(OS)や制御プログラムなどを実行し、RAM203にプログラムの実行に必要な情報、ファイルなどを一時的に格納する制御を行う。RAM203は各種データを一時記憶するための書き込み可能メモリであり、CPU202の主メモリ、ワークエリアなどとして機能する。またRAM203は、SAを記憶するためにも用いる。ROM204は読み出し専用メモリであり、内部には基本入出力プログラムなどのプログラムや、基本処理において使用する各種データを記憶する。通信部205は、伝送路106を介して表示装置107と通信する通信インターフェースである。また通信部205は、IPsec通信における暗号化および復号化処理をCPU202と協調動作することで実現する。バス206は、撮像装置102内のデータの流れを司るものである。   The image sensor 201 detects visible light incident on the image sensor 201 from a subject to be photographed, and generates digital image data. The CPU 202 is a central processing unit, executes an application program, an operating system (OS), a control program, and the like, and performs control for temporarily storing information, files, and the like necessary for executing the program in the RAM 203. A RAM 203 is a writable memory for temporarily storing various data, and functions as a main memory and a work area of the CPU 202. The RAM 203 is also used for storing SA. A ROM 204 is a read-only memory, and stores therein programs such as a basic input / output program and various data used in basic processing. The communication unit 205 is a communication interface that communicates with the display device 107 via the transmission path 106. The communication unit 205 implements encryption and decryption processing in IPsec communication in cooperation with the CPU 202. A bus 206 controls the flow of data in the imaging apparatus 102.

撮像装置103、撮像装置104、撮像装置105は、撮像装置102と同じハードウェア構成であるので、ここでは説明を省略する。   Since the imaging device 103, the imaging device 104, and the imaging device 105 have the same hardware configuration as that of the imaging device 102, description thereof is omitted here.

表示装置107は、CPU207、通信部208、SRAM209、DRAM210、ROM211、画像処理部212、ディスプレイ制御部213、DMAC214、およびこれらを接続するバス215を有する。   The display device 107 includes a CPU 207, a communication unit 208, an SRAM 209, a DRAM 210, a ROM 211, an image processing unit 212, a display control unit 213, a DMAC 214, and a bus 215 that connects them.

CPU207、通信部208、DRAM210、ROM211、バス215は、それぞれ撮像装置102の、CPU202、RAM203、ROM204、通信部205、バス206と同様に動作する。SRAM209は、DRAM210のキャッシュメモリとして機能する書き込み可能メモリであり、DRAM210と比較して高速に各種データを読み出すことができる。SRAM209は、特に、高速な復号化が必要となる暗号通信コネクションに対応するSAを記憶するために用いる。画像処理部212は、撮像装置102から受信した画像を画像処理して、表示用画像を生成する。また画像処理部212は、CPU207と協調動作することで、生成画像に対する画像認識および動体検知処理などを行い、当該画像の重要度を判定する。ディスプレイ制御部213は、画像処理部212が生成した表示用画像をモニタやプロジェクタなど(図示しない)に出力して表示させる。DMAC214は、CPU207の制御に基づき、通信部208、SRAM209、DRAM210、ROM211、画像処理部212、ディスプレイ制御部213の間で、画像データやSAなど各種データを転送する。   The CPU 207, the communication unit 208, the DRAM 210, the ROM 211, and the bus 215 operate in the same manner as the CPU 202, the RAM 203, the ROM 204, the communication unit 205, and the bus 206 of the imaging device 102, respectively. The SRAM 209 is a writable memory that functions as a cache memory of the DRAM 210, and can read various data at a higher speed than the DRAM 210. The SRAM 209 is particularly used for storing an SA corresponding to an encryption communication connection that requires high-speed decryption. The image processing unit 212 performs image processing on the image received from the imaging device 102 and generates a display image. In addition, the image processing unit 212 performs image recognition and moving object detection processing on the generated image by cooperating with the CPU 207, and determines the importance of the image. The display control unit 213 outputs and displays the display image generated by the image processing unit 212 on a monitor or a projector (not shown). Under the control of the CPU 207, the DMAC 214 transfers various data such as image data and SA among the communication unit 208, SRAM 209, DRAM 210, ROM 211, image processing unit 212, and display control unit 213.

これら各種ハードウェアやその上で動作するソフトウェアが協調動作することでネットワークカメラシステム101の機能が実現される。   The functions of the network camera system 101 are realized by the cooperative operation of these various types of hardware and software operating on the hardware.

図3は、表示装置107における、新規に受信したSAを配置する際の動作を示すフローチャートである。   FIG. 3 is a flowchart showing an operation in arranging a newly received SA in the display device 107.

まず、ステップS301において、パケット受信部111が、新たな画像伝送コネクションを確立するための新規SAを受信する受信処理を行う。ステップS302において、SA配置制御部114が、新規SAを第二SA記憶部117に配置する記憶処理を行う。ステップS303では、新規SAと対応する画像伝送コネクションを通じて、重要度判定部115が画像の重要度を判定できるだけのデータを表示装置107が受信し終えたか否かを判定する。判定方法は、例えば、受信したデータが所定のデータ量に達しているかで判定を行う。もし当該データを受信し終えていた場合(ステップS303でYES)、ステップS304に進む。一方、まだ当該データを受信し終えていなければ(ステップS303でNO)、一定時間待機した後、ステップS302を繰り返す。   First, in step S301, the packet reception unit 111 performs reception processing for receiving a new SA for establishing a new image transmission connection. In step S <b> 302, the SA placement control unit 114 performs storage processing for placing the new SA in the second SA storage unit 117. In step S303, the importance level determination unit 115 determines whether the display device 107 has received enough data to determine the importance level of the image through the image transmission connection corresponding to the new SA. As the determination method, for example, the determination is performed based on whether the received data has reached a predetermined data amount. If the data has been received (YES in step S303), the process proceeds to step S304. On the other hand, if the data has not been received yet (NO in step S303), after waiting for a predetermined time, step S302 is repeated.

ステップS304では、重要度判定部115が、新規SAと対応する画像伝送コネクションを通じて伝送された画像の重要度を求める。ステップS305では、第一SA記憶部116にすでに配置されたSAの数が、所定の数を超えているか否かを判定する。もし所定の数を超えていれば(ステップS305でYES)、ステップS307に進む。一方、所定の数に達していなければ(ステップS305でNO)、ステップS306に進む。なお、所定の数とは、第一SA記憶部116がSAを記憶できる数である。ステップS306では、新規SAを画像の重要度と対応づけて第一SA記憶部116に配置する記憶処理を行う。   In step S304, the importance level determination unit 115 obtains the importance level of the image transmitted through the image transmission connection corresponding to the new SA. In step S305, it is determined whether or not the number of SAs already arranged in the first SA storage unit 116 exceeds a predetermined number. If it exceeds the predetermined number (YES in step S305), the process proceeds to step S307. On the other hand, if the predetermined number has not been reached (NO in step S305), the process proceeds to step S306. The predetermined number is a number that the first SA storage unit 116 can store SA. In step S306, a storage process for arranging the new SA in the first SA storage unit 116 in association with the importance of the image is performed.

ステップS307では、SA配置制御部114が、第一SA記憶部116にすでに記憶されているSAの重要度と比較して、新規SAの重要度が一番低いかを判定する。新規SAの重要度が一番低くければ(ステップS307でYES)、ステップS308に進む。新規SAの重要度が一番低くなければ(ステップS307でNO)、ステップS309に進む。   In step S307, the SA placement control unit 114 determines whether the importance level of the new SA is the lowest compared to the SA level of importance already stored in the first SA storage unit 116. If the importance of the new SA is the lowest (YES in step S307), the process proceeds to step S308. If the importance of the new SA is not the lowest (NO in step S307), the process proceeds to step S309.

ステップS309では、SA配置制御部114が、第一SA記憶部116にすでに記憶されているSAのうち、対応づけられた画像の重要度が最も低いSAを第二SA記憶部117へ移動する記憶処理を行う。ステップS310では、SA配置制御部114が、新規SAを画像の重要度と対応づけて第一SA記憶部116に配置する記憶処理を行う。   In step S309, the SA arrangement control unit 114 stores the SA that has the lowest importance of the associated image among the SAs already stored in the first SA storage unit 116, to the second SA storage unit 117. Process. In step S310, the SA placement control unit 114 performs a storage process of placing the new SA in the first SA storage unit 116 in association with the importance of the image.

尚、ステップS302において、第二SA記憶部117に配置したが、これに限らず、別の記憶部に配置しても構わない。   In addition, although arrange | positioned in the 2nd SA memory | storage part 117 in step S302, you may arrange | position to another memory | storage part not only in this.

図3の処理を、図2のハードウェア構成を用いて処理する場合は、図3のステップS301は、通信部208が実行し、ステップS301以外の処理は、CPU207の制御に基づいて実行される。このときCPU207はDMAC214を利用してもかまわない。また、第一SA記憶部116はSRAM209、第二SA記憶部117はDRAM210により実現するものとする。   When processing the processing in FIG. 3 using the hardware configuration in FIG. 2, step S301 in FIG. 3 is executed by the communication unit 208, and processing other than step S301 is executed based on the control of the CPU 207. . At this time, the CPU 207 may use the DMAC 214. The first SA storage unit 116 is realized by the SRAM 209, and the second SA storage unit 117 is realized by the DRAM 210.

図4は、表示装置107における、SAと対応づけられる画像の重要度を更新する際の動作を示すフローチャートである。   FIG. 4 is a flowchart showing an operation in the display device 107 when the importance level of the image associated with the SA is updated.

まず、ステップS401において、重要度判定部115は、表示装置107が新たに受信した画像の重要度を求める。次に、ステップS402において、ステップS401で得られた重要度の値が、画像を伝送した暗号通信コネクションに対応するSAに対してすでに対応づけた重要度の値より高いか否かを判定する。もし高ければ(ステップS402でYES)、ステップS403に進む。一方、もし低ければ(ステップS402でNO)、ステップS404に進む。ステップS403では、画像を伝送した暗号通信コネクションに対応するSAが第一SA記憶部116に記憶されているか否かを判定する。もし記憶されていれば(ステップS403でYES)ステップS404に進む。一方、もし記憶されていなければ(ステップS403でNO)、ステップS405に進む。ステップS404では、画像を伝送した暗号通信コネクションに対応するSAに対してすでに対応づけた重要度の値を、ステップS401で得られた重要度の値に更新する記憶処理を行う。   First, in step S401, the importance level determination unit 115 obtains the importance level of an image newly received by the display device 107. Next, in step S402, it is determined whether or not the importance value obtained in step S401 is higher than the importance value already associated with the SA corresponding to the encrypted communication connection that transmitted the image. If it is higher (YES in step S402), the process proceeds to step S403. On the other hand, if it is low (NO in step S402), the process proceeds to step S404. In step S <b> 403, it is determined whether the SA corresponding to the encrypted communication connection that transmitted the image is stored in the first SA storage unit 116. If stored (YES in step S403), the process proceeds to step S404. On the other hand, if not stored (NO in step S403), the process proceeds to step S405. In step S404, storage processing is performed to update the importance value already associated with the SA corresponding to the encrypted communication connection that transmitted the image to the importance value obtained in step S401.

ステップS405では、ステップS401で得られた重要度の値が、第一SA記憶部116に記憶されているSAに対応づけられている重要度の最低値より高いか否かを判定する。もしもし高ければ(ステップS405でYES)、ステップS404に進む。一方、もし低ければ(ステップS405でNO)、ステップS406に進む。ステップ406では、第一SA記憶部116に記憶されているSAのうち、当該SAに対応づけられている重要度が最低のSAを第二SA記憶部117に移動する記憶処理を行う。ステップ407では、画像を伝送した暗号通信コネクションに対応するSAを、ステップS401で得られた重要度の値と対応づけた上で第一SA記憶部116に配置する記憶処理を行う。   In step S405, it is determined whether or not the importance value obtained in step S401 is higher than the lowest importance value associated with the SA stored in the first SA storage unit 116. If so (YES in step S405), the process proceeds to step S404. On the other hand, if it is low (NO in step S405), the process proceeds to step S406. In step 406, a storage process is performed in which the least important SA associated with the SA among the SAs stored in the first SA storage unit 116 is moved to the second SA storage unit 117. In step 407, the SA corresponding to the encrypted communication connection that transmitted the image is associated with the importance value obtained in step S401, and then stored in the first SA storage unit 116.

なお本実施の形態では、図4に示す画像の重要度の更新処理は、表示装置107が画像を一枚受信する毎に実行するものとする。ただし、重要度判定部115が画像の重要度を判定するために要する時間と表示装置107が画像を受信する頻度とを考慮した上で、画像の重要度の更新処理の頻度を設定してもかまわない。   In the present embodiment, the image importance update processing shown in FIG. 4 is executed each time the display device 107 receives one image. However, the frequency of image importance update processing may be set in consideration of the time required for the importance determination unit 115 to determine the importance of the image and the frequency with which the display device 107 receives the image. It doesn't matter.

また、図4の処理を、図2のハードウェア構成を用いて処理する場合は、図4の各処理は、CPU207の制御に基づいて実行される。このときCPU207はDMAC214を利用してもかまわない。また、第一SA記憶部116はSRAM209、第二SA記憶部117はDRAM210により実現するものとする。   4 is processed using the hardware configuration in FIG. 2, each process in FIG. 4 is executed under the control of the CPU 207. At this time, the CPU 207 may use the DMAC 214. The first SA storage unit 116 is realized by the SRAM 209, and the second SA storage unit 117 is realized by the DRAM 210.

図6は、表示装置107における、復号処理のフローチャートである。   FIG. 6 is a flowchart of the decoding process in the display device 107.

ステップS601は、パケット受信部11が、IPSed暗号化された画像データを受信する。ステップS602は、IPSec復号化部112が、IPSed暗号化された画像データを、第一SA記憶部116あるいは第二SA記憶部117に記憶されたSAを用いて、復号する。ステップS603は、表示部113は、復号された画像データを、表示する。   In step S601, the packet receiving unit 11 receives IPSed encrypted image data. In step S <b> 602, the IPSec decryption unit 112 decrypts the image data subjected to the IPSec encryption using the SA stored in the first SA storage unit 116 or the second SA storage unit 117. In step S603, the display unit 113 displays the decoded image data.

以上のように、表示装置107は、画像データを伝送するための暗号化パケットを受信および復号化し、画像データの重要度に基づいてSAを第一SA記憶部116と第二SA記憶部117とに配置する。ここで、重要度の高い画像伝送に対応するSAを第一SA記憶部116に優先的に記憶することで、暗号通信コネクション数が増加した場合でも、重要度の高い画像伝送の通信速度を維持できる。   As described above, the display device 107 receives and decrypts the encrypted packet for transmitting the image data, and determines the SA based on the importance of the image data, the first SA storage unit 116, the second SA storage unit 117, and the like. To place. Here, by preferentially storing the SA corresponding to image transmission with high importance in the first SA storage unit 116, even when the number of encryption communication connections increases, the communication speed of image transmission with high importance is maintained. it can.

さらに、SAと対応づけられる画像の重要度を定期的に更新することで、常に、重要度の高い画像伝送の通信速度を維持できる。   Furthermore, by regularly updating the importance of the image associated with the SA, it is possible to always maintain the communication speed of image transmission with a high importance.

<変形例>
図5は、表示装置107における、SAと対応づけられる画像の重要度を更新し、必要に応じてSAを配置する際の動作を示す別のフローチャートである。図4に示したフローチャートとは、図5がステップS501を有する点で異なり、それ以外の処理は、図4と同じであるので、説明を省略する。
<Modification>
FIG. 5 is another flowchart showing an operation in the display device 107 when the importance level of the image associated with the SA is updated and the SA is arranged as necessary. 4 differs from the flowchart shown in FIG. 4 in that FIG. 5 includes step S501, and the other processes are the same as those in FIG.

ステップS601では、画像を伝送した暗号通信コネクションに対応するSAを第一SA記憶部116または第二SA記憶部117から読み出す際の遅延時間が所定の時間を超えているか否かを判定する。もし所定の時間を超えていれば(ステップS601でYES)、ステップS403に進む。一方、所定の時間を越えていなければ(ステップS601でNO)、ステップS404に進む。   In step S601, it is determined whether or not the delay time when reading the SA corresponding to the encrypted communication connection that transmitted the image from the first SA storage unit 116 or the second SA storage unit 117 exceeds a predetermined time. If it exceeds the predetermined time (YES in step S601), the process proceeds to step S403. On the other hand, if the predetermined time has not been exceeded (NO in step S601), the process proceeds to step S404.

また、図5の処理を、図2のハードウェア構成を用いて処理する場合は、図5の各処理は、CPU207の制御に基づいて実行される。このときCPU207はDMAC214を利用してもかまわない。また、第一SA記憶部116はSRAM209、第二SA記憶部117はDRAM210により実現するものとする。   5 is processed using the hardware configuration in FIG. 2, each process in FIG. 5 is executed based on the control of the CPU 207. At this time, the CPU 207 may use the DMAC 214. The first SA storage unit 116 is realized by the SRAM 209, and the second SA storage unit 117 is realized by the DRAM 210.

以上説明したように、第一SA記憶部116または第二SA記憶部117から読み出す際の遅延時間を測定し、当該遅延時間が表示装置107上での画像表示に影響しない範囲であれば、SAを配置したままとする。このようにすることで、SAが第一SA記憶部116と第二SA記憶部117との間を移動する頻度を低く抑えることができる。   As described above, the delay time at the time of reading from the first SA storage unit 116 or the second SA storage unit 117 is measured, and if the delay time is within a range that does not affect the image display on the display device 107, the SA. Is left in place. In this way, the frequency with which the SA moves between the first SA storage unit 116 and the second SA storage unit 117 can be kept low.

(その他の実施形態)
また、本発明の構成要素は、複数の機器(例えばホストコンピュータ、インターフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、カメラ、複写機、ファクシミリ装置など)に適用しても良い。本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムが記憶媒体に格納されたプログラムコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のデータ保存部、ROMなどを用いることが出来る。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)などが実際の処理の一部を行う。さらに、その処理によって前述した実施形態の機能が実現される場合も含まれる。さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるデータ保存部に書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
(Other embodiments)
The component of the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), or a device (for example, a camera, a copier, The present invention may be applied to a facsimile machine or the like. An object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the system reads and executes the program codes stored in the storage medium. Is also achieved. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile data storage unit, ROM, or the like can be used. . Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. Perform some of the actual processing. Furthermore, the case where the functions of the above-described embodiments are realized by the processing is also included. Further, the program code read from the storage medium is written to a data storage unit provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. After that, based on the instruction of the program code, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing, and the processing of the above-described embodiment is realized by the processing. It is.

Claims (3)

暗号化された情報を受信する受信手段と、
前記暗号化された情報を復号する際に用いる情報を記憶する第一の記憶手段及び第二の記憶手段と、
前記暗号化された情報の重要度を判定する重要度判定手段と、
前記重要度判定手段の判定に基づいて、前記復号する際に用いる情報を、前記第一の記憶手段に記憶するか、前記第二の記憶手段に記憶するかを制御する制御手段を有し、
前記第一の記憶手段は、前記第二の記憶手段より、高速に読み出すことができ、
前記制御手段は、重要度の高い情報に対応する前記復号する際に用いる情報を、前記第一の記憶手段を記憶するよう制御することを特徴とする暗号処理装置。
Receiving means for receiving encrypted information;
First storage means and second storage means for storing information used when decrypting the encrypted information;
Importance determining means for determining the importance of the encrypted information;
Based on the determination of the importance level determination means, the control means for controlling whether the information used for the decoding is stored in the first storage means or the second storage means,
The first storage means can be read faster than the second storage means,
The encryption processing apparatus characterized in that the control means controls the first storage means to store information used for the decryption corresponding to highly important information.
前記復号する際に用いる情報は、セキュリティアソシエーションであることを特徴とする請求項1に記載の暗号処理装置。   The cryptographic processing apparatus according to claim 1, wherein the information used for the decryption is a security association. さらに、前記復号する際に用いる情報を用いて、前記受信した情報の復号化を行う復号化手段を有する請求項1又は請求項2に記載の暗号処理装置。   The cryptographic processing apparatus according to claim 1, further comprising a decrypting unit configured to decrypt the received information using information used for the decryption.
JP2011112601A 2011-05-19 2011-05-19 Cryptographic processing device Withdrawn JP2012244415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011112601A JP2012244415A (en) 2011-05-19 2011-05-19 Cryptographic processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011112601A JP2012244415A (en) 2011-05-19 2011-05-19 Cryptographic processing device

Publications (1)

Publication Number Publication Date
JP2012244415A true JP2012244415A (en) 2012-12-10

Family

ID=47465646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011112601A Withdrawn JP2012244415A (en) 2011-05-19 2011-05-19 Cryptographic processing device

Country Status (1)

Country Link
JP (1) JP2012244415A (en)

Similar Documents

Publication Publication Date Title
EP0876026A2 (en) Programmable crypto processing system and method
JP2004226966A (en) Cryptographic apparatus for supporting multiple modes
CN112329038B (en) Data encryption control system and chip based on USB interface
TWI486044B (en) Apparatus and system for decrypting encrypted media information
EP3751781A1 (en) Overhead reduction for link protection
US10250596B2 (en) Monitoring encrypted communication sessions
KR100954649B1 (en) Data encryption apparatus, data decryption apparatus and data encryption method
KR20200137040A (en) Methods, systems, and media for using dynamic public key infrastructure to send and receive encrypted messages
JP2017108357A (en) Arithmetic unit, arithmetic method and communication apparatus
CN111832051B (en) Symmetric encryption and decryption method and system based on FPGA
JP2013143653A (en) Information processing apparatus and information processing method
US9979541B2 (en) Content management system, host device and content key access method
CN110958216A (en) Secure online network packet transmission
JP2012244415A (en) Cryptographic processing device
JP2015095841A (en) Information processing system
JP2012244416A (en) System and cryptographic processing device
CN113961931A (en) Adb tool using method and device and electronic equipment
JP2004328359A (en) Packet processor
KR20170008514A (en) Method and system for reproducing contents by secure acquiring decryption key for encrypted contents
CN112257092A (en) Data transmission control method, key management method, configuration method and related device
US20090041245A1 (en) Confidential information processing device,confidential information processing apparatus, and confidential information processing method
CN111064740B (en) System and method for encryption and decryption processing of network data packet
CN116743357B (en) Key storage method and device
CN113381854B (en) Data transmission method, device, equipment and storage medium
KR101588279B1 (en) Method and apparatus for ciphering data in wireless communication system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140805