KR19990016296A - Synchronous method of synchronous stream cipher and its apparatus - Google Patents

Synchronous method of synchronous stream cipher and its apparatus Download PDF

Info

Publication number
KR19990016296A
KR19990016296A KR1019970038815A KR19970038815A KR19990016296A KR 19990016296 A KR19990016296 A KR 19990016296A KR 1019970038815 A KR1019970038815 A KR 1019970038815A KR 19970038815 A KR19970038815 A KR 19970038815A KR 19990016296 A KR19990016296 A KR 19990016296A
Authority
KR
South Korea
Prior art keywords
block
mixed
bits
ciphertext
shift register
Prior art date
Application number
KR1019970038815A
Other languages
Korean (ko)
Other versions
KR100255357B1 (en
Inventor
이훈재
박봉주
장병화
Original Assignee
배문한
국방과학연구소
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 배문한, 국방과학연구소 filed Critical 배문한
Priority to KR1019970038815A priority Critical patent/KR100255357B1/en
Publication of KR19990016296A publication Critical patent/KR19990016296A/en
Application granted granted Critical
Publication of KR100255357B1 publication Critical patent/KR100255357B1/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/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • H04L9/0656Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
    • H04L9/0662Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher with particular pseudorandom sequence generator

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

본 발명은 수신 데이터 중에 0이 소정비트 이상 연속되는 것을 억제하여 수신클럭을 정확히 복구할 수 있게 함으로써 수신 데이터를 정상적으로 복호할 수 있게한 동기식 스트림 암호의 동기방법 및 그 장치에 관한 것이다. 일반적으로 디지탈 데이터 신호를 암호화 하려면 디지탈 데이터에 균일한 확률분포를 가지는 2진 난수열을 혼합시키는데, 그 출력되는 암호화 데이터는 1, 0이 균일하게 분포되는 랜덤니스(Randomness)특성을 갖게된다. 그러나, 상기 암호화 방식을 T1-PCM 회선에 적용하게 되면 수신 데이터중 과도한 연속 0이 나타날 수 있으며, 이로 인하여 수신클럭 재생이 불안정하게 되는 문제가 있으므로, 암호롸 후에도 0이 소정비트 이상 연속되는 것을 억제하여야 한다. 따라서, 본 발명은 평문 블록을 난수열 블록과 혼합하여, 그 혼합 블록의 모든 비트 및 상기 평문 블록의 모든 비트가 0이 아닌 경우에는 상기 혼합 블록을 암호문 블록으로 송신하고, 상기 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록 대신에 상기 평문 블록을 암호문 블록으로 송신하며, 상기 평문 블록의 모든 비트가 0인 경우에는 전,후 블록을 포함한 3개의 혼합 블록을 이전 평문 블록의 1이 시작되는 비트로부터 이후 평문 블록의 1이 시작되는 비트까지로 부분 대체하여 암호문 블록으로 송신하고, 상기 송신된 암호문 블록을 수신받아 난수열 블록과 혼합하여, 그 혼합 블록의 모든 비트 및 상기 암호문 블록의 모든 비트가 0이 아닌 경우에는 상기 혼합 블록을 복호문 블록으로 출력하고, 상기 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록 대신에 그에 대응하는 상기 암호문 블록을 복호문 블록으로 출력하며, 상기 암호문 블록의 모든 비트가 0인 경우에는 전,후 블록을 포함한 3개의 혼합 블록을 이전 암호문 블록의 1이 시작되는 비트로 부터 이후 암호문 블록의 1이 시작되는 비트까지로 부분 대체하여 복호문 블록으로 출력하게 함으로써, 평문 블록의 모든 비트가 0이 아니라는 가정이 필요없이 암호화 후에도 0이 소정비트 이상 연속되는 것을 억제할 수 있고, 채널오류가 발생되더라도 에러확산을 최소화할 수 있게 한 것이다.The present invention relates to a synchronization method and apparatus for synchronous stream cryptography in which received data can be normally decoded by suppressing consecutive zeroes in received data by more than a predetermined number of bits to accurately recover a received clock. Generally, in order to encrypt a digital data signal, a binary random number sequence having a uniform probability distribution is mixed with digital data, and the output encrypted data has a randomness characteristic in which 1's and 0's are uniformly distributed. However, if the above encryption scheme is applied to the T1-PCM line, excessive continuous 0s may appear in the received data, which causes the reception clock reproduction to become unstable. Therefore, shall. Therefore, according to the present invention, a plaintext block is mixed with a random number sequence block, and when all the bits of the mixed block and all bits of the plaintext block are not 0, the mixed block is transmitted as a ciphertext block, If all the bits of the plaintext block are 0, the three mixed blocks including the previous and the next block are transmitted as a ciphertext block starting from the beginning of the previous plaintext block. And a bit of the plaintext block starting from 1, and transmits the ciphertext block to the ciphertext block. The received ciphertext block is received and mixed with the random number sequence block, and all bits of the mixed block and all of the ciphertext blocks If the bit is not 0, outputs the mixed block to the decoded block, and when all bits of the mixed block are 0, And outputs the ciphertext block corresponding to the ciphertext block as a decryption block instead of the sum block, and when all the bits of the ciphertext block are 0, It is possible to suppress the continuation of 0 for at least a predetermined number of bits even after encryption without requiring the assumption that all bits of the plaintext block are not 0, So that error diffusion can be minimized even if a channel error occurs.

Description

동기식 스트림 암호의 동기방법 및 그 장치Synchronous method of synchronous stream cipher and its apparatus

본 발명은 디지탈 데이터 신호를 암호화하여 송,수신하는 동기식 스트림 암호(Synchronous stream cipher)방법에 관한 것으로, 특히 수신 데이터중에 0이 소정비트 이상 연속되는 것을 억제하여 수신클럭을 복구할 수 있게 함으로써 수신데이터를 정상적으로 복호할 수 있게한 동기식 스트림 암호의 동기방법 및 그 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronous stream cipher method for encrypting and transmitting a digital data signal, and more particularly, To a synchronous stream cipher method and apparatus for synchronizing stream cipher.

디지탈 통신에서 그 성능은 수신측에서 클럭신호를 얼마나 정확하게 복구할 수 있는가에 달려 있으며, 일반적으로 데이터 천이(transition)에 따른 클럭 정보로 부터 위상 고정루프(Phase Locked Loop)를 이용하여 클럭신호를 복원한다.In digital communication, the performance depends on how accurate the clock signal can be recovered from the receiver. Generally, the clock signal is recovered from the clock information according to the data transition using a phase locked loop do.

그러나, 송신 데이터중에 천이가 없을 경우 즉, 0 또는 1이 연속할 경우에는 수신측에서 클럭복구가 불가능해지게 된다. 따라서 피씨엠(PCM)방식에서는 음성 코딩시(coding)시에 0이 연속하여 15개이상 억제되도록 특별한 제약을 가하고 있을 뿐만 아니라, 유선전송중계시 에이엠아이(AMI : Alternate Marked Inversion) 방식의 라인(line)코딩을 이용하여 연속 1에 대한 대책이 있으므로 완벽한 클럭재생대책이 강구되어 있다고 볼 수 있다.However, when there is no transition among the transmission data, that is, when 0 or 1 is continuous, clock recovery can not be performed on the receiving side. Therefore, in the PCM method, not only a special restriction is applied so that the number of zeros can be suppressed by 15 or more at the time of coding at the time of speech coding, but also the AMI (Alternate Marked Inversion) line line) coding, it can be said that countermeasures for perfect clock recovery are taken.

도 1은 종래의 동기식 스트림 암호 송,수신 계통도로서, 이에 도시된 바와같이 디지탈 평문 데이터에 송신 난수열 발생기(1)로 부터 균일한 확률분포를 갖게 발생되는 난수열 데이터를 합산기(2)를 통해 혼합하여 암호문 데이터로 송신하고, 이와같이 송신되어 수신된 암호문 데이터에 수신 난수열 발생기(3)로 부터 균일한 확률분포를 갖게 발생되는 난수열 데이터를 합산기(4)를 통해 혼합하여 디지탈 평문 데이터로 복호하게 구성되어 있다. 따라서, 상기 송신되는 암호문 데이터는 1과 0이 균일하게 분포되는 랜덤니스(Randomness)특성을 갖게된다.FIG. 1 is a block diagram of a conventional synchronous stream cipher transmission and reception system. As shown in FIG. 1, the random number sequence data generated from a transmission random number sequence generator 1 with a uniform probability distribution is added to a digital plaintext data, And transmits the ciphertext data thus received to the received ciphertext data by mixing the random number sequence data generated with the uniform probability distribution from the received random number sequence generator 3 through the summer 4, As shown in FIG. Therefore, the transmitted ciphertext data has a randomness characteristic in which 1 and 0 are uniformly distributed.

이러한 암호화 방식을 T1-PCM회선에 적용하게 되면, 그 암호문 데이터 출력에 K비트 연속 0현상이 나타날 확률은로 되고, 이에따라 수신 데이터중 0이 연속으로 나타날 때 클럭재생이 불안정하게 되는 문제점이 있었다. 일예로 PCM 중계기는 15개까지의 0연속에 견디도록 설계되어 있으므로, 클럭재생이 안정되게 이루어지기 위해서는 상기 암호화된 후에도 15개이상의 0연속을 억제할 수 있는 암호화 방식이 필요하게 된다.Applying this encryption scheme to the T1-PCM circuit, the probability that a K-bit continuous 0 phenomenon appears in the ciphertext data output is Thus, there is a problem that the clock regeneration becomes unstable when 0 of the received data continuously appears. For example, since the PCM repeater is designed to withstand up to 15 consecutive zeroes, a cryptosystem capable of suppressing zero or more than 15 consecutive ciphers after the ciphertext is required for stable clock regeneration.

따라서, 본 발명의 목적은 평문 데이터 블록에서 연속 0억제가정을 만족하지 않더라도 암호문 데이터 블록에 K비트이상의 연속 0은 절대로 허용하지 않음으로써 수신클럭을 정확히 복구하여 수신 데이터를 정상적으로 복호할 수 있고, 채널오류가 발생되더라도 에러확산을 최소화 시킬 수 있게한 동기식 스트림 암호의 동기방법 및 그 장치를 제공함에 목적이 있다.Therefore, it is an object of the present invention to provide an apparatus and a method for restoring a received clock accurately by restoring a received clock accurately by not allowing consecutive 0s of K bits or more in a ciphertext data block even if the consecutive 0 suppression assumption is not satisfied in a plaintext data block, And to provide a synchronization method and apparatus for synchronous stream cryptography that can minimize error diffusion even when an error occurs.

도 1은 종래의 동기식 스트림 암호 송,수신 계통도.1 is a schematic diagram of a conventional synchronous stream transmission and reception system.

도 2는 본 발명의 동기식 스트림 암호 송,수신 계통도.2 is a schematic diagram of a synchronous stream cipher transmission and reception system according to the present invention;

도 3은 본 발명의 동기식 스트림 암호 동기장치 블록도.3 is a block diagram of a synchronous stream cryptographic apparatus according to the present invention;

* 도면의 주요부분에 대한 부호의 설명 *Description of the Related Art [0002]

1 : 송신 난수열 발생기 2,4 : 합산기1: transmitted random number sequence generator 2, 4: adder

3 : 수신 난수열 발생기3: Received Random Number Generator

501, 502, 505, 506, 601, 602, 605, 606 : 이동 레지스터501, 502, 505, 506, 601, 602, 605, 606:

503, 504, 603, 604 : 0 검출부503, 504, 603, and 604:

507, 607 : 중앙처리장치507, 607: central processing unit

508, 608 : 스위치508, 608: switch

이와같은 본 발명의 목적은 평문 블록에 송신 난수열 블록을 혼합하여, 그 혼합 블록의 모든 비트가 0인가를 검출함과 아울러 상기 평문 블록의 모든 비트가 0인가를 검출하고, 그 검출결과 혼합 블록의 모든 비트 및 평문 블록의 모든 비트가 0이 아닌 경우에는 상기 혼합 블록을 암호문 블록으로 정상 송신하고, 상기 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록에 대응되는 상기 평문 블록을 암호문 블록으로 대체 송신하며, 상기 평문 블록의 모든 비트가 0인 경우에는 이전 평문 블록의 1이 시작되는 비트로 부터 상위부분, 그 평문 블록, 이후 평문 블록의 1이 사작되는 비트까지의 하위부분을 암호문 블록으로 대체 송신하며, 상기 송신되어 수신된 암호문 블록에 수신 난수열 블록을 혼합하여, 그 혼합 블록의 모든 비트가 0인가를 검출함과 아울러 상기 수신된 암호문 블록의 모든 비트가 0인가를 검출하고, 그 검출결과 혼합 블록의 모든 비트 및 암호문 블록의 모든 비트가 0이 아닌 경우에는 상기 혼합 블록을 복호문 블록으로 정상 출력하고, 상기 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록에 대응되는 상기 암호문 블록을 복호문 블록으로 대체 출력하며, 상기 암호문 블록의 모든 비트가 0인 경우에는 이전 암호문 블록의 1이 시작되는 비트로 부터 상위부분, 그 암호문 블록, 이후 암호문 블록의 1이 시작되는 비트까지의 하위부분을 복호문 블록으로 대체 출력함으로써 달성되는 것으로, 이를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.It is an object of the present invention to provide a decoding apparatus and a decoding method and a decoding method thereof, in which a transmission random number sequence block is mixed with a plaintext block, and it is detected that all bits of the mixed block are 0 and all bits of the plaintext block are 0, If all the bits of the mixed block are not 0, the mixed block is normally transmitted as a ciphertext block. If all bits of the mixed block are 0, the plaintext block corresponding to the mixed block is transmitted to the ciphertext block If all the bits of the plaintext block are 0, the upper part of the plaintext block, the plaintext block, and the lower bits of the plaintext block are written into the ciphertext block. Alternately transmits the received ciphertext block to the received ciphertext block, mixes the received ciphertext block with the received ciphertext block, and detects whether all bits of the ciphertext block are 0 And if all bits of the received ciphertext block are 0, and if all the bits of the ciphertext block and the all bits of the ciphertext block are not 0, the ciphertext block is normally output as a deciphered sentence block, If all the bits of the ciphertext block are 0, the ciphertext block corresponding to the mixed block is replaced with a deciphered block, and if all bits of the ciphertext block are 0, The ciphertext block, and the lower part of the ciphertext block to which the 1 is started are replaced by a decipher block, which will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 동기식 스트림 암호 송,수신 계통도로서, 이에 도시한 바와같이 평문 블록을 송신 난수열 발생기(1)의 난수열 블록과 혼합하는 합산기(2)와, 그 합산기(2)의 혼합 블록과 상기 평문 블록을 입력받아, 그 혼합 블록의 모든 비트가 0인가를 검출함과 아울러 그 평문 블록의 모든 비트가 0인가를 검출하여, 상기 혼합 블록의 모든 비트 및 평문 블록의 모든 비트가 0이 아닌경우에 정상적으로 상기 혼합 블록을 암호문 블록으로 송신하되, 상기 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록 대신에 그에 대응하는 상기 평문 블록을 암호문 블록으로 대체하여 송신하고, 상기 평문 블록의 모든 비트가 0인 경우에는 혼합 블록 대신에 이전 평문 블록의 1이 시작되는 비트로 부터 상위부분, 그 평문 블록, 이후 평문 블록의 1이 시작되는 비트까지의 하위부분을 암호문 블록으로 대체하여 송신하는 0 검출 및 대체부(5)와, 상기 송신되어 수신된 암호문 블록을 수신 난수열 발생기(3)의 난수열 블록과 혼합하는 합산기(4)와, 그 합산기(4)의 혼합 블록과 상기 수신된 암호문 블록을 입력받아, 그 혼합 블록의 모든 비트가 0인가를 검출함과 아울러 암호문 블록의 모든 비트가 0인가를 검출하여, 상기 혼합 블록의 모든 비트 및 암호문 블록의 모든 비트가 0이 아닌 경우에 정상적으로 상기 혼합 블록을 복호문 블록으로 출력하되, 상기 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록 대신에 그에 대응하는 상기 암호문 블록을 복호문 블록으로 대체하여 출력하고, 상기 암호문 블록의 모든 비트가 0인 경우에는 혼합 블록 대신에 이전 암호문 블록의 1이 시작되는 비트로 부터 상위부분, 그 암호문 블록, 이후 암호문 블록의 1이 시작되는 비트까지의 하위부분을 복호문 블록으로 대체하여 출력하는 0 검출 및 대체부(6)로 구성한다.FIG. 2 is a block diagram of a synchronous stream cipher transmission and reception system according to the present invention. As shown in FIG. 2, a summator 2 for mixing a plaintext block with a random number sequence block of a transmission random number sequence generator 1, And detects whether all the bits of the mixed block are 0, and detects whether all bits of the plain block are 0, so that all bits of the mixed block and all bits of the plain block Is not 0, normally transmits the mixed block as a ciphertext block, and when all bits of the mixed block are 0, the plain text block corresponding to the mixed block is replaced with a ciphertext block and transmitted, If all the bits of the plaintext block are 0, the upper part of the bit of the previous plaintext block starting from 1, the plaintext block of the previous plaintext block, and the bit (4) for mixing the transmitted and received ciphertext block with a random number sequence block of the received random number sequence generator (3), and an adder Receives the mixed block of the summer 4 and the received ciphertext block and detects whether all bits of the ciphertext block are 0 and whether all bits of the ciphertext block are 0, If all the bits of the mixed block are not 0, the mixed block is normally output to the decoded block, and if all the bits of the mixed block are 0, the corresponding ciphertext block corresponding to the mixed block is decoded If all the bits of the ciphertext block are 0, an upper part from the bit where 1 of the previous ciphertext block starts, instead of the mixed block, Block and a 0-detecting and substituting unit 6 for outputting a lower-order part of the ciphertext block up to the bit at which the 1 starts.

편의상 n비트 평문 블록, 난수열 블록, 암호문 블록 등을 다음과 같이 두며, 이때 블록크기의 선택은 n=[(k+1)/2]이고, [X]는 X를 넘지 않는 최대정수를 의미한다.For the sake of simplicity, n-bit plaintext blocks, random-numbered blocks, and ciphertext blocks are set as follows, where block size selection is n = [(k + 1) / 2] and [X] do.

i번째 평문 블록 Pi : (Pin, Pin+1,···, Pin+n-1)1) th plaintext block Pi: (P in , P in + 1 , ..., P in + n-1 )

i번째 난수열 블록 Ki : (Kin, Kin+1,···, Kin+n-1)(k in , K in + 1 , ..., K in + n-1 )

i번째 암호문 블록 Ci : (Cin, Cin+1,···, Cin+n-1)1) th ciphertext block Ci (C in , C in + 1 , ..., C in + n-1 )

i번째 복호문 블록 Qi : (Qin, Qin+1,···, Qin+n-1)i < th decrypted text block Qi: (Q in, Q in + 1, ···, Q in + n-1)

벡터 0 : (0,0,····,0 )Vector 0: (0,0, ..., 0)

벡터 1 : (0,0,····,1 )Vector 1: (0, 0, ..., 1)

도 3은 본 발명의 동기식 스트림 암호 동기장치 블록도로서, 이 도 3a에 도시한 바와같이 평문 블록(Pi)을 난수열 블록(Ki)과 혼합출력하는 합산기(2)와, 상기 평문 블록(Pi)을 시스템 클럭에 동기를 맞춰 저장 출력하는 이동 레지스터(501)와, 상기 합산기(2)의 혼합 블록을 시스템 클럭에 동기를 맞춰 저장 출력하는 이동 레지스터(502)와, 상기 이동 레지스터(501)의 평문 블록(Pi) 모든 비트가 0인가를 검출하는 0 검출부(503)와, 상기 이동 레지스터(502)의 혼합 블록모든 비트가 0인가를 검출하는 0 검출부(504)와, 상기 이동 레지스터(501)에서 출력되는 이전 평문 블록(Pi-1)을 시스템 클럭에 동기를 맞춰 저장 출력하는 이동 레지스터(505)와, 상기 이동 레지스터(502)에서 출력되는 이전 혼합 블록을 시스템 클럭에 동기를 맞춰 저장 출력하는 이동 레지스터(506)와, 상기 0 검출부(503),(504)의 0 검출신호(DT1),(DT2)를 입력받음과 아울러 상기 이동 레지스터(505)에 저장된 평문 블록(Pi-1)을 입력받아, 상기 0 검출신호(DT1),(DT2)가 어느하나도 출력되지 않는 상태에서는 상기 이동 레지스터(506)의 이전 혼합 블록을 선택하여 암호문 블록(Ci-1)으로 송신하고, 상기 0 검출신호(DT2)만이 출력되는 상태에서는 상기 이동 레지스터(506)의 이전 혼합 블록을 선택하여 암호문 블록(Ci-1)으로 송신하고 이후 이동 레지스터(505)에 저장된 평문 블록(Pi)을 선택하여 암호문 블록(Ci)으로 송신하며, 상기 0 검출신호(DT1)가 출력되는 상태에서는 이동 레지스터(505)의 이전 평문 블록(Pi-1)중 1이 시작되는 비트로 부터 상위 부분 및 이동 레지스터(506)의 이전 혼합 블록중 상기 상위 부분을 제외한 하위부분을 선택하여 암호문 블록(Ci-1)으로 송신하고, 이후, 상기 이동 레지스터(505)에 저장되는 평문 블록(Pi)을 선택하여 암호문 블록(Ci)으로 송신하며, 이후 상기 이동 레지스터(505)에 저장되는 평문 블록(Pi+1)중 1이 시작되는 비트까지의 하위부분 및 이동 레지스터(506)의 혼합 블록중 상기 하위부분을 제외한 상위부분을 선택하여 암호문 블록(Ci+1)으로 송신하는 중앙처리장치(507) 및 스위치(508)로 송신단을 구성한다.FIG. 3 is a block diagram of a synchronous stream cryptographic apparatus according to the present invention. As shown in FIG. 3A, the synchronous stream cryptographic apparatus comprises a summer 2 for mixing and outputting a plaintext block Pi with a random number A shift register 501 for storing and outputting Pi in synchronization with the system clock, A shift register 502 for storing the shift register 502 in synchronization with the system clock and a 0 detection unit 503 for detecting whether all the bits of the clear block Pi of the shift register 501 are 0, Mixing block A shift register 505 for storing and outputting the previous plaintext block Pi-1 output from the shift register 501 in synchronism with the system clock, The previous mixed block output from the shift register 502 A shift register 506 for storing and outputting the 0 detection signals DT1 and DT2 of the 0 detection units 503 and 504 synchronously with the system clock and outputs the zero detection signals DT1 and DT2 to the shift register 505 In a state in which none of the zero detection signals DT1 and DT2 is output in response to the stored plaintext block Pi-1, And sends it to the ciphertext block Ci-1 in a state in which only the zero detection signal DT2 is output, And transmits the selected plaintext block Pi to the ciphertext block Ci after selecting the plaintext block Pi stored in the shift register 505. In the state where the 0 detection signal DT1 is output The upper part of the previous plaintext block Pi-1 of the shift register 505 from the beginning of the 1 and the previous mixed block of the shift register 506 (Ci-1), selects a plaintext block Pi to be stored in the shift register 505, and transmits the selected plaintext block Pi to the ciphertext block Ci, Then, the lower part of the plaintext block Pi + 1 stored in the shift register 505 up to the bit at which 1 starts and the mixed block of the shift register 506 A central processing unit 507 and a switch 508 for selecting an upper part excluding the lower part and transmitting the upper part to the ciphertext block Ci + 1.

또한 도 3b에 도시한 바와같이 암호문 블록(Ci)을 난수열 블록(Ki)과 혼합 출력하는 합산기(4)와, 상기 암호문 블록(Ci)과 상기 합산기(4)의 혼합 블록을 시스템 클럭에 동기를 맞춰 각기 저장 출력하는 이동 레지스터(601),(602)와, 상기 이동 레지스터(601),(602)의 암호문 블록(Ci) 및 혼합 블록모든 비트가 0인가를 각기 검출하는 0 검출부(603),(604)와, 상기 이동 레지스터(601),(602)에서 출력되는 이전 암호문 블록(Ci-1) 및 이전 혼합 블록을 시스템 클럭에 동기를 맞춰 각기 저장 출력하는 이동 레지스터(605),(606)와, 상기 0 검출부(603),(604)의 0 검출신호(DT1), (DT2)를 입력받음과 아울러 상기 이동 레지스터(605)에 저장된 암호문 블록(Ci-1)을 입력받아, 상기 0 검출신호(DT1),(DT2)가 어느하나도 출력되지 않는 상태에서는 상기 이동 레지스터(606)의 이전 혼합 블록을 선택하여 복호문 블록(Qi-1)으로 출력하고, 상기 0 검출신호(DT2)만이 출력되는 상태에서는 상기 이동 레지스터(506)의 이전 혼합 블록을 선택하여 복호문 블록(Qi-1)으로 출력하고 이후 이동 레지스터(605)에 저장된 암호문 블록(Ci)을 선택하여 복호문 블록(Qi)으로 출력하며, 상기 0 검출신호(DT1)가 출력되는 상태에서는 상기 이동 레지스터(605)의 이전 암호문 블록(Ci-1)중 1이 시작되는 비트로부터 상위부분 및 이동 레지스터(606)의 이전 혼합 블록중 상기 상위부분을 제외한 하위부분을 선택하여 복호문 블록(Qi-1)으로 출력하고, 이후 이동 레지스터(605)에 저장되는 암호문 블록(Ci)을 선택하여 복호문 블록(Qi)으로 출력하며, 이후 상기 이동 레지스터(605)에 저장되는 암호문 블록(Ci+1)중 1이 시작되는 비트까지의 하위부분 및 이동 레지스터(606)에 저장되는 혼합 블록중 상기 하위부분을 제외한 상위부분을 선택하여 복호문 블록(Qi+1)으로 출력하는 중앙처리장치(607) 및 스위치(608)로 수신단을 구성한다.3B, the adder 4 for mixing the ciphertext block Ci with the random number generating block Ki and the adder 4 for combining the ciphertext block Ci and the summing block 4, (601) and (602) for storing and outputting a ciphertext block (Ci) of the shift registers (601) and (602) synchronously with the system clock, 0 detection sections 603 and 604 for detecting whether all the bits are 0 or not and a previous ciphertext block Ci-1 output from the shift registers 601 and 602 and a previous ciphertext block Ci- 602 and 604 for storing and outputting 0 detection signals DT1 and DT2 of the 0 detection units 603 and 604 in synchronism with the system clock, The crosstalk block Ci-1 stored in the register 605 is input and in a state in which none of the zero detection signals DT1 and DT2 is output, And outputs it to the decoded block Qi-1. In a state in which only the zero detection signal DT2 is output, the previous mixed block < RTI ID = 0.0 > And outputs the decrypted block Qi to the decryption block Qi-1 and then outputs the decrypted block Qi stored in the movement register 605 to the decryption block Qi. State from the bit at which 1 of the previous ciphertext block Ci-1 of the shift register 605 starts to the upper part and the previous mixed block of the shift register 606 (Qi-1), selects a ciphertext block Ci stored in the shift register 605 and outputs the selected ciphertext block Ci to the decipher block Qi, The lower part of the ciphertext block Ci + 1 stored in the shift register 605 up to the bit where 1 starts is stored in the shift register 605, A central processing unit 607 and a switch 608 for selecting an upper part excluding the lower part and outputting the upper part to a decipher block Qi + 1.

상기에서 합산기(2),(4)는 각기 비트별로 배타적 오아 조합하는 익스클루시브 오아게이트이고, 0 검출부(503),(504),(603),(604)는 이동 레지스터(501),(502),(601), (602)의 블록을 반전입력받아 앤드 조합하는 앤드 게이트 또는 그 이동 레지스터(501),(502),(601),(602)의 블록을 입력받아 노아 조합하는 노아 게이트이다.The zero detectors 503, 504, 603, and 604 correspond to the exclusive OR gates of the shift registers 501, 502, 503, The AND gate which inverts and receives the blocks of the blocks 502, 601 and 602 or the blocks of the shift registers 501, 502, 601, It is a gate.

이와같이 구성된 본 발명의 방법 및 작용효과를 상세히 설명하면 다음과 같다.The method and effect of the present invention will be described in detail as follows.

임의의 n비트 평문 블록(Pi)은 합산기(2)에 입력되어, 송신 난수열 발생기(1)로 부터 입력되는 임의의 n비트 난수열 블록(Ki)과 혼합되고, 이 혼합 연산된 혼합 블록은 시스템 클럭에 동기를 맞춰 이동 레지스터(502)에 저장되어 출력되고, 또한 이때 상기 평문 블록(Pi)은 시스템 클럭에 동기를 맞춰 이동 레지스터(501)에 저장되어 출력되고, 상기 이동 레지스터(501)에서 출력되는 이전 평문 블록(Pi-1)은 그 시스템 클럭에 동기를 맞춰 이동 레지스터(505)에 저장되어 출력되고, 상기 이동 레지스터(502)에서 출력되는 이전 혼합 블록도 그 시스템 클럭에 동기를 맞춰 이동 레지스터(506)에 저장되어 출력된다. 그리고, 상기와 같이 평문 블록(Pi)이 이동 레지스터(501)에 저장될 때, 그 평문 블록(Pi)이 0 검출부(503)에 입력되어, 그 평문 블록(Pi)의 모든 비트가 0일 때 0 검출신호(DT1)인 1을 출력하게 된다. 즉, 평문 블록(Pi)의 모든 비트가 0일 때 그 신호를 모두 반전 입력받아 앤드 조합하게 되면 0 검출신호(DT1)인 1이 출력된다.An arbitrary n-bit plain text block Pi is input to the summer 2 and mixed with an arbitrary n-bit random number sequence block Ki input from the transmission random number sequence generator 1, The plaintext block Pi is stored in the shift register 501 in synchronism with the system clock and is output to the shift register 501. The shift register 501 is connected to the shift register 501, The previous plaintext block Pi-1 output from the shift register 502 is stored in the shift register 505 in synchronization with the system clock, Is also stored in the shift register 506 in synchronization with the system clock and outputted. When the plaintext block Pi is stored in the shift register 501 as described above, the plaintext block Pi is input to the 0 detection unit 503, and when all the bits of the plaintext block Pi are 0 0 " detection signal DT1. That is, when all the bits of the plaintext block Pi are 0, all of the signals are inverted and received and combined to output 1, which is the zero detection signal DT1.

마찬가지로, 혼합 블록이 이동 레지스터(502)에 저장될 때, 그 혼합 블록의 모든 비트가 0일 때 0 검출신호(DT2)인 고전위 1을 출력하게 된다.Likewise, Is stored in the shift register 502, Quot; 1 " which is the zero detection signal DT2 when all the bits of the " 0 "

상기와 같이 0 검출부(503),(504)에서 출력되는 0 검출신호(DT1),(DT2)를 중앙처리장치(507)에서 입력받아, 그 0 검출신호(DT1),(DT2)의 입력여부에 따라 스위치(508)의 선택을 제어하여 암호문 블록(Ci-1)을 출력하게 된다. 즉, 상기 0 검출신호(DT1),(DT2)가 출력되지 않는 상태에서는 중앙처리장치(507)의 제어에 의해 스위치(508)에서 이동 레지스터(506)의 이전 혼합 블록을 선택하여 암호문 블록(Ci-1)으로 송신하게 된다.As described above, the central processing unit 507 receives the zero detection signals DT1 and DT2 output from the zero detection units 503 and 504 and determines whether the zero detection signals DT1 and DT2 are input And controls the selection of the switch 508 to output the ciphertext block Ci-1. That is, under the condition that the zero detection signals DT1 and DT2 are not output, the switch 508 is turned on by the control of the central processing unit 507, And transmits it to the cipher text block Ci-1.

또한, 0 검출부(504)에서만 0 검출신호(DT2)가 출력되는 상태에서는 중앙처리장치(507)의 제어에 의해 스위치(508)에서 이동 레지스터(506)의 이전 혼합 블록을 선택하여 암호문 블록으로 송신하고, 이후 스위치(508)에서 이동제지스터(505)에 저장되는 평문 블록을 선택하여 암호문 블록으로 송신한다. 즉 혼합 블록의 모든비트가 0인 0 검출신호(DT2)가 출력될 때 그 혼합 블록대신에 그에 대응하는 평문 블록을 선택하여 암호문 블록으로 송신한다.In the state in which the zero detection signal DT2 is output only from the 0 detection unit 504, the control signal from the switch 508 to the previous mixing block 504 of the shift register 506, under the control of the central processing unit 507, To select a ciphertext block And then stored in the mobility controller 505 in the switch 508. The plain- To select a ciphertext block . That is, When the zero detection signal DT2 is output, Instead, the corresponding plaintext block To select a ciphertext block .

또한, 0 검출부(503)에서 0 검출신호(DT1)가 출력되는 상태에서는 중앙처리장치(507)의 제어에 의해 스위치(508)에서 이동 레지스터(505)의 이전 평문 블록중 1이 시작되는 비트로부터 상위 부분 및 이동 레지스터(506)의 이전 혼합 블록중 상기 이전 평문 블록의 상위부분에 대응하는 상위부분을 제외한 하위부분을 선택하여 암호문 블록으로 송신하고, 이후 스위치(508)에서 상기 이동 레지스터(505)에 저장되는 평문 블록을 선택하여 암호문 블록으로 송신하며, 이후 스위치(508)에서 상기 이동 레지스터(505)에 저장되는 평문 블록중 1이 시작되는 비트까지의 하위부분 및 이동 레지스터(506)에 저장되는 혼합 블록중 상기 평문 블록의 하위부분에 대응하는 하위부분을 제외한 상위부분을 선택하여 암호문 블록으로 송신한다. 즉, 평문 블록의 모든비트가 0인 0 검출신호(DT1)가 출력될 때, 이전 혼합 블록을 이전 평문 블록중 1이 시작되는 비트로부터 상위부분으로 부분 대체하여 암호문 블록으로 송신하고, 혼합 블록을 평문 블록으로 대체하여 암호문 블록으로 송신하며, 이후 혼합 블록을 이후 평문 블록중 1이 시작되는 비트까지의 하위부분으로 부분 대체하여 암호문 블록으로 송신하다.In the state where the 0 detection signal DT1 is output from the 0 detection unit 503, the control unit 507 controls the switch 508 to select the previous plain- 1 < / RTI > from the beginning of the bit and the previous mix block of the shift register 506 The previous plaintext block A lower part excluding the upper part corresponding to the upper part of the ciphertext block Which is stored in the shift register 505 in the switch 508, To select a ciphertext block Which is stored in the shift register 505 in the switch 508, The lower portion of the bit to which < RTI ID = 0.0 > 1 < / RTI > The plaintext block The upper part excluding the lower part corresponding to the lower part of the ciphertext block . That is, When the zero detection signal DT1, in which all the bits of the previous mixed block are zero, Previous plaintext block The ciphertext block is partially replaced from the bit where the < RTI ID = 0.0 > 1 < / RTI & , And the mixed block The plaintext block The ciphertext block , And then the mixed block After the plaintext block The ciphertext block is partially replaced with the lower-order bits up to the bit at which the " 1 " .

한편, 상기와 같이 송신되어 수신된 암호문 블록은 합산기(4)에 입력되어, 수신 난수열 발생기(3)로부터 입력되는 난수열 블록과 혼합되고, 상기 암호문 블록및 상기 혼합 연산된 혼합 블록은 시스템 클럭에 동기를 맞춰 이동 레지스터(601),(602)에 각기 저장되어 출력되고, 상기 이동 레지스터(601),(602)로부터 출력되는 이전의 암호문 블록및 혼합 블록은 시스템 클럭에 동기를 맞춰 이동 레지스터(605),(606)에 각기 저장되어 출력된다. 그리고 이때 0 검출부(603),(604)도 상기 송신단의 0 검출부(503),(504)와 동일하게 동작되어, 이동 레지스터(601)에 저장된 암호문 블록의 모든 비트가 0일 때 1의 0 검출신호(DT1)가 출력되고, 이동 레지스터(602)에 저장된 혼합 블록의 모든 비트가 0일 때 1의 0 검출신호(DT2)가 출력되며, 상기 0 검출신호(DT1),(DT2)는 중앙처리장치(607)에 입력된다.On the other hand, the cipher text block Is inputted to the summer 4 and is inputted to the random number generator block 3 inputted from the received row number generator 3, And the ciphertext block And the mixed- Is stored in the shift registers 601 and 602 in synchronization with the system clock and output and stored in the shift registers 601 and 602, And mixing block Are respectively stored in the shift registers 605 and 606 in synchronization with the system clock and output. At this time, the 0 detection units 603 and 604 are operated in the same way as the 0 detection units 503 and 504 of the transmitter, The 0 detection signal DT1 of 1 is output when all the bits of the mixed block 602 are 0, The zero detection signals DT1 and DT2 are input to the central processing unit 607. The zero detection signals DT1 and DT2 are input to the central processing unit 607. [

따라서, 상기 0 검출부(603),(604)에서 0 검출신호(DT1),(DT2)가 출력되지 않는 상태에서는 중앙처리장치(607)의 제어에 의해 스위치(608)에서 이동 레지스터(606)의 이전 혼합 블록을 선택하여 복호문 블록으로 출력한다.Therefore, in a state where the zero detection signals DT1 and DT2 are not output from the 0 detection units 603 and 604, the control unit 607 controls the switch 608 to move the shift register 606 Old Mixed Block To select a decrypted sentence block .

또한, 0 검출부(604)에서만 0 검출신호(DT2)가 출력되는 상태에서는 중앙처리장치(607)의 제어에 의해 스위치(608)에서 이동 레지스터(606)의 이전 혼합 블록을 선택하여 복호문 블록으로 출력하고, 이후 스위치(608)에서 이동 레지스터(605)에 저장되는 암호문 블록을 선택하여 복호문 블록으로 출력한다. 즉, 혼합 블록의 모든 비트가 0인 0 검출신호(DT2)가 출력될 때 그 혼합 블록대신에 암호문 블록을 선택하여 복호문 블록으로 출력한다.In the state in which the zero detection signal DT2 is output only from the 0 detection unit 604, the control signal from the switch 608 to the previous mixing block 604 of the shift register 606, under the control of the central processing unit 607, To select a decrypted sentence block And then outputs the ciphertext block stored in the shift register 605 in the switch 608 To select a decrypted sentence block . That is, When the zero detection signal DT2 is output, Instead, To select a decrypted sentence block .

또한, 0 검출부(603)에서 0 검출신호(DT1)가 출력되는 상태에서는 중앙처리장치(607)의 제어에 의해 스위치(608)에서 이동 레지스터(605)의 이전 암호문 블록중 1이 시작되는 비트로부터 상위부분 및 이동 레지스터(606)의 이전 혼합 블록중 상기 이전 암호문 블록의 상위부분에 대응하는 상위 부분을 제외한 하위부분을 선택하여 복호문 블록으로 출력하고, 이후 스위치(608)에서 상기 이동 레지스터(605)에 저장되는 암호문 블록을 선택하여 복호문 블록으로 출력하며, 이후 스위치(608)에서 상기 이동 레지스터(605)에 저장되는 암호문 블록중 1이 시작되는 비트까지의 하위부분 및 이동 레지스터(606)에 저장되는 혼합 블록중 상기 암호문 블록의 하위부분에 대응하는 하위부분을 제외한 상위부분을 선택하여 복호문 블록으로 출력한다. 즉, 암호문 블록의 모든 비트가 0인 0 검출신호(DT1)가 출력될 때, 이전 혼합 블록을 이전 암호문 블록중 1이 시작되는 비트로부터 상위부분으로 부분 대체하여 복호문 블록으로 출력하고, 혼합 블록을 암호문 블록으로 대체하여 복호문 블록으로 출력하며, 이후 혼합 블록을 이후 암호문 블록중 1이 시작되는 부분까지의 하위부분으로 부분 대체하여 복호문 블록으로 출력한다.In the state where the 0 detection signal DT1 is output by the 0 detection unit 603, the control unit 607 controls the switch 608 to select the previous ciphertext block Lt; RTI ID = 0.0 > 606 < / RTI > The previous ciphertext block The lower part excluding the upper part corresponding to the upper part of the decrypted sentence block And then, in the switch 608, the cipher text block stored in the shift register 605 To select a decrypted sentence block And then outputs the ciphertext block stored in the shift register 605 in the switch 608 The lower portion of the bit to which < RTI ID = 0.0 > 1 < / RTI & The ciphertext block The upper part excluding the lower part corresponding to the lower part of the decrypted sentence block . That is, When the zero detection signal DT1, in which all the bits of the previous mixed block are zero, To the previous ciphertext block 1 < / RTI > from the beginning of the decoded block, And outputs the mixed block, Cryptographic block The decryption block And then outputs the mixed block After the ciphertext block 1 < / RTI > to the beginning of the decoded block < RTI ID = 0.0 > .

결국, 임의의 n비트 평문 블록에서 k비트(k=2n-1 또는 k=2n)연속 0이 억제된다는 가정하에서 송신단 암호문 블록 출력에서 역시 k비트 연속 0이 억제되며, 채널 오류가 없을 경우 수신 평문의 복호상태는 다음과 같이 완벽하게 복호된다.As a result, k-bit consecutive zeros are also suppressed in the cascade block output of the sender, assuming that k bits (k = 2n-1 or k = 2n) consecutive zeros in any n-bit plaintext block are suppressed, Is completely decoded as follows.

블록 대체 없는 경우에는, 송신단에서이므로가 송신되며, 수신단에서이므로,로 정상 복호된다.Without block replacement In the transmitting terminal, And Because of and Is transmitted, and at the receiving end Because of, and .

또한, 1 블록만 대체 있는 경우에는, 송신단에서이므로가 송신되며, 수신단에서이므로,로 정상 복호된다.Also, if there is only one block replacement In the transmitting terminal, And Because of and Is transmitted, and at the receiving end And Because of, and .

또한, 3블록 부분 대체 있는 경우(는 무관)에는, 송신단에서이므로의 부분 대체,,의 부분 대체 송신되며, 수신단에서이므로의 부분대체 =의 부분대체 =로 정상 복호된다.Also, if there is a replacement of 3 blocks ( Quot;), Because of Partial substitution of, , Is transmitted at the receiving end Because of Partial substitution of = Partial substitution of = .

이상에서 상세히 설명한 바와같이 본 발명은 3개의 블록이 부분대체된 경우에 가운데 블록부분에 채널오류가 발생되어도 3n비트로 확산되지 않고 그보다 작은 비트의 오류확산이 발생되게 되어, 채널오류가 발생되어도 에러확산을 최소화시킬 수 있는 효과가 있다.As described in detail above, according to the present invention, even if a channel error occurs in a middle block portion of three blocks, the error diffusion is not performed with 3n bits, and error diffusion of bits smaller than the 3n bits occurs. Can be minimized.

Claims (7)

평문 블록의 모든 비트가 0인가를 검출함과 아울러 상기 평문 블록을 난수열 블록과 혼합하여 그 혼합 블록의 모든 비트가 0인가를 검출하는 제1 과정과, 상기 제1 과정에서 평문 블록의 모든 비트 및 혼합 블록의 모든 비트가 0이 아닌 경우에는 그 혼합 블록을 암호문 블록으로 송신하고, 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록 대신에 그에 대응하는 평문 블록을 암호문 블록으로 송신하며, 평문 블록의 모든 비트가 0인 경우에는 전,후 블록을 포함한 3개의 혼합 블록을 이전 평문 블록의 1이 시작되는 비트로부터 이후 평문 블록의 1이 시작되는 비트까지로 부분 대체하여 암호문 블록으로 송신하는 제2 과정과, 상기 송신된 암호문 블록을 수신받아 그 암호문 블록의 모든 비트가 0인가를 검출함과 아울러 상기 암호문 블록을 난수열 블록과 혼합하여 그 혼합 블록의 모든 비트가 0인가를 검출하는 제3 과정과, 상기 제3 과정에서 암호문 블록의 모든 비트 및 혼합 블록의 모든 비트가 0이 아닌 경우에는 그 혼합 블록을 복호문 블록으로 출력하고, 혼합 블록의 모든 비트만이 0인 경우에는 그 혼합 블록 대신에 그에 대응하는 암호문 블록을 복호문 블록으로 출력하며, 암호문 블록의 모든 비트가 0인 경우에는 전,후 블록을 포함한 3개의 혼합 블록을 이전 암호문 블록의 1이 시작되는 비트로부터 이후 암호문 블록의 1이 시작되는 비트까지로 부분 대체하여 복호문 블록으로 출력하는 제4 과정으로 이루어진 것을 특징으로 하는 동기식 스트림 암호의 동기방법.A first step of detecting whether all bits of the plaintext block are 0, mixing the plaintext block with a random number sequence block to detect whether all bits of the mixed block are 0, And if all the bits of the mixed block are not 0, the mixed block is transmitted as a ciphertext block. If all bits of the mixed block are 0, the corresponding plain text block is transmitted as a ciphertext block instead of the mixed block, If all the bits of the plaintext block are 0, the three mixed blocks including the before and after blocks are partially replaced by the bits starting from 1 of the previous plaintext block to the bit beginning with 1 of the plaintext block, A second step of receiving the transmitted ciphertext block and detecting whether all bits of the ciphertext block are 0, A third step of detecting whether all bits of the mixed block are 0, and if all the bits of the ciphertext block and the mixed block are not 0 in the third step, the mixed block is output to the decryption block If all the bits of the ciphertext block are 0, the ciphertext block corresponding to the mixed block is output to the deciphertext block instead of the mixed block. If all the bits of the ciphertext block are 0, And outputting the block to a decryption block, the block being partially replaced with a bit from the beginning of 1 of the previous ciphertext block to the beginning of 1 of the subsequent ciphertext block. 제1항에 있어서, 제1 과정 및 제3 과정에서 혼합은 각 비트별 배타적 오아조합에 의해 이루어진 것을 특징으로 하는 동기식 스트림 암호의 동기방법.The method of claim 1, wherein mixing in the first and third steps is performed by exclusive OR combination for each bit. 제1항 또는 제2항에 있어서, 제 1 과정 및 제 3 과정에서 모든 비트가 0인가의 검출은 그 블록의 데이터를 반전 입력받아 앤드 조합에 의해 이루어진 것을 특징으로 하는 동기식 스트림 암호의 동기방법.The synchronizing method of a synchronous stream cipher according to claim 1 or 2, wherein detection of all bits in the first and third processes is performed by inverting and receiving the data of the block. 평문 블록을 송신 난수열 발생기에서 발생되는 난수열 블록과 혼합하는 제1 합산기와, 상기 평문 블록을 저장하여 출력하는 제1 이동 레지스터와, 상기 제1 합산기의 혼합 블록을 저장하여 출력하는 제2 이동 레지스터와, 상기 제1 이동 레지스터에 저장된 평문 블록의 모든 비트가 0인가를 검출하는 제1 0 검출부와, 상기 제2 이동 레지스터에 저장된 혼합 블록의 모든 비트가 0인가를 검출하는 제2 0 검출부와, 상기 제1 이동 레지스터에서 출력되는 이전 평문블록을 저장하여 출력하는 제3 이동 레지스터와, 상기 제2 이동 레지스터에서 출력되는 이전 혼합 블록을 저장하여 출력하는 제4 이동 레지스터와, 상기 제1, 제2 0 검출부에서 제1, 제2 0 검출신호가 출력되지 않는 상태에서 상기 제4 이동 레지스터의 혼합 블록을 선택하여 암호문 블록으로 출력하되, 상기 제2 0 검출신호만이 출력되는 상태에서는 상기 제3 이동 레지스터에 저장되는 평문 블록을 대체 선택하여 암호문 블록으로 송신하고, 상기 제1 0 검출신호가 출력되는 상태에서는 상기 제4 이동 레지스터의 이전, 이후 블록을 포함한 3개의 혼합 블록을 상기 제3 이동 레지스터의 이전 평문 블록의 1이 시작되는 비트로 부터 이후 평문 블록의 1이 시작되는 비트까지로 부분 대체 선택하여 암호문 블록으로 송신하는 암호문 선택 출력 수단으로 송신단을 구성하고, 상기 송신된 암호문 블록을 수신받아 수신 난수열 발생기에서 발생되는 난수열과 혼합하는 제2 합산기와, 상기 암호문 블록을 저장하여 출력하는 제5 이동 레지스터와, 상기 제2 합산기의 혼합 블록을 저장하여 출력하는 제6 이동 레지스터와, 상기 제5 이동 레지스터에 저장된 암호문 블록의 모든 비트가 0인가를 검출하는 제3 0 검출부와, 상기 제6 이동 레지스터에 저장된 혼합 블록의 모든 비트가 0인가를 검출하는 제4 0 검출부와, 상기 제5 이동 레지스터에서 출력되는 이전 암호문 블록을 저장하여 출력하는 제7 이동 레지스터와, 상기 제6 이동 레지스터에서 출력되는 이전 혼합 블록을 저장하여 출력하는 제8 이동 레지스터와, 상기 제3, 제4 0 검출부에서 제3, 제4 0검출신호가 출력되지 않는 상태에서 상기 제8 이동 레지스터의 혼합 블록을 선택하여 복호문 블록으로 출력하되, 상기 제4 0 검출신호만이 출력되는 상태에서는 상기 제7 이동 레지스터에 저장되는 암호문 블록을 대체 선택하여 복호문 블록으로 출력하고, 상기 제3 0 검출신호가 출력되는 상태에서는 상기 제8 이동 레지스터의 이전, 이후 블록을 포함한 3개의 혼합 블록을 상기 제7 이동 레지스터의 이전 암호문 블록의 1이 시작되는 비트로부터 이후 암호문 블록의 1이 시작되는 비트까지로 부분 대체 선택하여 복호문 블록으로 출력하는 복호문 선택 출력수단으로 수신단을 구성하여 된 것을 특징으로 하는 동기식 스트림 암호의 동기장치.A first summing unit for mixing a plaintext block with a random number generating block generated by a transmission random number generator, a first shift register for storing and outputting the plain text block, a second shift register for storing and outputting a mixed block of the first summer, And a second 0 detection unit for detecting whether all the bits of the mixed block stored in the second shift register are 0, and a 0 < th > detection unit for detecting whether all the bits of the clear block stored in the first shift register are 0, A third shift register for storing and outputting a previous plain text block output from the first shift register, a fourth shift register for storing and outputting a previous mixed block output from the second shift register, The second 0 detection unit selects the mixed block of the fourth shift register in the state in which the first and second 0 detection signals are not outputted and outputs the mixed block to the ciphertext block, In a state in which only the second detection signal is output, the plaintext block stored in the third shift register is alternatively selected and transmitted as a ciphertext block, and when the first 0 detection signal is output, , And then sends the ciphertext selection block to the ciphertext block by partially replacing the three mixed blocks including the block from the bit of the first plaintext block of the third shift register to the bit of the subsequent plaintext block beginning with 1, A second summator for receiving the transmitted ciphertext block and mixing the received ciphertext block with a random number sequence generated by the received random number sequence generator, a fifth shift register for storing and outputting the ciphertext block, A sixth shift register for storing the mixed block and outputting the mixed block; A fourth detection section for detecting whether all the bits of the mixed block stored in the sixth shift register are 0 and a fourth detection section for detecting whether or not all bits of the mixed block stored in the sixth shift register are 0; An eighth shift register for storing and outputting a previous mixed block output from the sixth shift register, and a third shift register for outputting the third and fourth detection signals in the third and fourth detection units And outputs the selected block to the decryption block. In a state where only the fourth detection signal is output, the ciphertext block stored in the seventh shift register is alternatively selected and decrypted And outputs the third mixed block including the previous and subsequent blocks of the eighth shift register in the state where the third 0 detection signal is outputted to the seventh And a decryption instruction selecting and outputting means for selecting a partial substitution from the bit of the previous ciphertext block of the shift register to the bit of the subsequent ciphertext block starting at 1, Synchronization of stream ciphers. 제4항에 있어서, 제1, 제2 합산기는 각 비트별로 배타적 오아 조합하는 익스 클루시브 오아 게이트로 구성하여 된 것을 특징으로 하는 동기식 스트림 암호의 동기장치.5. The synchronous stream cipher of claim 4, wherein the first and second summers are comprised of exclusive OR gates that are exclusive-ORed for each bit. 제4항 또는 제5항에 있어서, 제1, 제2, 제3, 제4 0 검출부는 그 블록의 데이터를 반전 입력받아 앤드 조합하는 앤드게이트로 구성하여 된 것을 특징으로 하는 동기식 스트림 암호의 동기장치.The synchronous stream cipher system according to claim 4 or 5, wherein the first, second, third, and fourth detection units are configured by AND gates for inverting and receiving data of the block. Device. 제4항 또는 제5항에 있어서, 제1, 제2, 제3, 제4 0 검출부는 그 블록의 데이터를 직접 입력받아 노아 조합하는 노아게이트로 구성하여 된 것을 특징으로 하는 동기식 스트림 암호의 동기장치.6. The synchronous stream cipher system according to claim 4 or 5, wherein the first, second, third, and fourth detection units are configured by a Noah gate for directly receiving data of the block and combining them with each other. Device.
KR1019970038815A 1997-08-14 1997-08-14 Synchronization method and apparatus for synchronous stream cipher KR100255357B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970038815A KR100255357B1 (en) 1997-08-14 1997-08-14 Synchronization method and apparatus for synchronous stream cipher

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970038815A KR100255357B1 (en) 1997-08-14 1997-08-14 Synchronization method and apparatus for synchronous stream cipher

Publications (2)

Publication Number Publication Date
KR19990016296A true KR19990016296A (en) 1999-03-05
KR100255357B1 KR100255357B1 (en) 2000-05-01

Family

ID=19517472

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970038815A KR100255357B1 (en) 1997-08-14 1997-08-14 Synchronization method and apparatus for synchronous stream cipher

Country Status (1)

Country Link
KR (1) KR100255357B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101018137B1 (en) * 2003-09-25 2011-02-25 주식회사 포스코 An apparatus for removing oil from surface of roll by non-contact type

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980063014A (en) * 1996-12-31 1998-10-07 배문한 Synchronous method of synchronous stream cipher and its apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101018137B1 (en) * 2003-09-25 2011-02-25 주식회사 포스코 An apparatus for removing oil from surface of roll by non-contact type

Also Published As

Publication number Publication date
KR100255357B1 (en) 2000-05-01

Similar Documents

Publication Publication Date Title
US4791669A (en) Encryption/decryption system
EP0446194B1 (en) Continous cipher synchronization for cellular communication system
EP0471839B1 (en) Encryption apparatus
RU2146421C1 (en) Decoding of data subjected to repeated transmission in encoding communication system
EP0157413B1 (en) Digital communication system including an error correcting encoder/decoder and a scrambler/descrambler
US6249582B1 (en) Apparatus for and method of overhead reduction in a block cipher
NO143601B (en) PROCEDURE FOR SETTING CODE TEXT GENERATORS IN CIFTING DEVICES
KR920702112A (en) Continuous Encryption Synchronization of Cell Communication System
KR960008031B1 (en) Encryption system for digital cellular communications
EP0840966B1 (en) Decryption of retransmitted data in an encrypted communication system
KR100255357B1 (en) Synchronization method and apparatus for synchronous stream cipher
KR100209314B1 (en) Method for synchronizing synchronous stream cipher and device thereof
KR19980063014A (en) Synchronous method of synchronous stream cipher and its apparatus
US5029210A (en) Cooperative communication system
JPS58202644A (en) Method of transmitting binary digital signal
JP4729888B2 (en) Information transmission method, transmitter and receiver
JP4517779B2 (en) Information transmission method
CA1161513A (en) System for enciphering and deciphering a digital signal
JP2007206582A (en) Secrecy system, encryption device and decryption device used for the same
JPH0946310A (en) Simple ciphered telephone set for transmitting tdma data
JPH057202A (en) Enciphering communication equipment and enciphering transmission system
JPH02292925A (en) Digital code transmission system
Lee et al. A New Improved ZS Algorithm for a Synchronous Stream Cipher
JPS61224531A (en) Enciphering device by output feedback mode system
JPS62154829A (en) Voice concealing communication system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20090115

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee