Transmission device, reception device, communication system, transmission method, and program

The hash chain mechanism within KEM public key cryptography addresses the challenges of data order and integrity in resource-limited environments by verifying the hash chain, ensuring efficient tampering detection and data consistency for quantum-resistant cryptography.

WO2024201955A1PCT designated stage expired Publication Date: 2024-10-03NIPPON TELEGRAPH & TELEPHONE CORP

Patent Information

Application Number
PCT/JP2023/013396
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional methods for dividing and transmitting data in public key cryptography, especially in resource-limited environments like IoT, face challenges in detecting tampering and maintaining data order and consistency due to the limitations of existing common key cryptography techniques, which are not suitable for quantum-resistant cryptography.

Method used

The solution involves using a hash chain mechanism within the Key Encapsulation Mechanism (KEM) public key cryptosystem to generate and transmit data, where a random number is used to calculate hash values for each divided data part, allowing the receiving device to verify the order and integrity of the data by confirming the hash chain, ensuring efficient detection of tampering and maintaining data consistency.

Benefits of technology

This approach enables efficient detection of tampering and ensures data integrity by verifying the hash chain, making it suitable for resource-limited environments and quantum-resistant cryptography, improving efficiency in data transmission and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023013396_03102024_PF_FP_ABST
    Figure JP2023013396_03102024_PF_FP_ABST
Patent Text Reader

Abstract

This transmission device comprises: a generation unit that generates, for each divided data generated by dividing transmission data, data including the divided data, a hash value calculated from a random number, and a data number of the divided data; and a transmission unit that transmits the data generated by the generation unit to a reception device.
Need to check novelty before this filing date? Find Prior Art

Description

Transmitting device, receiving device, communication system, transmitting method, and program

[0001] The present invention relates to a technique for dividing and transmitting data.

[0002] Public key cryptography has been used for a long time. In public key cryptography, only small key data is shared between devices (i.e., a private key is shared in advance using public key cryptography), and actual messages are sent and received using common key cryptography, and messages are divided as needed.

[0003] Various methods (encryption modes (Non-Patent Document 1)) are known as division techniques. However, these methods are for symmetric key cryptography. In other words, these methods use a private key that is held in advance, and cannot be used for public key cryptography, which does not have a symmetric key in advance.

[0004] Cipher specifications and modes of operation listed in the "e-Government Recommended Cipher List," NIST SP 800-38A https: / / nvlpubs.nist.gov / nistpubs / Legacy / SP / nistspecialpublication800-38a.pdf

[0005] With the recent development of quantum computers, quantum-resistant cryptography that can withstand decryption by quantum computers is required as a public key cryptosystem.

[0006] Conventional public key cryptography only shares small key data, but quantum-resistant cryptography uses larger keys than conventional cryptography. Therefore, in environments where communication capacity and computing resources are limited, such as IoT, it may not be possible to send the key data all at once. In such cases, the key data must be divided and sent.

[0007] The conventional technology disclosed in Non-Patent Document 1 is for symmetric key cryptography and cannot be applied to quantum-resistant cryptography. Furthermore, in this conventional technology, if the key is simply divided and sent, there are problems such as delays in detecting tampering and the order becoming unclear, resulting in inefficiency.

[0008] The present invention has been made in consideration of the above points, and aims to provide technology for realizing an efficient mechanism that can detect tampering, etc. when receiving data in a method of dividing and transmitting data.

[0009] According to the disclosed technology, a transmitting device is provided that includes: a generating unit that generates, for each divided data, data including divided data generated by dividing transmission data, a hash value calculated from a random number, and a data number of the divided data; and a transmitting unit that transmits the data generated by the generating unit to a receiving device.

[0010] The disclosed technology provides a technology for realizing an efficient mechanism that can detect tampering or the like when receiving data in a method of dividing and transmitting data.

[0011] It is a diagram showing an example of the configuration of a communication system. It is a sequence diagram for explaining the operation of the communication system. It is a diagram showing the configuration of a transmitting device 100. It is a diagram showing the configuration of a receiving device 200. It is a diagram showing an example of the hardware configuration of the device.

[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.

[0013] In this embodiment, by applying a technology that uses hashing to ensure order and consistency to the public key cryptography KEM (Key Encapsulation Mechanism) and signature method, an efficient mechanism is realized that can detect tampering and the like when receiving data (i.e., ensure integrity) in a method in which data such as keys are divided and transmitted due to resource limitations, etc. The configuration and operation of the system / device for this mechanism will be described in detail below.

[0014] (System Configuration Example) Fig. 1 shows a configuration example of a communication system according to this embodiment. As shown in Fig. 1, this communication system includes a transmitting device 100 and a receiving device 200. Communication is possible between the transmitting device 100 and the receiving device 200 via a network.

[0015] It is assumed that either or both of the transmitting device 100 and the receiving device 200 are devices with limited functions (resources), such as IoT devices, for example. However, the present invention is not limited to this assumption, and the transmitting device 100 and the receiving device 200 may be any device.

[0016] (System Operation Example) An operation example relating to data transmission and reception in the communication system according to the present embodiment will be described with reference to the sequence diagram of Fig. 2. Here, it is assumed that the size of the data to be transmitted is large, and therefore the transmitting device 100 divides the data and transmits it. However, this is not limited to such an assumption, and the technology according to the present embodiment can be applied to data of any size.

[0017] Furthermore, the data D to be transmitted is KEM encrypted data, signature data, key data, or the like, but the technology according to this embodiment can also be applied to any other type of data.

[0018] The data D to be transmitted is D:=(D 1 , D 2 , ..., D n ) D 1 , D 2 , ..., D n are the divided data of D divided by the transmitting device 100. n is the number of divisions. 1, 2, etc. are data numbers.

[0019] In S101 (step 101), the transmitting device 100 generates a random number r and 1 = H(r), h 2 = H(h 1 ), ..., h n = H(h n-1 ) is calculated, where H is a hash function. This calculation links the data number before and after the hash.

[0020] In S102, the transmitting device 100 receives the divided data D 1 , hash value h n, data number 1, number of divisions n) to the receiving device 200.

[0021] In S103, the transmitting device 100 receives the following data (D 2 , h n-1 , 2), (D 3 , h n-2 ,3),...,(D n , h 1 , n) to the receiving device 200 in this order. 2 , h n-1 , 2), and then (D 3 , h n-2 , 3), and so on.

[0022] In S104, the receiving device 104 calculates H(h) for the received data of k and the received data of k-1 for each data number k (2≦k≦n). n-k ) = h n-k+1 By this confirmation, the receiving device 200 can confirm that the order of the received data numbers is correct. In other words, the order can be confirmed. n-k ) = h n-k+1 If this is not true, for example, the receiving device 200 discards the data.

[0023] The order confirmation in S104 is performed by checking the received data (D k , h n-k+1 , k) is received, or may be performed collectively after receiving a plurality of pieces of received data.

[0024] In S105, the transmitting device 100 transmits the value of (r, H(D)) to the receiving device 200 as the final data.

[0025] In S106, the receiving device 200 receives the divided data D 1 , D 2 , ..., D n , and (r, H(D)) received in S105, h 1 = H(r) is confirmed to be true, and H((D 1 , D 2 , ..., D n)) = H(D). In step S106, the consistency of the divided data can be confirmed.

[0026] That is, h 1 =H(r), so h 1 The connection between the received data and the H((D 1 , D 2 , ..., D n )) = H(D), the whole data D is divided into the divided data D 1 , D 2 , ..., D n If any of the above checks fails, for example, the receiving device 200 discards the data.

[0027] (Additional Notes) The receiving device 200 may check the order of data in the order of the data numbers, and may discard any other data (data not in the order of the data numbers) and not check the order.

[0028] Furthermore, the transmitting device 100 may transmit data other than the "first data and last data" without regard to the order. In the method according to the present embodiment, data is linked by hash before and after the data number, so that the order, etc., can be easily confirmed.

[0029] Checking in the order of the data numbers has the advantage of eliminating unnecessary reception. However, when UDP is used as the transmission protocol, there is a possibility that the data may arrive at the receiving device 200 out of order. Therefore, the transmitting device 100 must take care to ensure that the data arrives at the receiving device 200 in the correct order.

[0030] On the other hand, in the case of a method in which data other than the "first data and last data" is transmitted without regard to the order, there is an advantage that the transmitting device 100 can transmit data other than the "first data and last data" without paying attention to the above.

[0031] In cases where transmission is performed without regard to order, if the hash value is intercepted, there is a risk that the data of the previous numbers may be tampered with. However, even in this case, tampering can be detected by the original hash value and the hash value of the entire data. However, there is a disadvantage in that the confirmation process between them is wasted. Note that when receiving the original random number r, which indicates that it is the last data, if not all the data is present, the receiving device 200 discards the data received up to that point.

[0032] (Detailed Example of Transmission Data) An example of data transmitted by the transmitting device 100 will be described in more detail. In the following description, "△" means an arbitrary number. The values ​​contained in (1) the first data, (2) the subsequent data, and (3) the last data are as follows. Note that here, the data number of the first divided data is set to 0.

[0033] (1) First data Data number: 00 (△ bit) Fragment ID (△ bit) Number of divisions n (△ bit) Timeout time (△ bit) Divided data: D 1 (variable △byte to △byte) Hash value: h n (2) Subsequent data (2 to n-1) Data number: 01 to △△ (△ bit) Fragment ID (△ bit) Divided data: D i (2≦i≦n−1) Hash value: h i (2≦i≦n-1) (3) Last data Data number: △△ (△bit) Fragment ID (△bit) Random number: r Overall hash value: H(D) (Explanation of a detailed example of transmitted data) A detailed example of the above "(1) First data, (2) Subsequent data, (3) Last data" is explained below.

[0034] Although it depends on the operation, for example, the number of bits to be secured is determined in advance as a fixed length for the data number, fragment ID, number of divisions, timeout time, and hash value.

[0035] The size of the divided data is the number of bytes that can be sent at one time minus the number of bytes of the fixed length. However, the last subsequent data (n-1th) contains the remainder when divided by the number of divisions.

[0036] The data number 00 indicates the first data and n-1 indicates the last data. The fragment ID is a factor for identifying whether a series of data is the same.

[0037] The transmitting device 100 can determine the number of divisions from the size of the entire data D, the size of data that can be transmitted in one transmission, and the required fixed-length data size.

[0038] The timeout period indicates the timeout period between each data item if the method requires sequential transmission, and indicates the timeout period from when the first data item is sent until when the last data item is sent if the method does not require sequential transmission.

[0039] (Examples of Use) The technology according to this embodiment can be applied to various fields. Examples 1 and 2 below are shown as examples.

[0040] Example 1 The technology according to this embodiment can be used for encrypted communication in smartphones that use the popular NFC (Near Field Communication).

[0041] Most smartphones are limited to transmitting data up to 255 bytes, but quantum-safe cryptography requires the transmission of data of several kilobytes.

[0042] By using the technology according to this embodiment, even when the above-mentioned constraints exist, it is possible to send data efficiently by dividing the data to be sent, securely transmitting the first and last pieces of data via NFC, and transmitting the intermediate pieces of data by another method.

[0043] <Example 2> The technology according to this embodiment can be used when using public key cryptography within DNSSEC (Domain Name System Security Extensions). DNSSEC is a technology that extends the specifications to enable DNS to authenticate the data creator and verify the integrity of the data by using a public key cryptography system and a digital signature mechanism.

[0044] The size of a conventional DNS packet is limited to 512 bytes, and adding signature information for DNSSEC (and a quantum-safe signature) makes it difficult to send the DNS packet in one go. Therefore, by using the technology according to this embodiment, data can be divided and sent, making it possible to comply with DNSSEC.

[0045] (Device Configuration Example) FIGS. 3 and 4 show examples of the functional configuration of the transmitting device 100 and the receiving device 200, which perform the operations shown in FIG. 2, respectively.

[0046] As shown in FIG. 3, the transmitting device 100 includes a data storage unit 110, a generating unit 120, and a transmitting unit 130.

[0047] The data storage unit 110 stores data D. Note that the data D may be input to the transmitting device 100 from outside.

[0048] The generation unit 120 generates the divided data D 1 , D 2 , ..., D n Generate a random number r and generate a random number h 1 = H(r), h 2 = H(h 1 ), ..., h n = H(h n-1 ) using the above data. 1 , hash value h n , data number 1, division number n), subsequent data (D 2 , h n-1 , 2), (D 3 , h n-2 ,3),...,(D n , h 1, n), and the final data (r, H(D)).

[0049] The transmitting unit 130 transmits each piece of data generated by the generating unit 120 to the receiving device 200 .

[0050] As shown in FIG. 4, the receiving device 200 includes a receiving unit 210 , an order checking unit 220 , and a consistency checking unit 230 .

[0051] The receiving unit 210 receives the data transmitted from the transmitting device 100. The sequence checking unit 220 checks whether H(h n-k ) = h n-k+1 The order of the data is confirmed by checking whether the following holds true.

[0052] The consistency check unit 230 1 = H(r) and whether H((D 1 , D 2 , ..., D n ))=H(D) is satisfied, thereby checking the consistency of the data.

[0053] (Hardware Configuration Example) Any of the devices described in this embodiment (transmitting device 100, receiving device 200) can be realized, for example, by causing a computer to execute a program. This computer may be a physical computer or a virtual machine on the cloud.

[0054] That is, the device can be realized by executing a program corresponding to the processing performed by the device using hardware resources such as a CPU and memory built into a computer. The program can be recorded on a computer-readable recording medium (such as a portable memory) and stored or distributed. The program can also be provided via a network such as the Internet or email.

[0055] Fig. 5 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 5 includes a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, and the like, all of which are interconnected via a bus B. The computer may further include a GPU.

[0056] The program that realizes the processing on the computer is provided by a recording medium 1001, such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.

[0057] The memory device 1003 reads and stores a program from the auxiliary storage device 1002 when an instruction to start the program is received. The CPU 1004 realizes functions related to the device in accordance with the program stored in the memory device 1003. The interface device 1005 is used as an interface for connecting to a network, etc. The display device 1006 displays a GUI (Graphical User Interface) or the like according to the program. The input device 1007 is composed of a keyboard, mouse, buttons, a touch panel, etc., and is used to input various operation instructions. The output device 1008 outputs the results of calculations.

[0058] (Effects of the embodiment) In recent years, cryptographic techniques have been increasingly used in environments where the amount of data sent and received is relatively limited, such as smartphone applications and IoT. In addition, there are concerns that cryptography may be compromised due to the progress of research and development on quantum computers, and it is expected that the use of quantum-resistant cryptography will further increase the number of situations in which data division is required.

[0059] By using the technology of this embodiment, even if fraudulent acts such as tampering are performed when dividing data, the tampering can be detected and the data can be discarded using a relatively low-cost process of calculating a hash chain, which is expected to contribute to improved efficiency in cases where attacks such as tampering are expected.

[0060] The following additional notes are provided regarding the above-described embodiments.

[0061] <Additional Notes> (Additional Item 1) A transmitting device comprising: a generating unit that generates, for each divided piece of data, data including divided pieces of data generated by dividing transmission data, a hash value calculated from a random number, and a data number of the divided piece of data; and a transmitting unit that transmits the data generated by the generating unit to a receiving device. (Additional Item 2) The transmitting device according to Additional Item 1, wherein, where n is the number of divisions of the transmission data and k is the data number of the data, a hash value hn-k+1 of the data is the hash value of hash value hn-k, and the hash value of the data with data number n is the hash value of the random number, and the transmitting unit transmits the random number and the hash value of the transmission data as final data. (Supplementary Item 3) A receiving device comprising: a receiving unit that receives, for each piece of divided data, data including divided data generated by dividing transmission data, a hash value calculated from a random number, and the data number of the divided data; and an order confirmation unit that confirms the order between first received data of a certain data number and second received data of the data number immediately preceding the said data number, using the hash value in the first received data and the hash value in the second received data. (Supplementary Item 4) The receiving device according to Supplementary Item 3, further comprising a consistency checking unit, wherein, where n is the number of divisions of the transmission data and k is the data number of the data, a hash value hn-k+1 of the data is the hash value of hash value hn-k, and the hash value of the data with data number n is the hash value of the random number, the receiving unit receives the random number and the hash value of the transmission data as the last data, the order checking unit checks the order between the received data with data number k and the received data with data number k-1 using the hash value hn-k+1 and the hash value hn-k, and the consistency checking unit checks whether the hash value of the received data with data number n is equal to the hash value of the random number, and checks whether the hash values ​​of all the received divided data are equal to the hash value of the transmission data. (Supplementary Item 5) A communication system comprising the transmitting device according to Supplementary Item 1 or 2, and the receiving device according to Supplementary Item 3 or 4.(Supplementary Item 6) A transmission method executed by a transmitting device, comprising: a generating step of generating, for each divided data, data including divided data generated by dividing transmission data, a hash value calculated from a random number, and a data number of the divided data; and a transmitting step of transmitting, to a receiving device, the data generated by the generating step. (Supplementary Item 7) A non-transitory storage medium storing a program for causing a computer to function as each unit in the transmitting device described in Supplementary Item 1 or 2. (Supplementary Item 8) A non-transitory storage medium storing a program for causing a computer to function as each unit in the receiving device described in Supplementary Item 3 or 4.

[0062] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and changes are possible within the scope of the gist of the present invention described in the claims.

[0063] REFERENCE SIGNS LIST 100 Transmission device 110 Data storage unit 120 Generation unit 130 Transmission unit 200 Reception device 210 Reception unit 220 Sequence checking unit 230 Consistency checking unit 1001 Recording medium 1002 Auxiliary storage device 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input device 1008 Output device

Claims

1. A transmitting device comprising: a generating unit that generates, for each divided data, data including divided data generated by dividing transmission data, a hash value calculated from a random number, and a data number of the divided data; and a transmitting unit that transmits the data generated by the generating unit to a receiving device.

2. If the number of divisions of the transmission data is n and the data number of the data is k, the hash value h n-k+1 is the hash value h n-k 2. The transmitting device according to claim 1 , wherein a hash value of the random number n is a hash value of the random number, and a hash value of the data with data number n is a hash value of the random number, and the transmitting unit transmits the random number and the hash value of the transmission data as the final data.

3. A receiving device comprising: a receiving unit that receives, for each piece of divided data, data including divided data generated by dividing transmission data, a hash value calculated from a random number, and the data number of the divided data; and an order confirmation unit that confirms the order between first received data of a certain data number and second received data of the data number immediately preceding the said data number, using the hash value in the first received data and the hash value in the second received data.

4. The receiving device further includes a consistency check unit, and when the division number of the transmission data is n and the data number of the data is k, a hash value h n-k+1 is the hash value h n-k the hash value of the data with data number k is a hash value of the random number, the receiving unit receives the random number and the hash value of the transmission data as the last data, and the order confirmation unit checks the order between the received data with data number k and the received data with data number k-1 by using the hash value h n-k+1 and the hash value h n-k the consistency verification unit verifies whether a hash value in the received data of data number n is equal to the hash value of the random number, and verifies whether hash values ​​for all received divided data are equal to the hash value of the transmitted data.

5. A communication system comprising a transmitting device according to claim 1 or 2 and a receiving device according to claim 3 or 4.

6. A transmission method executed by a transmitting device, comprising: a generation step of generating, for each divided data, data including divided data generated by dividing transmission data, a hash value calculated from a random number, and a data number of the divided data; and a transmission step of transmitting the data generated by the generation step to a receiving device.

7. A program for causing a computer to function as each unit in the transmitting device according to claim 1 or 2.

8. A program for causing a computer to function as each unit in the receiving device according to claim 3 or 4.

Citation Information

Patent Citations

  • Verifiable leak-proof encryption and decryption

    JP2013513312A

  • Communication system, communication device on transmission side and reception or transfer side, method for data communication and data transmission program

    WO2010024379A1

  • Information processing system, information processing apparatus, information processing method, and recording medium

    WO2016067565A1

Cited By

  • Streaming quantum random number generation method, apparatus and device, medium and program product

    CN120909552A