KR20050029018A - Methods for authenticating and coding a controling code based on its check sum and system thereof - Google Patents

Methods for authenticating and coding a controling code based on its check sum and system thereof Download PDF

Info

Publication number
KR20050029018A
KR20050029018A KR1020030065034A KR20030065034A KR20050029018A KR 20050029018 A KR20050029018 A KR 20050029018A KR 1020030065034 A KR1020030065034 A KR 1020030065034A KR 20030065034 A KR20030065034 A KR 20030065034A KR 20050029018 A KR20050029018 A KR 20050029018A
Authority
KR
South Korea
Prior art keywords
control code
authentication
code
storage unit
control
Prior art date
Application number
KR1020030065034A
Other languages
Korean (ko)
Inventor
김석환
Original Assignee
주식회사 T4
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 주식회사 T4 filed Critical 주식회사 T4
Priority to KR1020030065034A priority Critical patent/KR20050029018A/en
Publication of KR20050029018A publication Critical patent/KR20050029018A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • H04L9/3228One-time or temporary data, i.e. information which is sent for every authentication or authorization, e.g. one-time-password, one-time-token or one-time-key

Abstract

A methods and a system for authenticating and coding control codes based on check sums are provided to prevent illegal duplication or exposure of the control code by defining the check sum using updated first and second authentication IDs. A system includes a transmitting device(100) for coding a control code and a receiving device(200) for performing control operations based on the received control code. An input portion(120) generates operation control codes according to key inputs. A storage portion(130) stores a look-up table having plural calculation results according to residues by dividing the check sum code. A calculator randomly generates a first authentication ID in response to the key inputs and generates the control code by forming a second authentication ID based on the prior first authentication ID stored in the storage portion. The calculator obtains a result from the look-up table using the result of division of the check sum as an index and encodes the obtained control code. A transmitter(140) modulates the control code generated by the calculator and transmits the result. The receiving device includes a receiver(240), a storage portion(230) and a calculator.

Description

제어코드의 체크 섬에 기반한 암호화 및 인증 방법과 시스템{Methods for authenticating and coding a controling code based on its check sum and System thereof}Methods and authenticating and coding a controling code based on its check sum and system algorithm}

본 발명은 제어코드의 암호화 및 인증 방법과 시스템에 관한 것으로서, 더욱 상세하게는 제어코드를 구성하는 체크 섬을 가변적으로 생성하고, 이 체크 섬을 암호화 및 복호화 클루(clue)로 사용해 폭넓은 범위로 제어코드를 암호화 및 인증하는 방법과, 이를 수행하는 시스템에 관한 것이다.The present invention relates to a method and system for encrypting and authenticating a control code, and more particularly, to variably generating a checksum constituting a control code, and using the checksum as an encryption and decryption clue in a wide range. A method of encrypting and authenticating a control code, and a system for performing the same.

본 기술분야에서 널리 알려져 있는 바와 같이, 리모콘 시스템은 무선 주파(radio frequency) 또는 적외선(IR)을 이용하는 무선 데이터 통신을 통하여 리모콘 장치로부터 제어 코드를 전송하여 메인 장치를 제어하는 방식으로 사용되고 있다. 이러한 제어 방식은 대개의 경우 헤더(header)(또는, 식별 ID), 상태 코드(status code), 데이터(data) 및 체크 섬(check sum) 등의 네 개의 부분으로 구성되는 데이터 포맷을 전송함으로써 메인 장치를 제어하는 고정 코드 방식이 주로 사용되고 있다. 그러나, 고정 코드 방식은 외부에서 불순한 의도를 가진 자에게 복제될 우려가 크다는 단점이 있다.As is well known in the art, a remote control system is used in a manner of controlling a main device by transmitting a control code from a remote control device through wireless data communication using radio frequency or infrared (IR). This control method is usually achieved by sending a data format consisting of four parts: a header (or identification ID), status code, data, and check sum. The fixed code method for controlling the device is mainly used. However, the fixed code method has a disadvantage in that it is likely to be duplicated to the person with an impure intention from the outside.

이를 방지하기 위하여, 쌍방 통신을 이용하여 리모콘에서 생성된 제어 코드 데이터를 전송하는 방식이 제안되었다. 이 방식은 송신 측과 수신 측에서 서로 정해진 규칙에 따라 쌍방향으로 데이터를 주고 받는 방식, 예로, 퀴즈 방식으로 송신 측에서 인코딩하여 보내준 데이터를 수신 측에서 디코딩하여 다시 송신측으로 전송하여 데이터의 일치성을 확인하는 방식으로 데이터 통신을 수행한다. 그러나, 이러한 퀴즈 방식은 인코딩과 디코딩 과정이 항시 정해진 규칙에 따라 이루어지기 때문에, 이 규칙이 노출되는 경우에는 제어 코드의 복제 우려가 있다는 문제가 있다.In order to prevent this, a method of transmitting control code data generated by a remote controller using two-way communication has been proposed. In this method, data is sent and received in both directions according to a rule defined by a transmitting side and a receiving side, for example, a quiz method. Perform data communication in a way that verifies However, since this quiz method is always performed according to a predetermined rule, the encoding and decoding process, there is a problem that there is a fear that the control code is duplicated when this rule is exposed.

리모콘에서 생성된 제어 코드의 복제를 방지하는 또 다른 방식으로 한 번 사용된 코드는 재사용하지 않는 롤링(rolling) 방식이 있다. 롤링 방식에 의해 생성된 롤링 코드는 일정한 값으로 증분 또는 감분되어 생성되며, 이전에 사용된 코드와 같은 값일 때는 재사용하지 않는다. 이 방식에 있어서, 송신측에서는 커스톰 코드에 가변가능한 롤링 코드를 첨부하여 수신측으로 전송하며, 수신측에서는 자체적으로 생성된 롤링 코드가 송신측에서 전송된 롤링 코드와 일치하는 가를 판별하여 제어 코드의 복제 여부를 판단한다. 그러나, 상술한 롤링 방식 역시 일정한 증분 또는 감분의 변화량이 누출되는 경우에는 제어 코드가 복제될 우려가 있다.Another way to prevent duplication of control codes generated in the remote control is to roll a code that is not reused. The rolling code generated by the rolling method is generated by incrementing or decrementing it to a constant value and is not reused when the rolling code is the same as the previously used code. In this scheme, the transmitting side attaches a variable rolling code to the custom code and transmits it to the receiving side, and the receiving side determines whether the generated rolling code matches the rolling code transmitted from the transmitting side and whether the control code is duplicated. Judge. However, in the rolling method described above, there is a fear that the control code is duplicated when a certain amount of change in increment or decrement leaks.

이러한 점을 고려하여 창안된 것이 대한민국 특허 출원 제2000-70518호이다. 상기 70518호의 명세서에 개시된 바에 의하면, 송신장치에 송신한 제어코드의 카운터 값이 수신장치에 수록되어 있는 카운터 값보다 정해진 크기(예, 133)보다 크거나 같은 경우에 수신된 제어코드를 인증해서 제어 명령이 이뤄지도록 구성한 바, 동일한 제어코드가 반복해서 수신되는 경우에 수신장치에서 이전 제어코드로부터 획득하여 저장하고 있는 카운터 값과 새로 수신된 제어코드의 카운터 값이 서로 동일하게 되어 복제를 예방하도록 한다.In consideration of this point, Korean Patent Application No. 2000-70518 has been made. As disclosed in the specification of No. 70518, when the counter value of the control code sent to the transmitting device is greater than or equal to a predetermined size (e.g., 133) than the counter value stored in the receiving device, the received control code is authenticated and controlled. When the same control code is repeatedly received, the counter value obtained from the previous control code and the counter value of the newly received control code are the same to prevent duplication. .

그런데, 상기 70518호에서 개시된 카운터에 의한 제어코드의 인증 방법은 제어코드를 구성하는 카운터를 일정한 규칙에 의해 암호화해 송출하는 방법이므로, 암호화 방법이 노출되는 경우에 상술한 다른 기술과 마찬가지로 제어코드의 복제 문제가 발생하게 된다. 이러한 점을 예방하기 위해, 상기 70518호는 허수를 생성해 제어코드의 일부로 구성하고, 맵핑코드 및 프라이베이트 코드에 따라 룩업 테이블을 참조로 허수가 추가된 제어코드를 재배치하도록 구성하고 있다. 때문에, 상기 70518호는 제어코드에 허수를 추가해 암호화하는 과정과, 이를 다시 디스크램블링하는 복잡한 과정으로 구현된다. 따라서, 수신장치에서 제어코드를 인증하는 과정 역시 이에 대응해서 복잡한 절차로 구성되는 바, 이는 시스템의 응답 속도를 저해시키는 문제로 발생하게 된다. 또한, 상기 70518호는 암호화 및 복호화를 위하여 비휘발성 메모리에 맵핑코드와 프라이비트 코드를 별도로 저장해야 하기 때문에 메모리 낭비를 초래하는 문제점이 발생하며, 더욱이 상기 맵핑코드와 프라이비트 코드가 누출될 경우, 제어코드가 복제될 여지를 안고 있다.However, since the method of authenticating the control code by the counter disclosed in No. 70518 is a method of encrypting and sending the counter constituting the control code by a predetermined rule, when the encryption method is exposed, the control code may be Replication problems will arise. To prevent this, the 70518 is configured to generate an imaginary number as part of the control code, and to rearrange the imaginary added control code with reference to the lookup table according to the mapping code and the private code. Therefore, the 70518 is implemented by adding an imaginary number to the control code and encrypting it, and a complicated process of descrambling it again. Therefore, the process of authenticating the control code in the receiving apparatus is also composed of a complicated procedure corresponding to this, which causes a problem of inhibiting the response speed of the system. In addition, since the 70518 has to store the mapping code and the private code separately in the non-volatile memory for encryption and decryption, there is a problem that causes a waste of memory. Furthermore, when the mapping code and the private code leak, There is room for control code duplication.

본 발명은 상기와 같은 문제점을 해결하기 위해 창안된 것으로서, 제어코드를 구성하는 체크 섬 코드를 상기 제어코드에 추가된 ID 코드에 의해 가변적으로 생성하고, 이 체크 섬을 암호화 및 복호화 클루로 사용해 폭넓은 범위로 제어코드를 암호화 및 인증하는 본 발명을 제공하고자 한다.The present invention was devised to solve the above problems, and generates a checksum code constituting a control code variably by an ID code added to the control code, and uses the check sum as an encryption and decryption clue to generate a width. It is an object of the present invention to encrypt and authenticate a control code in a wide range.

상기와 같은 목적을 달성하기 위하여 본 발명의 일 태양에서는 제어코드의 암호화 방법을 제공하며, 본 발명의 암호화 방법은 제어코드를 구성하는 체크 섬 코드를 가변적으로 생성하여 암호화하는 방법에 관한 것으로, (a) 상기 제어코드를 구성하는 체크 섬 코드를 제수로 나눈 나머지 값에 따라 다수의 연산 값 및 연산 동작을 수록한 룩업 테이블을 저장부에 수록 저장하는 단계; (b) 기 설정된 길이로 제1 인증 ID;를 랜덤하게 생성하고, 상기 저장부에 이전 암호화에서 제1 인증 ID로 사용된 코드를 독출해 제2 인증 ID;로 구성하여 제어코드를 생성하는 단계; (c) 상기에서 생성된 제어코드를 구성하는 제1 인증 ID 및 제2 인증 ID로부터 구해진 체크 섬을 제수로 나누어 얻어진 값에 따라 상기 룩업 테이블로부터 연산 값과, 이에 대응하는 연산 동작을 상기 룩업 테이블에서 선택하는 단계; 그리고, (d) 상기 제어코드와, 구해진 연산 값을 연산 동작에 따라 연산하여 제어코드를 암호화하는 단계;를 포함해서 이루어진다.In order to achieve the above object, an aspect of the present invention provides a method for encrypting a control code, and the encryption method of the present invention relates to a method for variably generating and encrypting a checksum code constituting a control code. a) storing, in a storage unit, a lookup table including a plurality of operation values and operation operations according to the remaining values obtained by dividing the check sum code constituting the control code by a divisor; (b) randomly generating a first authentication ID with a preset length, reading a code used as a first authentication ID in a previous encryption into the storage unit, and generating a control code by configuring a second authentication ID; ; (c) calculating a calculated value from the lookup table and a corresponding calculation operation according to a value obtained by dividing the checksum obtained from the first authentication ID and the second authentication ID constituting the control code generated by the divisor. Selecting from; And (d) encrypting the control code by calculating the control code and the calculated operation value according to a calculation operation.

바람직하게, 본 발명에서 제공하는 제어코드는 식별 ID, 제1 인증 ID, 제2 인증 ID로 이뤄진 ID 프레임; 동작제어 코드; 및, 체크 섬 코드; 로 구성되기 때문에 제1 인증 ID 및 제2 인증 ID로부터 구해지는 체크 섬 코드 역시 다양한 변수로 구성된다. 따라서 상기 체크 섬이 암호화의 클루로 사용되는 본 발명의 암호화는 폭 넓은 범위에서 랜덤하게 이루어질 수가 있는 것이다.Preferably, the control code provided by the present invention comprises an ID frame consisting of an identification ID, a first authentication ID, a second authentication ID; Operation control code; And checksum codes; Since the checksum code obtained from the first authentication ID and the second authentication ID is also composed of various variables. Therefore, the encryption of the present invention, in which the checksum is used as an encryption clue, can be performed at random in a wide range.

한편, 본 발명의 다른 태양에서는 상술한 방법으로 암호화된 제어코드를 수신장치에서 복호화해 인증하는 방법을 제공하는데, 이 인증방법은 송신장치가, (a) 기 설정된 길이로 제1 인증 ID;를 랜덤하게 생성하고, 저장부에 이전 암호화에서 제1 인증 ID로 사용된 코드를 독출해 제2 인증 ID;로 구성하여 제어코드를 생성하는 단계; (b) 상기에서 생성된 제어코드를 구성하는 제1 인증 ID 및 제2 인증 ID로부터 구해진 체크 섬을 제수로 나누어 얻어진 값에 따라 상기 저장부에 수록된 룩업 테이블로부터 연산 값과, 이에 대응하는 연산 동작을 상기 룩업 테이블에서 선택하는 단계; 그리고, (c) 상기 제어코드와, 구해진 연산 값을 연산 동작에 따라 연산하여 제어코드를 암호화하고, 이를 변조하여 무선으로 전송하는 단계;를 포함하는 암호화 과정과, 상기 수신장치가, (d) 상기 송신장치에서 전송된 제어코드를 복조하여 저장부에 수록된 룩업 테이블을 참조로 상기 송신장치에서 행한 역순으로 복호화하여 암호화된 제어코드를 복호화하는 단계; 그리고, (e) 복호된 코드들로부터 구해진 체크 섬 코드;와 복호전 제어코드의 체크 섬 코드가 동일한지를 검사하고, 동일한 경우에는 복호된 제어코드의 식별 ID;와 상기 수신장치의 저장부에 수록된 식별 ID;가 동일한지를 검사하는 한편, 이전 인증과정에서 획득하여 상기 저장부에 수록된 제2 인증 ID;와, 복호된 제어코드의 제1 인증 ID를 비교해 수신된 제어코드를 인증하는 단계;를 포함해서 이루어진다.On the other hand, another aspect of the present invention provides a method for decrypting and authenticating a control code encrypted by the above-described method in a receiving apparatus, wherein the transmitting apparatus comprises: (a) a first authentication ID with a preset length; Generating randomly, storing a code used as a first authentication ID in a previous encryption in a storage unit, and configuring a second authentication ID to generate a control code; (b) an operation value from the lookup table stored in the storage unit according to a value obtained by dividing the checksum obtained from the first authentication ID and the second authentication ID constituting the control code generated by the divisor, and a corresponding operation; Selecting from the lookup table; And (c) encrypting the control code by calculating the control code and the calculated operation value according to a calculation operation, and modulating the control code and transmitting the control code wirelessly. Demodulating the control code transmitted from the transmission device and decrypting the encrypted control code by decrypting the control code in the reverse order performed by the transmission device with reference to the lookup table included in the storage unit; And (e) a checksum code obtained from the decoded codes ; Checks that the checksum codes of the control code and the decryption control code are the same, and if they are the same, identify the identification ID of the decoded control code and the identification ID stored in the storage of the receiving device; And comparing the second authentication ID recorded in the storage unit with the first authentication ID of the decoded control code to authenticate the received control code.

본 발명의 또 다른 태양에서는 제어코드를 암호화해 송신하는 송신장치와, 송신장치에서 전송된 제어코드에 따라 제어 동작을 수행하는 수신장치로 구성된 시스템을 제공하며, 상기 송신장치는, 다수의 동작 버튼을 구비해, 이에 대응하는 동작제어 코드를 발생시키는 입력부; 상기 제어코드를 구성하는 체크 섬 코드를 제수로 나눈 나머지 값에 따라 다수의 연산 값 및 연산 동작을 수록한 룩업 테이블을 수록한 저장부; 상기 동작 버튼의 선택에 응답하여, 기 설정된 길이로 제1 인증 ID;를 랜덤하게 생성하고, 상기 저장부에 이전 암호화에서 제1 인증 ID로 사용된 코드를 독출해 제2 인증 ID;로 구성해 제어코드를 생성하는 한편, 상기 제어코드를 구성하는 체크 섬을 제수로 나누어 얻어진 값에 따라 상기 저장부에 수록된 룩업 테이블로부터 연산 값과, 이에 대응하는 연산 동작을 상기 룩업 테이블에서 선택해 제어코드를 암호화하는 연산부; 및, 상기 연산부에 의해 생성된 암호 제어코드를 변조하여 무선 채널을 통해 상기 수신장치로 송출하는 송신부;를 포함해서 구성되며, 상기 수신장치는, 상기 송신장치에서 전송된 암호 제어코드를 복조하는 수신부; 상기 송신장치에 수록된 룩업 테이블과 동일한 룩업 테이블을 수록하는 저장부; 상기 복조된 제어코드를 상기 저장부에 수록된 룩업 테이블을 참조로 상기 송신장치에서 행한 역순으로 복호화하여 암호화된 제어코드를 복호하며, 복호된 제어코드를 구성하는 체크 섬 코드;와 복호전 제어코드의 체크 섬 코드가 동일한지를 검사하고, 동일한 경우에는 복호된 제어코드의 식별 ID;와 상기 저장부에 수록된 식별 ID;가 동일한지를 검사하는 한편, 이전 인증과정에서 획득하여 상기 저장부에 수록된 제2 인증 ID;와, 복호된 제어코드의 제1 인증 ID를 서로 비교해 수신된 제어코드를 인증하는 연산부;를 포함해서 구성된다.In still another aspect of the present invention, there is provided a system comprising a transmitting device for encrypting and transmitting a control code and a receiving device for performing a control operation according to a control code transmitted from the transmitting device, wherein the transmitting device comprises a plurality of operation buttons. An input unit configured to generate an operation control code corresponding thereto; A storage unit for storing a look-up table that includes a plurality of operation values and operation operations according to a remainder obtained by dividing the check sum code constituting the control code by a divisor; In response to the selection of the operation button, randomly generates a first authentication ID with a preset length, reads a code used as a first authentication ID in a previous encryption into the storage unit, and constitutes a second authentication ID; Generates a control code and encrypts the control code by selecting an operation value from the lookup table stored in the storage unit and a corresponding operation in the lookup table according to a value obtained by dividing the check sum constituting the control code by a divisor. An operation unit; And a transmitting unit modulating the encryption control code generated by the calculating unit and transmitting the modulation control code to the receiving apparatus through a wireless channel, wherein the receiving apparatus demodulates the encryption control code transmitted from the transmitting apparatus. ; A storage unit for storing the same lookup table as the lookup table included in the transmitter; A checksum code for decrypting the encrypted control code by decoding the demodulated control code in the reverse order performed by the transmitting apparatus with reference to the lookup table stored in the storage; and forming a decoded control code. Check whether the checksum code is the same, and if it is the same, check whether the identification ID of the decoded control code and the identification ID stored in the storage unit are the same; ID; and an operation unit for comparing the first authentication ID of the decoded control code with each other to authenticate the received control code.

이하 첨부된 도면을 참조로 본 발명의 바람직한 실시예를 상세히 설명하기로 한다. 이에 앞서, 본 명세서 및 청구범위에 사용된 용어나 단어는 통상적이거나 사전적인 의미로 한정해서 해석되어서는 아니되며, 발명자는 그 자신의 발명을 가장 최선의 방법으로 설명하기 위해 용어의 개념을 적절하게 정의할 수 있다는 원칙에 입각하여 본 발명의 기술적 사상에 부합하는 의미와 개념으로 해석되어야만 한다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. Prior to this, terms or words used in the specification and claims should not be construed as having a conventional or dictionary meaning, and the inventors should properly explain the concept of terms in order to best explain their own invention. Based on the principle that can be defined, it should be interpreted as meaning and concept corresponding to the technical idea of the present invention.

따라서, 본 명세서에 기재된 실시예와 도면에 도시된 구성은 본 발명의 가장 바람직한 일 실시예에 불과할 뿐이고 본 발명의 기술적 사상을 모두 대변하는 것은 아니므로, 본 출원시점에 있어서 이들을 대체할 수 있는 다양한 균등물과 변형예들이 있을 수 있음을 이해하여야 한다.Therefore, the embodiments described in the specification and the drawings shown in the drawings are only the most preferred embodiment of the present invention and do not represent all of the technical idea of the present invention, various modifications that can be replaced at the time of the present application It should be understood that there may be equivalents and variations.

도 1은 본 발명에 따른 송신장치 및 수신장치로 구성된 시스템의 블록 구성도를 도시한 것이다.1 is a block diagram of a system composed of a transmitter and a receiver according to the present invention.

송신장치(100)는 제어코드(300)를 본 발명에 따라 암호화해 무선 채널로 전송하는 장치로 구성되며, 수신장치(200)는 상기 송신장치에서 암호화해 전송된 제어코드를 본 발명에 따라 복호화해 인증하며, 상기 제어코드의 일부로 수록된 동작제어 코드에 따라 수신장치의 일부로 구성된 동작부의 동작제어를 수행하는 장치로 구성된다.The transmitting device 100 is composed of a device for encrypting the control code 300 in accordance with the present invention and transmitting in a wireless channel, the receiving device 200 decrypts the control code transmitted by encrypting in the transmitting device according to the present invention And an apparatus for performing operation control of an operation unit configured as part of a receiving apparatus according to an operation control code recorded as part of the control code.

먼저, 상기 송신장치(100)는 제어부(110), 입력부(120), 저장부(130) 및 송신부(140)를 포함해서 구성된다. 상기 제어부(110)는 상기 저장부(130)에 수록된 룩업 테이블(131)을 참조로 상기 수신장치(200)의 동작 제어와 관련된 일련의 제어코드를 생성한다. 도 2에는 본 발명에 따라 구성된 제어 코드 데이터의 포맷을 상세히 도시하였다. 도 2중 도 2a를 참조하면, 본 발명의 제어코드 데이터(300)는 ID 프레임(310) 및, 동작제어 코드(320), 및 체크 섬 코드(330)로 구성된다. 다시, 상기 ID 프레임(310)은 식별 ID(311), 제1 인증 ID(313), 제2 인증 ID(315)로 이루어진다(도 2b 참조). 상기 식별 ID(311)는 시스템마다 상이한 코드 값으로 설정되어, 송신장치(100)와 메인 장치(200)를 1차로 인증하는 코드로서 사용된다. 한편, 제어코드(300)의 길이는 보안사항을 결정하는 핵심요인이다. 따라서, 길이가 길수록 보안성은 높지만, 이를 구현하기가 어려워짐으로, 통상적인 확률의 개념을 도입해서 결정하는 것이 바람직하다. 그리고, 이 부분은 본 발명과 직접 관련이 없으므로 그 상세한 설명은 생략하고, 이후의 설명은 4바이트(bytes)의 보안 수준으로 설명한다.First, the transmitter 100 includes a controller 110, an inputter 120, a storage 130, and a transmitter 140. The controller 110 generates a series of control codes related to the operation control of the receiving apparatus 200 with reference to the lookup table 131 included in the storage 130. 2 shows in detail the format of control code data constructed in accordance with the present invention. Referring to FIG. 2A of FIG. 2, the control code data 300 of the present invention includes an ID frame 310, an operation control code 320, and a check sum code 330. Again, the ID frame 310 is composed of an identification ID 311, a first authentication ID 313, and a second authentication ID 315 (see FIG. 2B). The identification ID 311 is set to a different code value for each system and used as a code for firstly authenticating the transmitting apparatus 100 and the main apparatus 200. On the other hand, the length of the control code 300 is a key factor in determining the security matters. Therefore, the longer the length, the higher the security, but it is difficult to implement, it is desirable to determine by introducing the concept of ordinary probability. Since this part is not directly related to the present invention, a detailed description thereof will be omitted, and the following description will be given with a security level of 4 bytes.

본 발명에 있어서, ID 프레임(310)을 구성하는 제1 인증 ID(313)와 제2 인증 ID(315)는 제어부(110)에서 내부적으로 프로그램된 순서에 따라 임의의 값으로 중복되지 않게 생성된다. 본 발명에서, 이 ID 프레임(310)은 2차 인증과 관련된 정보들이며, 제1 인증 ID(313)는 현재 송신장치(100)에서 발신장치(200)로 전송되는 제어코드(300)를 인증하는데 사용되며, 상기 제2 인증 ID(315)는 이후로 상기 발신장치(100)에서 발생하는 제어코드를 인증하기 위해서 수신장치(200)편에서 저장하였다가, 상기 송신장치(100)에서 송신한 제어코드(300) 중 ID 프레임(310)의 제1 인증 ID(313)와 비교된다. 마지막으로, 제어코드(300)를 구성하는 체크 섬 코드(330)는 복호화 과정의 클루(clue)로 사용된다. 이에 대해서는 후술한다.In the present invention, the first authentication ID 313 and the second authentication ID 315 constituting the ID frame 310 are generated so as not to overlap with any value in the order programmed internally in the controller 110. . In the present invention, the ID frame 310 is information related to the second authentication, the first authentication ID 313 is used to authenticate the control code 300 is transmitted from the current transmission device 100 to the source device 200 The second authentication ID 315 is stored in the receiving apparatus 200 in order to authenticate the control code generated by the transmitting apparatus 100 and then transmitted from the transmitting apparatus 100. The code 300 is compared with the first authentication ID 313 of the ID frame 310. Finally, the check sum code 330 constituting the control code 300 is used as a clue of the decoding process. This will be described later.

다시 도 1로 돌아가서, 저장부(130)는 비휘발성 메모리인 롬(ROM)과 휘발성 메모리인 램(RAM)으로 구성될 수 있으며, 상기 롬에는 제어코드(300)를 암호화하는데 참조되는 룩업 테이블(131)을 저장한다. 룩업 테이블(131)은, 도 3에 상세히 예시된 바와 같이, 제어코드를 암호화하는 데 사용되는 연산 동작과 연산 값이 수록되어 있으며, 송신장치(100)에 수록된 룩업 테이블에는 암호화 연산 동작만이 수록되고, 이에 대응해서 수신장치(200)에는 복호화 연산 동작만이 수록되는 것이 바람직하다. 그리고, 저장부(130)를 구성하는 램은 사용자에 의해 선택된 입력부(120)의 동작 버튼에 따라 제어부(110)에 의해 생성되는 제어코드를 일시 저장한다. 한편, 입력부(120)에 마련된 동작 버튼의 선택에 따라서 발생하는 동작제어 코드 데이터(133)를 저장부(130)는 더 수록하고 있다.Referring back to FIG. 1, the storage unit 130 may include a non-volatile memory (ROM) and a volatile memory (RAM), and the ROM includes a lookup table (referenced to encrypt the control code 300). 131). As illustrated in detail in FIG. 3, the lookup table 131 includes arithmetic operations and arithmetic values used to encrypt a control code, and includes only arithmetic operations in a lookup table included in the transmission apparatus 100. Correspondingly, it is preferable that only the decoding operation is recorded in the reception apparatus 200. The RAM constituting the storage 130 temporarily stores the control code generated by the controller 110 according to an operation button of the input unit 120 selected by the user. On the other hand, the storage unit 130 further stores the operation control code data 133 generated according to the selection of the operation button provided in the input unit 120.

한편, 상기 입력부(120)는 다수의 동작 버튼을 포함해서 구성된다. 상기 입력부(120)에 마련된 동작 버튼은 수신장치(100)에 구비된 동작부(290)를 원격 제어하기 위하여 사용자에 의해 선택되는 버튼으로 사용된다. 사용자에 의해 선택된 버튼에 대응하는 동작제어 코드(133)는 제어부(110)에서 제어코드(300)의 일부로 구성되어 상기 수신장치(200)로 전송된다.On the other hand, the input unit 120 is configured to include a plurality of operation buttons. The operation button provided in the input unit 120 is used as a button selected by a user to remotely control the operation unit 290 provided in the receiving apparatus 100. The operation control code 133 corresponding to the button selected by the user is configured as part of the control code 300 in the controller 110 and transmitted to the receiving device 200.

다음으로, 송신부(140)는 제어부(110)에 의해 룩업 테이블(131)을 참조로 암호화된 제어코드(300)를 통상의 변조 방식으로 변조하여 무선채널을 통해 수신장치(200)로 전송한다.Next, the transmitter 140 modulates the control code 300 encrypted by the controller 110 with reference to the lookup table 131 in a normal modulation scheme and transmits the modulated control code 300 to the receiver 200 through a wireless channel.

이하, 본 발명의 제어부(110)에 의해 수행되는 일련의 제어코드 암호화 과정은 도 4를 참조하여 상세히 설명한다. 도 4는 송신장치(100)가 본 발명에 따라 암호화된 제어코드를 생성하는 과정을 도시한 것이다.Hereinafter, a series of control code encryption processes performed by the control unit 110 of the present invention will be described in detail with reference to FIG. 4. 4 illustrates a process in which the transmitting device 100 generates an encrypted control code according to the present invention.

도 4를 참조하면, 제어부(110)는 암호화될 데이터로서 도 2에 예시된 바와 같이 프레임 ID(310) 중 4바이트 길이의 제1 인증 ID(313)와 제2 인증 ID(315)를 중복되지 않는 랜덤한 코드로 생성한다(S110). 도 5에서, 제1 인증 ID(313)는 4바이트 단위의 16진 표기로 '00 00 00 01'로 예시하였으며, 제2 인증 ID(315)는 '00 01 01 01'로 예시하였다. 더욱이, 제1 인증 ID(313)는 이전 암호화 과정에서 제2 인증 ID로 사용된 코드가 사용된다.Referring to FIG. 4, the controller 110 does not overlap the first authentication ID 313 and the second authentication ID 315 having a 4-byte length among the frame ID 310 as illustrated in FIG. 2 as data to be encrypted. Does not generate a random code (S110). In FIG. 5, the first authentication ID 313 is illustrated as '00 00 00 01 'in hexadecimal notation, and the second authentication ID 315 is illustrated as '00 01 01 01'. Moreover, the code used as the second authentication ID in the previous encryption process is used as the first authentication ID 313.

다음으로, 상기 제어부(110)가 저장부(130)에 수록된 룩업 테이블(131)을 참조로 제어코드 데이터(300)를 암호화하는 과정이 설명된다.Next, a process of encrypting the control code data 300 by the control unit 110 with reference to the lookup table 131 included in the storage unit 130 will be described.

현재, 발생된 제어코드(300)내 제1 인증 ID(313)와 제2 인증 ID(315)는 도 5a에 예시된 바와 같이, 니블단위 바이트 '00, 00, 00, 01', '00, 01, 01, 01'로 설정되어 있다. 한편, 제2 인증 ID(315)는 송신장치(100)에서 제어코드(300) 발생시 마다 렌덤하게 새롭게 구해지는 코드이며, 제1 인증 ID(313)는 이전 송출 과정에서 발생된 제2 인증 ID이다. 그리고, ID 프레임(310)과 동작제어 코드(320)로부터 통상적인 방법(도면에서는 식별ID의 첫 번째 바이트 값부터 동작제어 코드 값까지 XOR하여 구해진 값을 도시함)에 의해서 구해진 체크섬 코드(330)가 '51'로 설정되어 있다. 따라서, 암호화 클루로 사용되는 체크 섬이 가변적인 값을 가지는 제1 인증 ID(313) 및 제2 인증 ID(315)를 바탕으로 구해지기 때문에, 체크 섬 코드 역시 제어코드(300) 발생시 마다 매번 새로운 값으로 구해진다.Currently, the first authentication ID 313 and the second authentication ID 315 in the generated control code 300 are nibble unit bytes '00, 00, 00, 01 ', '00, It is set to 01, 01, 01 '. On the other hand, the second authentication ID 315 is a code that is newly obtained randomly every time the control code 300 occurs in the transmitting apparatus 100, the first authentication ID 313 is a second authentication ID generated in the previous transmission process . Then, the checksum code 330 obtained from the ID frame 310 and the operation control code 320 by a conventional method (shown in the drawing by XORing from the first byte value of the identification ID to the operation control code value). Is set to '51'. Therefore, since the check sum used as the encryption clue is obtained based on the first authentication ID 313 and the second authentication ID 315 having variable values, the check sum code is also updated every time the control code 300 is generated. It is obtained by value.

S120 단계에서, 도 5a처럼 발생된 제어코드(300)는 룩업 테이블(131)에서 대응하는 연산 동작과 연산 값으로 선택되어 암호화되는데, 체크 섬을 8로 나누어서 구해지는 나머지 값(따라서, 0 내지 7에서 선택됨)에 따라 각 코드의 바이트별 연산 값이 구해진다. 그리고, 구해진 값과 연관된 연산 동작은 기 설정된 바이트별 'ADD(311(도면번호)_0(바이트별 자릿수)), XOR(311_1), SUB(311_2), ADD((311_3), XOR(313_0), SUB(313_1), ADD(313_2), XOR(313_3), SUB(315_0), ADD(315_1), XOR(315_2), SUB(315_3)'로 지정된다.In operation S120, the control code 300 generated as shown in FIG. 5A is selected and encrypted as a corresponding operation operation and operation value in the lookup table 131. The remaining values obtained by dividing the checksum by 8 (hence, 0 to 7). Is selected from), and the byte-by-byte operation value of each code is obtained. In addition, the operation associated with the obtained value may be set by the preset bytes' ADD (311 (drawing number) _0 (number of digits per byte)), XOR (311_1), SUB (311_2), ADD ((311_3), XOR (313_0), SUB 313_1, ADD 313_2, XOR 313_3, SUB 315_0, ADD 315_1, XOR 315_2, and SUB 315_3 '.

그 다음, 도 4a에 예시된 제어코드 데이터(300)중 식별 ID(311) '00 00 00 01'와 룩업 테이블(131)로부터 구해진 연산 값 '5C 5D 5E 5F', 제1 인증 ID(313) '00 00 00 01'와 연산 값 '60 61 62 63', 제2 인증 ID(315) '00 01 01 01'와 연산 값 '64 BF C0 C1'이 상술한 연산 동작에 따라 순차적으로 연산된다. 그 결과, 도 5a에 예시된 제어코드는 도 5b와 같은 코드값들로 암호화된다(S120 ∼ S140).Next, the operation value '5C 5D 5E 5F' obtained from the identification ID 311 '00 00 00 01 'and the lookup table 131 of the control code data 300 illustrated in FIG. 4A and the first authentication ID 313. '00 00 00 01 ', the operation value '60 61 62 63', the second authentication ID 315 '00 01 01 01 'and the operation value '64 BF C0 C1' are sequentially calculated according to the above-described operation. As a result, the control code illustrated in FIG. 5A is encrypted with code values as shown in FIG. 5B (S120 to S140).

그리고, 상술한 과정(S110 내지 S140)을 통해서 암호화된 제어코드는 사용자에 의해 입력부(120)를 구성하는 선택 버튼의 선택에 의해서 생성된 동작제어 코드(320)와 함께 조합되고, 송신부(140)에 의해 변조되어 도 5b에 예시된 데이터 포맷으로 무선 채널을 통해 수신장치(200)로 전송된다.Then, the control code encrypted through the above-described process (S110 to S140) is combined with the operation control code 320 generated by the selection of the selection button constituting the input unit 120 by the user, the transmission unit 140 Is modulated and transmitted to the receiving device 200 via a wireless channel in the data format illustrated in FIG. 5B.

한편, 수신장치(200)는 송신장치(100)에서 전송된 제어코드(300)에 따라 구동되는 동작부(290)를 더 구비하는 것을 제외하고는 송신장치(100)와 동일한 구성을 갖는다. 따라서, 동일한 구성에 대한 설명은 생략한다. 한편, 도 6은 본 발명에 따라 송신장치에서 암호화해 송신한 제어코드를 복호화하는 과정을 설명이다.On the other hand, the receiving apparatus 200 has the same configuration as the transmitting apparatus 100 except for further including an operation unit 290 driven according to the control code 300 transmitted from the transmitting apparatus 100. Therefore, description of the same configuration is omitted. 6 illustrates a process of decrypting a control code encrypted and transmitted by a transmission apparatus according to the present invention.

도 6을 참조하면, 수신장치(200)의 제어부(210)는 저장부(130)에 수록된 룩업 테이블(231)을 참조로 송신장치(100)에서 수행된 암호화 과정의 역으로 복호하는 과정을 수행해 제어코드를 복호화한다.Referring to FIG. 6, the controller 210 of the receiver 200 performs a process of decrypting the reverse of the encryption process performed by the transmitter 100 with reference to the lookup table 231 included in the storage 130. Decode the control code.

먼저, S210 단계에서, 수신장치(200)의 수신부(240)는 송신 장치로부터 전송된 제어코드 데이터를 복조해 제어부(210)에 인가한다(S210). 이 때, 수신장치(200)에서 복조된 제어코드 데이터는 도 5b와 동일하다.First, in step S210, the receiver 240 of the receiver 200 demodulates the control code data transmitted from the transmitter and applies it to the controller 210 (S210). At this time, the control code data demodulated by the receiving device 200 is the same as in Fig. 5b.

그럼, 다음 단계(S220)에서 제어부(210)는 복조된 제어코드 데이터(300)중 체크 섬 코드(330)를 8로 나누어서 얻어진 나머지 수를 참조로, 저장부(230)에 수록된 룩업 테이블(231)에서 식별 ID(311), 제1 인증 ID(313), 제2 인증 ID(315)의 각 바이트 자릿수별 연산 값을 구한다. 이 결과로 구해진 연산 값이 '5C 5D 5E 5F' '60 61 62 63' '64 BF C0 C1'이다. 또한, S220 단계를 통해 구해진 값과 연관된 연산 동작은 상기 룩업 테이블(231)에 바이트별로 기 설정되어 수록된 연산 동작, 즉 암호화 연산 동작에 대응하는 'SUB(311_0), XOR(311_1), ADD(311_2), SUB((311_3), XOR(313_0), ADD(313_1), SUB(313_2), XOR(313_3), ADD(315_0), SUB(315_1), XOR(315_2), ADD(315_3)'로 지정된다. 이에 따라, S220 단계를 통해서 복조된 제어코드 데이터(300)는 도 5a와 같이 원래의 데이터로 복호된다.Then, in a next step (S220), the controller 210 refers to the remaining number obtained by dividing the check sum code 330 by eight of the demodulated control code data 300 by eight, and the lookup table 231 included in the storage 230. ), The operation value for each byte digit of the identification ID 311, the first authentication ID 313, and the second authentication ID 315 is obtained. The calculated result is '5C 5D 5E 5F' '60 61 62 63 ''64 BF C0 C1'. In addition, the operation associated with the value obtained through the step S220 is' SUB (311_0), XOR (311_1), ADD (311_2) corresponding to the operation operation that is preset and stored in the lookup table 231 for each byte, that is, the encryption operation operation. ), SUB ((311_3), XOR (313_0), ADD (313_1), SUB (313_2), XOR (313_3), ADD (315_0), SUB (315_1), XOR (315_2), ADD (315_3) ' Accordingly, the control code data 300 demodulated through the step S220 is decoded to the original data as shown in Fig. 5a.

그런 다음, 제어부(210)는 상술한 과정을 통해서 복호된 코드, 즉 ID 프레임(310)으로부터 상술한 방식(도 4의 S120 단계)으로 새롭게 구한 체크 섬 코드와 복조되기 전의 제어코드를 구성하는 체크 섬 코드가 서로 동일한지를 검사한다(S230).Then, the control unit 210 checks constituting a code decoded through the above-described process, that is, a checksum code newly obtained from the ID frame 310 in the above-described manner (step S120 of FIG. 4) and the control code before demodulation. It is checked whether the island codes are the same (S230).

그 결과, 두 코드가 일치하지 않으면, 단계를 종료한다. 반면에, 두 코드가 일치하면, 다음으로 수신장치(200)의 저장부(230) 중 비휘발성 메모리인 롬과 같은 저장 영역에 수록된 식별 ID와 복호된 제어코드 데이터의 식별 ID가 서로 동일한지를 검사하고(S240), 이어서 복호된 제어코드 중 제1 인증 ID와, 이전 송출과정에서 송신장치(100)가 전송한 제어코드로부터 복호되어 저장부(230)에 수록된 2 인증 ID(135)를 상기 저장부(230)로부터 추출하여 서로 비교한다(S250). 이 역시 동일한 것으로 검사된 경우에는 저장부에 이전의 인증과정에서 획득하여 수록하고 있는 제2 인증 ID(135)를, 상술한 복호화 과정을 통해서 획득한 새로운 제2 인증 ID로 갱신해(S260), 송신장치(100)로부터 무선 채널을 통해 수신된 제어코드의 인증 과정을 완료한다. 한편, 이 과정(S260)은 필수적으로 S240 과정에 의해 식별 ID 인증이 이루어지면 이에 따라 발생하는 것이 바람직한데, 시스템 오류로 인해 송신장치(100)에서 발생한 제1인증 ID와 수신장치(200)에서 수록하고 있는 제2 인증 ID가 일치하지 않는 경우에 ID 코드의 재설정을 위해서이다. 따라서, 도면에는 S260 과정 이후에 발생하는 단계로 제2 인증 ID의 갱신 과정을 도시하였으나, S240 단계 이후라면 어디라도 무방하다.As a result, if the two codes do not match, the step ends. On the other hand, if the two codes match, it is next checked whether the identification ID of the storage unit 230 of the receiving apparatus 200 and the identification ID of the decoded control code data are the same. (S240), and then stores the first authentication ID of the decoded control codes and the two authentication IDs 135 stored in the storage unit 230 decoded from the control code transmitted by the transmitting apparatus 100 in the previous transmission process. Extracted from the unit 230 and compared with each other (S250). If the same is also checked, the second authentication ID 135 acquired and recorded in the previous authentication process in the storage unit is updated with the new second authentication ID obtained through the above-described decryption process (S260). The authentication process of the control code received from the transmitter 100 through the wireless channel is completed. On the other hand, this process (S260) is preferably generated according to the identification ID authentication by the process S240 is essential, the first authentication ID generated in the transmitting apparatus 100 and the receiving apparatus 200 due to a system error This is for resetting the ID code when the second authentication ID stored does not match. Therefore, although the process of updating the second authentication ID is shown as a step occurring after step S260 in the drawing, any step after step S240 may be performed.

그리고, 수신장치(200)는 제어코드의 동작제어 코드(320)의 데이터 스트림으로부터 동작 코드를 참조로 동작부(290)를 제어하는 동작을 수행하게 된다(S270).Then, the receiving apparatus 200 performs an operation of controlling the operation unit 290 with reference to the operation code from the data stream of the operation control code 320 of the control code (S270).

이상과 같이, 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 이것에 의해 한정되지 않으며 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 본 발명의 기술사상과 아래에 기재될 특허청구범위의 균등범위 내에서 다양한 수정 및 변형이 가능함은 물론이다. As described above, although the present invention has been described by way of limited embodiments and drawings, the present invention is not limited thereto and is intended by those skilled in the art to which the present invention pertains. Of course, various modifications and variations are possible within the scope of equivalents of the claims to be described.

본 발명에 따르면, 본 발명의 제어코드로 구성된 제1 인증 ID와, 제2 인증 ID가 항상 변화하는 값으로 정의되기 때문에, 이 값들에 의해 구해지는 체크 섬 역시 매 번 새로운 값으로 정의된다. 따라서, 암호화 클루로 사용되는 체크 섬이 항상 변화하기 때문에 암호화가 일정한 규칙을 갖고서 이루어지지 않기 때문에 제어코드가 노출될 염려가 없다. 더욱이, 제1 인증 ID와 제2 인증 ID를 바탕으로 구해진 체크 섬 역시 특정 인수로 나눈 나머지를 참조로 암호화 연산 값을 구하기 때문에, 더 더욱 변화의 폭이 커져 제어코드가 복제되거나 노출될 여지가 없다. According to the present invention, since the first authentication ID and the second authentication ID constituted by the control code of the present invention are defined as always changing values, the check sums obtained by these values are also defined as new values every time. Therefore, there is no fear that the control code is exposed because the encryption is not made with a certain rule because the check sum used as the encryption clue is always changing. Moreover, the checksum obtained based on the first authentication ID and the second authentication ID also obtains the encryption operation value by referring to the remainder divided by a specific argument, so that there is no change and the control code is not duplicated or exposed. .

본 명세서에 첨부되는 다음의 도면들은 본 발명의 바람직한 실시예를 예시하는 것이며, 후술하는 발명의 상세한 설명과 함께 본 발명의 기술사상을 더욱 이해시키는 역할을 하는 것이므로, 본 발명은 그러한 도면에 기재된 사항에만 한정되어 해석되어서는 아니된다The following drawings attached to this specification are illustrative of preferred embodiments of the present invention, and together with the detailed description of the invention to serve to further understand the technical spirit of the present invention, the present invention is a matter described in such drawings It should not be construed as limited to

도 1은 본 발명에 따라 구성되는 시스템의 블록 구성도이다.1 is a block diagram of a system constructed in accordance with the present invention.

도 2는 본 발명에 따른 제어코드의 데이터 포맷을 도시한 것이다.2 shows a data format of a control code according to the present invention.

도 3은 본 발명에 따른 룩업 테이블의 일 예를 도시한 것이다.3 illustrates an example of a lookup table according to the present invention.

도 4는 본 발명의 송신장치에서 제어코드를 암호화하는 과정을 도시한 흐름도이다.4 is a flowchart illustrating a process of encrypting a control code in a transmitting apparatus of the present invention.

도 5는 본 발명의 암호화 및 복호화 과정을 설명하는 제어코드 데이터의 구성예를 도시한 것이다.5 shows a configuration example of control code data for explaining an encryption and decryption process of the present invention.

도 6은 본 발명의 수신장치에서 제어코드를 복호화해 인증하는 과정을 도시한 흐름도이다.6 is a flowchart illustrating a process of decrypting and authenticating a control code in a receiving apparatus of the present invention.

*도면의 주요부호에 대한 간단한 설명** Brief description of the major symbols in the drawings *

100: 송신장치 131: 룩업 테이블 200: 수신장치100: transmitter 131: lookup table 200: receiver

300: 제어코드 313: 제1 인증 ID 315: 제2 인증 ID300: control code 313: first authentication ID 315: second authentication ID

Claims (11)

제어코드를 구성하는 체크 섬 코드를 가변적으로 생성하여 암호화하는 방법으로,A method of encrypting and encrypting a checksum code constituting a control code, (a) 상기 제어코드를 구성하는 체크 섬 코드를 제수로 나눈 나머지 값에 따라 다수의 연산 값 및 연산 동작을 수록한 룩업 테이블을 저장부에 수록 저장하는 단계;(a) storing, in a storage unit, a look-up table including a plurality of operation values and operation operations according to a remainder obtained by dividing the check sum code constituting the control code by a divisor; (b) 기 설정된 길이로 제1 인증 ID;를 랜덤하게 생성하고, 상기 저장부에 이전 암호화에서 제1 인증 ID로 사용된 코드를 독출해 제2 인증 ID;로 구성하여 제어코드를 생성하는 단계;(b) randomly generating a first authentication ID with a preset length, reading a code used as a first authentication ID in a previous encryption into the storage unit, and generating a control code by configuring a second authentication ID; ; (c) 상기에서 생성된 제어코드를 구성하는 제1 인증 ID 및 제2 인증 ID로부터 구해진 체크 섬을 제수로 나누어 얻어진 값에 따라 상기 룩업 테이블로부터 연산 값과, 이에 대응하는 연산 동작을 상기 룩업 테이블에서 선택하는 단계; 그리고,(c) calculating a calculated value from the lookup table and a corresponding calculation operation according to a value obtained by dividing the checksum obtained from the first authentication ID and the second authentication ID constituting the control code generated by the divisor. Selecting from; And, (d) 상기 제어코드와, 구해진 연산 값을 연산 동작에 따라 연산하여 제어코드를 암호화하는 단계;를 포함하는 것을 특징으로 하는 제어코드의 암호화 방법.(d) encrypting the control code by calculating the control code and the calculated operation value according to an operation. 제1항에 있어서,The method of claim 1, 상기 제어코드는 식별 ID, 제1 인증 ID, 제2 인증 ID로 이뤄진 ID 프레임; 동작제어 코드; 및, 체크 섬 코드;로 구성되는 것을 특징으로 하는 제어코드의 암호화 방법.The control code includes an ID frame consisting of an identification ID, a first authentication ID, and a second authentication ID; Operation control code; And a checksum code. 제3항에 있어서,The method of claim 3, 상기 연산 동작은 ID 프레임을 구성하는 각 바이트별 자릿수에 대응하게 정의된 것을 특징으로 하는 제어코드의 암호화 방법.And the operation is defined corresponding to the number of digits for each byte constituting the ID frame. 송신장치에서 생성한 제어코드를 암호화해 전송하고, 상기 제어코드의 제어하에 동작하는 수신장치에서, 룩업 테이블을 참조로 수신된 제어코드를 인증하는 방법으로,A method of encrypting and transmitting a control code generated by a transmitting device and authenticating a received control code with reference to a look-up table in a receiving device operating under control of the control code, 상기 송신장치가,The transmitter, (a) 기 설정된 길이로 제1 인증 ID;를 랜덤하게 생성하고, 저장부에 이전 암호화에서 제1 인증 ID로 사용된 코드를 독출해 제2 인증 ID;로 구성하여 제어코드를 생성하는 단계;generating a control code by randomly generating a first authentication ID with a preset length, reading a code used as a first authentication ID in a previous encryption into a storage unit, and configuring a second authentication ID; (b) 상기에서 생성된 제어코드를 구성하는 제1 인증 ID 및 제2 인증 ID로부터 구해진 체크 섬을 제수로 나누어 얻어진 값에 따라 상기 저장부에 수록된 룩업 테이블로부터 연산 값과, 이에 대응하는 연산 동작을 상기 룩업 테이블에서 선택하는 단계; 그리고,(b) an operation value from the lookup table stored in the storage unit according to a value obtained by dividing the checksum obtained from the first authentication ID and the second authentication ID constituting the control code generated by the divisor, and a corresponding operation; Selecting from the lookup table; And, (c) 상기 제어코드와, 구해진 연산 값을 연산 동작에 따라 연산하여 제어코드를 암호화하고, 이를 변조하여 무선으로 전송하는 단계;를 포함하는 암호화 과정과,(c) encrypting the control code by calculating the control code and the calculated operation value according to a calculation operation, and modulating the control code and transmitting the control code over the air; 상기 수신장치가,The receiving device, (d) 상기 송신장치에서 전송된 제어코드를 복조하여 저장부에 수록된 룩업 테이블을 참조로 상기 송신장치에서 행한 역순으로 복호화하여 암호화된 제어코드를 복호화하는 단계; 그리고,(d) demodulating the control code transmitted from the transmission device and decrypting the encrypted control code by decrypting the control code in the reverse order performed by the transmission device with reference to the lookup table included in the storage unit; And, (e) 복호된 제어코드를 구성하는 체크 섬 코드;와 복호된 코드들로부터 구해진 체크 섬 코드;가 동일한지를 검사하고, 동일한 경우에는 복호된 제어코드의 식별 ID;와 상기 수신장치의 저장부에 수록된 식별 ID;가 동일한지를 검사하는 한편, 이전 인증과정에서 획득하여 상기 저장부에 수록된 제2 인증 ID;와, 복호된 제어코드의 제1 인증 ID를 비교해 수신된 제어코드를 인증하는 단계;를 포함하는 것을 특징으로 하는 제어코드의 인증 방법.(e) a checksum code constituting the decoded control code; and a checksum code obtained from the decoded codes; checks whether they are the same, and if it is the same, an identification ID of the decoded control code; Checking whether the stored identification ID is the same, and authenticating the received control code by comparing the second authentication ID obtained in the previous authentication process and stored in the storage unit with the first authentication ID of the decoded control code. Authentication method of the control code, characterized in that it comprises a. 제5항에 있어서,The method of claim 5, 상기 (e) 단계에서 상기 식별 ID의 인증이 이루어지면, 이에 따라 복호된 제어코드의 제2 인증 ID가 상기 수신장치의 저장부에 수록되어 차기의 인증 과정에 사용되는 것을 특징으로 하는 제어코드의 인증 방법.When the identification ID is authenticated in the step (e), the second authentication ID of the decoded control code is stored in the storage unit of the receiving apparatus and used for the next authentication process. Authentication method. 제5항에 있어서,The method of claim 5, 상기 제어코드는 식별 ID, 제1 인증 ID, 제2 인증 ID로 이뤄진 ID 프레임; 동작제어 코드; 및, 체크 섬 코드;로 구성되는 것을 특징으로 하는 제어코드의 인증 방법.The control code includes an ID frame consisting of an identification ID, a first authentication ID, and a second authentication ID; Operation control code; And a check sum code. 제6항에 있어서,The method of claim 6, 상기 연산 동작은 ID 프레임을 구성하는 각 바이트별 자릿수에 대응하게 정의된 것을 특징으로 하는 제어코드의 암호화 방법.And the operation is defined corresponding to the number of digits for each byte constituting the ID frame. 제어코드를 암호화해 송신하는 송신장치와, 송신장치에서 전송된 제어코드에 따라 제어 동작을 수행하는 수신장치로 구성된 시스템으로,A system comprising a transmitting device for encrypting and transmitting a control code and a receiving device for performing a control operation according to a control code transmitted from the transmitting device. 상기 송신장치는,The transmitting device, 다수의 동작 버튼을 구비해, 이에 대응하는 동작제어 코드를 발생시키는 입력부;An input unit including a plurality of operation buttons and generating an operation control code corresponding thereto; 상기 제어코드를 구성하는 체크 섬 코드를 제수로 나눈 나머지 값에 따라 다수의 연산 값 및 연산 동작을 수록한 룩업 테이블을 수록한 저장부;A storage unit for storing a look-up table that includes a plurality of operation values and operation operations according to a remainder obtained by dividing the check sum code constituting the control code by a divisor; 상기 동작 버튼의 선택에 응답하여, 기 설정된 길이로 제1 인증 ID;를 랜덤하게 생성하고, 상기 저장부에 이전 암호화에서 제1 인증 ID로 사용된 코드를 독출해 제2 인증 ID;로 구성해 제어코드를 생성하는 한편, 상기 제어코드를 구성하는 체크 섬을 제수로 나누어 얻어진 값에 따라 상기 저장부에 수록된 룩업 테이블로부터 연산 값과, 이에 대응하는 연산 동작을 상기 룩업 테이블에서 선택해 제어코드를 암호화하는 연산부;In response to the selection of the operation button, randomly generates a first authentication ID with a preset length, reads a code used as a first authentication ID in a previous encryption into the storage unit, and constitutes a second authentication ID; Generates a control code and encrypts the control code by selecting an operation value from the lookup table stored in the storage unit and a corresponding operation in the lookup table according to a value obtained by dividing the check sum constituting the control code by a divisor. An operation unit; 상기 연산부에 의해 생성된 암호 제어코드를 변조하여 무선 채널을 통해 상기 수신장치로 송출하는 송신부;를 포함하며,And a transmitting unit for modulating the encryption control code generated by the calculating unit and transmitting the encrypted control code to the receiving apparatus through a wireless channel. 상기 수신장치는,The receiving device, 상기 송신장치에서 전송된 암호 제어코드를 복조하는 수신부;A receiver which demodulates an encryption control code transmitted from the transmitter; 상기 송신장치에 수록된 룩업 테이블과 동일한 룩업 테이블을 수록하는 저장부;A storage unit for storing the same lookup table as the lookup table included in the transmitter; 상기 복조된 제어코드를 상기 저장부에 수록된 룩업 테이블을 참조로 상기 송신장치에서 행한 역순으로 복호화하여 암호화된 제어코드를 복호하며, 복호된 코드들로부터 구해진 체크 섬 코드;와 복호전 제어코드의 체크 섬 코드가 동일한지를 검사하고, 동일한 경우에는 복호된 제어코드의 식별 ID;와 상기 저장부에 수록된 식별 ID;가 동일한지를 검사하는 한편, 이전 인증과정에서 획득하여 상기 저장부에 수록된 제2 인증 ID;와, 복호된 제어코드의 제1 인증 ID를 서로 비교해 수신된 제어코드를 인증하는 연산부;를 포함해서 구성된 것을 특징으로 하는 시스템.Decrypts the encrypted control code by decrypting the demodulated control code in the reverse order performed by the transmitting apparatus with reference to the lookup table stored in the storage unit, and checksum code obtained from the decoded codes; Check whether the island code is the same, and if it is the same, the identification ID of the decoded control code and the identification ID stored in the storage unit are the same, and the second authentication ID obtained in the previous authentication process and stored in the storage unit. And an arithmetic unit for comparing the first authentication ID of the decoded control code with each other and authenticating the received control code. 제8항에 있어서,The method of claim 8, 상기 (e) 단계에서 상기 식별 ID의 인증이 이루어지면, 이에 따라 복호된 제어코드의 제2 인증 ID가 상기 수신장치의 저장부에 수록되어 차기의 인증 과정에 사용되는 것을 특징으로 하는 제어코드의 인증 방법.When the identification ID is authenticated in the step (e), the second authentication ID of the decoded control code is stored in the storage unit of the receiving apparatus and used for the next authentication process. Authentication method. 제9항에 있어서,The method of claim 9, 상기 제어코드는 식별 ID, 제1 인증 ID, 제2 인증 ID로 이뤄진 ID 프레임; 동작제어 코드; 및, 체크 섬 코드;로 구성되는 것을 특징으로 하는 시스템.The control code includes an ID frame consisting of an identification ID, a first authentication ID, and a second authentication ID; Operation control code; And a check sum code. 제10항에 있어서,The method of claim 10, 상기 연산 동작은 ID 프레임을 구성하는 각 바이트별 자릿수에 대응하게 정의된 것을 특징으로 하는 시스템.And the operation is defined corresponding to the number of digits for each byte constituting the ID frame.
KR1020030065034A 2003-09-19 2003-09-19 Methods for authenticating and coding a controling code based on its check sum and system thereof KR20050029018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030065034A KR20050029018A (en) 2003-09-19 2003-09-19 Methods for authenticating and coding a controling code based on its check sum and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030065034A KR20050029018A (en) 2003-09-19 2003-09-19 Methods for authenticating and coding a controling code based on its check sum and system thereof

Publications (1)

Publication Number Publication Date
KR20050029018A true KR20050029018A (en) 2005-03-24

Family

ID=37385756

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030065034A KR20050029018A (en) 2003-09-19 2003-09-19 Methods for authenticating and coding a controling code based on its check sum and system thereof

Country Status (1)

Country Link
KR (1) KR20050029018A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110066703A (en) * 2009-12-11 2011-06-17 한국전자통신연구원 Security information method of rfid system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110066703A (en) * 2009-12-11 2011-06-17 한국전자통신연구원 Security information method of rfid system

Similar Documents

Publication Publication Date Title
KR960007808B1 (en) Authentication system for digital cellular communications
US5481610A (en) Digital radio transceiver with encrypted key storage
JP4550736B2 (en) Secure communication
US8687810B2 (en) Chaotic cipher system and method for secure communication
JP4260896B2 (en) Method and apparatus for encrypting a transmitted signal
KR101092696B1 (en) Message authentication code based on error correcting code
KR20190034505A (en) Data conversion system and method
US6108424A (en) Mobile radio telephone station comprising a protection system for at least one authentication number and method of protecting an authentication number
US8607333B2 (en) Radio frequency identification (RFID) security apparatus having security function and method thereof
DK166247B (en) KEY SIGNAL SYSTEM TO REPRODUCE A SUBSCRIPTION KEY SIGNAL IN A SIGNAL RECOVERY
EP1436941A2 (en) Apparatus, system and method for validating integrity of transmitted data
JPH1061277A (en) Remote control device
US7881478B2 (en) Method for controlling access to an encrypted programme
KR20020090139A (en) Devices and processes for the transmission and implementation of control instructions for access to functionalities of receivers
KR20170023805A (en) Method for mobile terminal to transmit authentication password and method for acquiring authentication password
KR20050017350A (en) Method for generating encryption key without an input device and apparatus therefor
US6904150B1 (en) Cryptographic method and system for double encryption of messages
KR20000070170A (en) Method and apparatus for providing authentication security in a wireless communication system
JP2003503743A (en) Modulation message authentication system and method
KR20050029018A (en) Methods for authenticating and coding a controling code based on its check sum and system thereof
KR100365256B1 (en) Method for the encryption and verification of control code data, and the remotecontroller system therefor
CN111654362B (en) Improved method of WEP (web-defined Power-Endoctrine) encryption algorithm
KR20040083794A (en) encryption/decryption method of application data
KR101428665B1 (en) Security system and method for using aes-otp
JP2002261749A (en) Communication system

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E601 Decision to refuse application