Computer-implemented system and method for highly secure, high-speed encryption and transmission of data

By deriving a common secret from an asymmetric encryption key pair as a pseudo-random number generator seed, combined with the stream algorithm, the shortcomings of existing encryption technology in terms of security, speed and ease of use are solved, and a highly secure, high-speed Encrypted data transmission, suitable for streaming data and big data transmission.

CN110999202BInactive Publication Date: 2024-09-06NCHAIN HLDG LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880054448.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-08-23
Filing Date
2018-08-15
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing encryption technologies have shortcomings in security, speed and ease of use, especially in streaming data transmission and big data transmission. It is difficult to implement highly secure and high-speed encryption methods. At the same time, there are problems in key management and system availability. challenge.

Method used

Avoiding the transmission of symmetric keys by deriving a common secret from a node's asymmetric encryption key pair as a seed for a pseudo-random number generator, combining its output with the data to generate encrypted data and securely sharing it across an insecure network, Combined with streaming algorithms to provide a highly secure, high-speed encryption method.

Benefits of technology

It achieves highly secure, high-speed encrypted data transmission in unsecured networks. It is suitable for media streaming, streaming VPN services and large file transfers. It is easy to set up and manage, and is suitable for use in conjunction with blockchain technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110999202B_ABST
    Figure CN110999202B_ABST
Patent Text Reader

Abstract

The present invention relates to highly secure, high-speed encryption methods suitable for applications such as media streaming, streaming virtual private network (VPN) services, large file transfers, etc. For example, the encryption methods described herein can provide a stream cipher for streaming data from, for example, a media service provider to multiple users. Certain configurations provide line-speed one-time use encryption. The methods described herein are suitable for use with blockchain technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to highly secure, high-speed encryption methods suitable for applications such as media streaming, streaming virtual private network (VPN) services, large file transfers, etc. For example, the encryption methods described herein can provide a stream cipher for transmitting data from (for example) a media service provider to multiple users. Certain embodiments relate to line-speed one-time use encryption. The methods described herein are suitable for use with blockchain technology. Background Art

[0002] Cryptography involves techniques for secure communication between two or more nodes. Nodes may include mobile communication devices, tablets, laptops, desktop computers, other forms of computing and communication devices, server devices in a network, client devices in a network, one or more nodes in a distributed network, routers, etc. Nodes may be associated with a natural person, a group of people (e.g., company employees), a service provider (e.g., a media streaming provider), a system (e.g., a banking system), etc.

[0003] In some cases, two or more nodes may be linked via an insecure communication network. For example, two nodes may be linked via a communication network that enables a third party to eavesdrop on communications between the two nodes. Thus, messages sent between nodes may be sent in encrypted form, and upon receipt, the intended recipient may decrypt the message using a corresponding decryption key (or other decryption method). Therefore, the security of such communications depends on preventing a third party from determining the corresponding decryption key.

[0004] One method of encryption involves the use of a symmetric key algorithm. The same key is used for both encryption of plain text messages and decryption of ciphertext, and in this sense the key is symmetric. One issue that needs to be considered when using a symmetric key algorithm is how to transmit the symmetric key to both nodes in a secure manner to prevent an eavesdropper from obtaining the symmetric key. For example, this may include physically delivering the symmetric key to the (authorized) node so that the symmetric key is never transmitted over an insecure communication network. However, physical delivery is not always an option. Therefore, a problem in such encryption systems is the establishment of a symmetric key (which may be based on a common secret) between nodes in an insecure network. In recent years, electronic key transmission over communication systems such as the Internet has become popular. Therefore, the step of providing a shared secret (e.g., a symmetric key) is a potentially catastrophic vulnerability. Since symmetric key algorithms (and protocols) are simple and widely used, the two nodes need to have the ability to securely determine the common secret over an insecure network.

[0005] Another method of encryption is a stream algorithm, in which a symmetric key is used as a seed for a pseudo-random number generator, and the output of the pseudo-random number generator is combined with a data stream using, for example, an exclusive-OR (XOR) operation to generate a stream cipher. The receiver uses the symmetric key to decrypt the stream cipher. EP1063811 describes an example of this method, which utilizes a symmetric key method to seed the pseudo-random number generator. However, the security of such a system also depends on transmitting the symmetric key to both nodes in a secure manner to prevent an eavesdropper from obtaining the symmetric key.

[0006] Other existing encryption methods include the use of asymmetric keys. Asymmetric keys can be used in public key cryptography, where the asymmetric key consists of a private key and a corresponding public key. The public key can be publicly available, while the private key, as the name implies, remains private. These asymmetric keys can be used for public key encryption and digital signatures, among other things. Existing protocols include Diffie-Hellman key exchange and the three-pass protocol, which support sharing secrets over unsecured network security. Chapter 12 of the Handbook of Applied Cryptography (A. Menezes, P. van Oorschot, and S. Vanstone, CRC Press, 1996) discusses several known key establishment protocols and secret sharing using asymmetric keys. However, these methods are computationally expensive in some cases, such as when new secrets are constantly being generated and shared. In addition, these methods are not suitable for high-speed encryption, data transmission, and decryption, such as required in data stream applications. Furthermore, approaches to managing asymmetric key hierarchies (e.g., relying on random seeds and index structures) are inefficient and unsuitable for generating deterministic hierarchical shared secrets that can be associated with specific data.

[0007] In view of the above, it can be understood that one technical problem with the prior art configuration for implementing encrypted data transmission is its security, which is usually the most important consideration. For some applications (such as streaming and large data transmission), another technical problem with the prior art configuration for implementing encrypted data transmission is its speed. Another technical problem with the prior art configuration for implementing encrypted data transmission is its ease of use in terms of setup / subscription, key management and general usability of the system.

[0008] The aforementioned technical issues may be interrelated and often require trade-offs between the desired characteristics of a system. For example, some systems may be highly secure, but slow and unsuitable for streaming or large data transfers. Other systems may be fast but vulnerable to hacker attacks. Still others may be relatively secure and fast, but difficult to set up, use, and / or manage in practical applications.

[0009] It is an object of embodiments of the present invention to provide a technical solution to these problems. Summary of the invention

[0010] A computer-implemented method for encrypting and transmitting data from a first node to a second node over a network is described herein, the method comprising:

[0011] At the first node, deriving a secret key from a common secret known by the first node and the second node;

[0012] Using the secret key as a seed for a pseudo-random number generator;

[0013] combining the output of the pseudo-random number generator with the data to be sent to produce encrypted data; and

[0014] Send the encrypted data to the second node.

[0015] According to one configuration, a first node is associated with a first asymmetric encryption key pair, a second node is associated with a second asymmetric encryption key pair, and a common secret is derivable at the first node and the second node from the respective first and second asymmetric encryption key pairs without transmitting the common secret between the first node and the second node. The encrypted data may be transmitted as a pseudo-random bit stream.

[0016] The method described in this article combines an improved method of sharing a common secret with a streaming algorithm to provide a highly secure, high-speed encryption method suitable for applications such as media streaming, streaming virtual private network (VPN) services, large file transfers, etc.

[0017] The method described herein also combines an improved method of generating a set of different symmetric keys for multiple users with a streaming algorithm used by a service provider to transmit data to multiple users.

[0018] The methods described herein also provide improved seeding methods for pseudo-random number generators used in cryptographic methods, such as those applied in streaming algorithms.

[0019] The methods described herein also provide a highly secure, high-speed, one-time-use encryption system.

[0020] Embodiments may be provided in a variety of forms. For example, a computer-readable storage medium may be provided, comprising computer-executable instructions that, when executed, cause one or more processors to perform the methods described herein. An electronic device may also be provided, comprising: an interface device; one or more processors connected to the interface device; a memory connected to the one or more processors, the memory having computer-executable instructions stored thereon, the computer-executable instructions, when executed, causing one or more processors to perform the methods described herein. Further, a node of a blockchain network may be provided, which node may perform the methods described herein.

[0021] It should be noted that embodiments of the present invention employ certain features of two very different types of cryptographic techniques. It is known to use asymmetric keys to securely share secrets over an insecure network. In addition, it is known to use a symmetric key as a seed for a pseudo-random number generator and to combine the output of the pseudo-random number generator with a data stream to generate a stream cipher. What is neither disclosed nor recommended in the prior art discussed in the background section is to use a secret key derived from a common secret known to two different nodes on the network (e.g., the common secret can be derived by the nodes using an asymmetric key) as a seed for a pseudo-random number generator, and to combine the output of the pseudo-random number generator with the data to be sent to generate encrypted data, which is then sent from the first node to the second node over the network. Prior art methods for stream processing data use symmetric key protocols. Compared to such traditional symmetric key stream protocols, the use of asymmetric key protocols for stream processing data is novel. In addition, the method described herein is advantageous because it can provide a more secure method while retaining high-speed encryption suitable for streaming and large data transmission. In addition, the embodiments described herein are easy to set up, use, and manage in practical applications. For example, the methods described herein can be used to stream / transmit data from a blockchain to provide a blockchain media streaming system, where media files such as movies and television shows are stored on a blockchain and can be securely streamed to end users upon request. With such a system, secure automatic payment for requested services can also be made via cryptocurrency transfers. The prior art discussed in the background section neither discloses nor suggests these advantageous features. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] These and other aspects of the invention will become apparent with reference to the embodiments described herein. Embodiments of the invention will now be described by way of example only and with reference to the accompanying drawings, in which:

[0023] Figure 1 is a schematic diagram of an example system for determining a common secret of a first node and a second node;

[0024] Figure 2is a flow chart of a computer-implemented method for determining a common secret.

[0025] Figure 3 is a flow chart of a computer-implemented method for securely communicating between a first node and a second node; and

[0026] Figure 4 is a flow chart of a computer-implemented method for securely communicating between a first node and a second node using a pseudo-random number generator. DETAILED DESCRIPTION

[0027] Methods, devices, and systems for determining, at a first node, a common secret (CS) that is the same as at a second node will now be described.

[0028] Figure 1 A system 1 is shown, which includes a first node 3 communicating with a second node 7 via a communication network 5. The first node 3 has an associated first processing device 23 and the second node 7 has an associated second processing device 27. The first node 3 and the second node 7 may include electronic devices, such as computers, tablet computers, mobile communication devices, computer servers, etc. In one example, the first node 3 may be a client device and the second node 7 may be a server, or vice versa. The first and second nodes may have associated data storage devices 13, 17 and, optionally, a user interface 15. Figure 1 The system shown also comprises a third node 9 with associated data storage means 19, and an eavesdropper 11. The system 1 may form part of a blockchain network.

[0029] The first node 3 and the first node master private key (V 1C ) and the first node master public key (P 1C ) is related to the first asymmetric encryption key pair. According to the following formula, based on the first node master private key (V 1C ) and the public generator (G) to determine the first node master public key (P 1C ):

[0030] P 1C = V 1C x G (Formula 1)

[0031] The public generator G can be selected, randomly generated or assigned. The first asymmetric encryption key pair includes:

[0032] V 1C : The first node master private key which the first node keeps private.

[0033] P 1C : The first node master public key that is made public.

[0034] Similar to the first node 3, the second node 7 is associated with the second node master private key (V 1S ) and the second node master public key (P 1S ) is associated with a second asymmetric cryptographic pair. The second node master public key (P 1S ) is determined by the following formula:

[0035] P 1S = V 1S x G (Formula 2)

[0036] Therefore, the second asymmetric cryptographic pair includes:

[0037] V 1S : The second node master private key which the second node keeps private.

[0038] P 1S : The public master key of the second node.

[0039] In order to determine a common secret (CS) at the first node 3 and the second node 7 , the node 3 and the node 7 perform the steps described below without transferring the private key through the communication network 5 .

[0040] Initiate and determine common secrets

[0041] Now refer to Figure 2 An example of determining a common secret (CS) is described. The common secret (CS) may be used for a specific session, time, transaction, data transfer, or other purpose between the first node 3 and the second node 7, and reusing the same common secret (CS) may be undesirable or unsafe. Therefore, the common secret (CS) may be changed between different sessions, times, transactions, data flow applications, etc.

[0042] In this example, the method 300 performed by the first node 3 includes step 310, generating a message (M). The message (M) can be random, pseudo-random, or user-defined. In one example, the message (M) is generated based on Unix time and a random number (an arbitrary value). For example, the message (M) can be provided as:

[0043] Message (M) = UnixTime + random number (Formula 3)

[0044] In some examples, the message (M) is arbitrary. However, it should be understood that the message (M) may have a selected value (eg, Unix time, etc.) that is useful in certain applications.

[0045] The method 300 comprises step 315 of sending the message (M) to the second node 7 via the communication network 5. Since the message (M) does not include information about the private key, the message (M) may be sent via an insecure network.

[0046] The method 300 also includes step 320 of determining a deterministic key (DK) based on the message (M). In this example, this includes determining a cryptographic hash of the message. Examples of cryptographic hash algorithms include SHA-256 to create a 256-bit deterministic key (DK). That is:

[0047] DK = SHA-256(M) (Formula 4)

[0048] It should be understood that other hashing algorithms may also be used.

[0049] Then, the method 300 includes step 330, based on the second node master private key (V 1C ) and the deterministic key (DK) to determine the first node's second private key (V 2C ). This can be done based on the first node master private key (V 1C ) and the scalar addition of the deterministic key (DK):

[0050] V 2C = V 1C + DK (Formula 5)

[0051] Therefore, the first node second private key (V 2C ) is not a random value, but is deterministically derived from the first node master private key. The corresponding public key in the key pair, i.e., the first node second public key (P 2C ) has the following relationship:

[0052] P 2C = V 2C x G (Formula 6)

[0053] V 2C Substituting Equation 5 into Equation 6 yields:

[0054] P 2C =(V 1C + DK) x G (Formula 7)

[0055] The “+” operator represents scalar addition, and the “x” operator represents point multiplication on the elliptic curve. Note that since the elliptic curve cryptographic algebra is distributed, Equation 7 can be expressed as:

[0056] P 2C = V 1C x G + DK x G (Formula 8)

[0057] Finally, we can substitute Equation 1 into Equation 8 to obtain:

[0058] P 2C =P 1C+DK x G (Formula 9.1)

[0059] P 2C =P 1C +SHA-256(M)x G (Formula 9.2)

[0060] In formulas 8 to 9.2, the “+” operator represents the addition of points on the elliptic curve. Therefore, given the first node master public key (P 1C ) and message (M), the corresponding first node second public key (P 2C The second node 7 may have a second public key (P 2C ), method 400 will be discussed in detail below.

[0061] The method 300 further includes step 350, based on the message (M) and the determined first node second private key (V 2C ) generates a first signed message (SM1). Generating the signed message includes applying a digital signature algorithm to digitally sign the message (M). In one example, this includes signing the first node's second private key (V 2C ) is applied to the message to obtain a first signed message (SM1).

[0062] The corresponding first node second public key (P 2C ) to verify the first signed message (SM1). The second node 7 may use the verification of the first signed message (SM1) to authenticate the first node 3, which will be discussed in the method 400 below.

[0063] Then, the first node 3 may determine 370 the second node second public key (P 2S As discussed above, the second node second public key (P 2S ) can be based at least on the second node master public key (P 1S ) and the deterministic key (DK). In this example, since the public key is determined 370' as the result of the elliptic curve point multiplication of the private key and the generator (G), the second node second public key (P 2S ) is expressed as:

[0064] P 2S =V 2S x G (Formula 10.1)

[0065] P 2S =P 1S +DK x G (Formula 10.2)

[0066] It should be understood that the first node 3 may determine 370 ′ the second node second public key independently of the second node 7 .

[0067] Then, the first node 3 can use the first node second private key (V 2C ) and the determined second node second public key (P 2S ) determines 380 a common secret (CS). The first node 3 can determine the common secret (CS) by the following formula:

[0068] CS=V 2C x P 2S (Formula 11)

[0069] A corresponding method 400 will now be described as performed at the second node 7. It will be appreciated that some of these steps are similar to the steps performed by the first node 3 described above.

[0070] The method 400 includes a step 410 of receiving a message (M) from a first node 3 via a communication network 5. This may include the message (M) sent by the first node 3 at step 315. Then, at step 420, the second node 7 determines a deterministic key (DK) based on the message (M). The step 420 of the second node 7 determining the deterministic key (DK) is similar to the step 320 performed by the first node described above. In this example, the second node 7 performs this determining step 420 independently of the first node 3.

[0071] The next step includes the following: 1C ) and the deterministic key (DK) to determine 430' the first node second public key (P 2C In this example, since the public key is determined 430′ as the result of elliptic curve point multiplication of the private key and the generator (G), the first node second public key (P 2C ) is expressed as:

[0072] P 2C =V 2C x G (Formula 12.1)

[0073] P 2C =P 1C +DK x G (Formula 12.2)

[0074] The method 400 includes steps performed by the second node 7 to authenticate that the node claiming to be the first node 3 is the first node 3. As previously discussed, this includes step 440, receiving a first signed message (SM1) from the first node 3. The second node 7 can then use the first node second public key (P 2C ) verifies 450 the signature on the first signed message (SM1).

[0075] The verification of the digital signature can be done according to the Elliptic Curve Digital Signature Algorithm (ECDSA) as discussed above. Importantly, the first node second private key (V 2C ) shall only use the corresponding first node second public key (P 2C ) is correctly verified because V 2C and P 2C Since these keys are based on the first node master private key (V 1C ) and the first node master public key (P 1C ), so verifying the first signature message (SM1) can be used to verify whether the first node sending the first signature message (SM1) is the same as the first node 3 during registration. Therefore, the second node 7 can further perform the step (460) of authenticating the first node 3 based on the result of verifying (450) the first signature message.

[0076] The above authentication may be applicable to the following situation: one of the two nodes is a trusted node and only one of the nodes needs to be authenticated. For example, the first node 3 can be a client and the second node 7 can be a server trusted by the client. Therefore, the server (second node 7) may need to authenticate the credentials of the client (first node 3) to allow the client to access the server system. It may not be necessary for the server to verify the server's credentials to the client. However, in some cases, it may be desirable for the two nodes to authenticate each other, such as in the peer-to-peer case described in another example below.

[0077] The method 400 further includes the second node 7 based on the second node master private key (V 1S ) and the deterministic key (DK) to determine 470 the second node second private key (V 2S ). Similar to step 330 performed by the first node 3, the second node second private key (V 2S ) can be calculated based on the second node master private key (V 1S ) and the deterministic key (DK) to obtain:

[0078] V 2S =V 1S +DK (Formula 13.1)

[0079] V 2S =V 1S +SHA-256(M) (Formula 13.2)

[0080] Then, the second node 7 can be independent of the first node 3 and calculate the value based on the second node second private key (V 2S) and the first node's second public key (P 2C ) Determine 480 the common secret (CS):

[0081] CS=V 2S x P 2C (Formula 14)

[0082] Importantly, the common secret is independently derived and does not need to be transmitted between nodes. Furthermore, nodes do not need to store the common secret (CS) because it can be re-determined based on the message (M). In some examples, the message (M) used may be stored in a data storage device 13, 17, 19 (or other data storage device) without the same level of security required for the master private key. In some examples, the message (M) is publicly available. For some applications, the common secret (CS) may be stored in a first data storage device (13) associated with a first node, provided that the common secret (CS) is stored with the first node master private key (V 1C ) to stay safe.

[0083] The disclosed system also allows multiple common secrets that may correspond to multiple secure secret keys to be determined based on a single master key cryptographic pair. The following example may illustrate its advantages.

[0084] In the presence of multiple sessions, each session is associated with multiple corresponding common secrets (CS), which may require retaining records associated with those multiple sessions so that the corresponding common secrets (CS) can be re-determined in the future. In known systems, this may require storing multiple secret keys in a secure data store, which may be expensive or difficult to maintain. In contrast, the present system has a master private key that is kept secure on the respective first and second nodes, while other deterministic keys or messages (M) can be stored securely or insecurely. Although the storage of the deterministic keys (DK) or messages (M) is insecure, the multiple common secrets (CS) remain secure because the master private key required to determine the common secrets remains secure.

[0085] Using a common secret in a symmetric key algorithm

[0086] The common secret (CS) may be used as a secret key, or as a basis for a secret key in a symmetric key algorithm, to enable secure communication between the first node 3 and the second node 7 .

[0087] The common secret (CS) may be in the form of an elliptic curve point (xs, ys). It may be converted to a standard key format using standard publicly known operations agreed upon by nodes 3 and 7. For example, the xs value may be a 256-bit integer that can be used as an AES 256The encrypted key can also be converted to a 160-bit integer using RIPEMD160 for any application that requires a key of this length.

[0088] Now refer to Figure 3 A secure communication method 500, 600 between a first node 3 and a second node 7 is described. The first node 3 determines 510 a symmetric key based on a common secret (CS) determined in the above method. This includes converting the common secret (CS) into a standard key format. Similarly, the second node 7 can also determine 610 a symmetric key based on the common secret (CS).

[0089] In order to securely send the first communication message from the first node 3 to the second node via the communication network, the first communication message needs to be encrypted. Therefore, the first node encrypts 520 the first communication message using the symmetric key to obtain the encrypted first communication message, and then sends 530 the encrypted first communication message to the second node 7 via the communication network 5. In turn, the second node 7 receives 620 the encrypted first communication message and decrypts 630 the encrypted first communication message into the first communication message using the symmetric key.

[0090] Similarly, the second node 7 may encrypt 640 the second communication message using the symmetric key into an encrypted second communication message and then send 650 it to the first node 3. The first node 3 may then receive 540 the encrypted second communication message and decrypt 550 it into the second communication message.

[0091] Using a common secret to seed a pseudo-random number generator (such as in a streaming algorithm)

[0092] Continuing from above, the common secret (CS) can be used as a secret key or the basis of a secret key for seeding a pseudo-random number generator that can be used in a streaming algorithm. Figure 4 is shown in and includes:

[0093] 710, at the first node, deriving a secret key from a common secret known by the first and second nodes;

[0094] 720, using the secret key as a seed for a pseudo-random number generator;

[0095] 730, combining the output of the pseudo-random number generator with the data to be sent to generate an encrypted number

[0096] According to; and

[0097] At 740 , the encrypted data is transmitted to the second node.

[0098] The second node also determines 810 a corresponding secret key from the common secret. After receiving 820 the encrypted data, the second node may decrypt the data using the secret key.

[0099] The secret key can be derived from the common secret by converting the format of the common secret into a desired asymmetric key format, such as the Advanced Encryption Standard (AES). This asymmetric key can be further combined with other data, such as by an exclusive OR (XOR) operation. The other data includes a time variable or an encryption function of a time variable (e.g., a hash). The time variable can be a time variable associated with a block height of the blockchain. For example, CheckLockTimeVerify (CLTV) can be used to generate a time variable. In this case, the CLTV will be written to the blockchain and can be accessed from that point. In this way, for example, a video stream can be available after the block is made public (when it is shared).

[0100] A hash of the time variable may be calculated and combined with the asymmetric key (e.g., by an XOR operation) to define a secret key. The secret key may additionally or alternatively be combined with a one-time use value, which is hashed and combined with the secret key (e.g., by an XOR operation). In this case, the one-time use value needs to be exchanged between the two nodes of the data transmission, or derived by the two nodes.

[0101] The pseudo-random number generator can be a known pseudo-random number generator, for example based on the Zeta function (http: / / keisan.casio.com / exec / system / 1180573439) or the Wolfram Rule30 function (http: / / mathworld.wolfram.com / Rule30.html). The output of the pseudo-random number generator can be combined with the data to be sent using an exclusive-or (XOR) operation. The output of the pseudo-random number generator can be used as a one-time use password, such as a one-time password.

[0102] The transmission of encrypted data includes the transmission of a pseudo-random bit stream. The pseudo-random bit stream may provide a VPN service or a streaming service. For example, the sender may be a service provider that sends combined data to multiple users using a different shared symmetric key for each user.

[0103] The location information of the data sent in this way or the data to be sent can be stored on the blockchain. For example, the OP_Return function can be used to store such data.

[0104] The sending and receiving nodes can seed their own pseudo-random number generators independently. This is an effective hiding method since the method uses an effective one-time pad (OTP) of random data based on XOR. Each node runs its own pseudo-random number generator based on the seed, allowing the pseudo-random data stream to be followed sequentially from the start of the pseudo-random data. Since the data is transmitted in a stream, errors in the XOR can be corrected later (encoding) or skipped / overlooked (live video).

[0105] Example

[0106] An example implementation of the above approach is shown below:

[0107] (i) Message exchange, key generation, calculation of common secret and derivation of symmetric key (AES) as described above.

[0108] (ii) The CheckLockTimeVerify (CLTV) opcode is used to generate a time variable associated with the time of the block height (the second block).

[0109] (iii) From this, we can use AES (symmetric key) and the time variable to calculate the secret key as follows:

[0110] 1.H1=Hash-SHA256(Time) / / 256 bits#

[0111] 2.SK=XOR(AES|H1)

[0112] 3. (Optional) Hash the one-time use value and then XOR it with SK

[0113] (iv) Use SK as input variable to generate pseudo-RND (e.g. Wolfram Rule 30)

[0114] sowing.

[0115] (v) The output returned by the pseudo-RND is combined with the file to be encrypted through an XOR operation.

[0116] (vi) The encrypted file is sent, for example as a data stream.

[0117] (vii) When the recipient downloads the data, it is decrypted by an XOR operation using the corresponding SK derived from the common secret.

[0118] The above method can provide very fast one-time encryption for each user, effectively increasing the line speed. This can be used to encrypt media streaming services using separate keys for each user. The method can be easily implemented in hardware. The XOR and pseudo-RND parts are simple, and the XOR as an entry effectively increases the line speed (even in a 100GB network). This enables devices such as routers to run this method and even use it as a streaming VPN service (not just media or files). In such a VPN application, each VPN circuit can have a separate one-time pad. Further, and most importantly, the above method makes the encryption process unbreakable.

[0119] In the above data transmission method, the seed of the pseudo-random number generator used in the data encryption algorithm is obtained from a common secret, which itself is calculated using the method described in the previous section "Originating and Determining the Common Secret". This method is particularly secure because the common secret is not transmitted between nodes on the network and cannot be intercepted by a third party. Since the pseudo-random number generator is deterministic, if the seed is compromised, the system may be attacked. In contrast, since the present method provides a way by which the common secret / secret key can be independently derived on the nodes of the system, the method provides an improved seeding method for pseudo-random number generators used in encryption processes (for example, in stream ciphers). In addition, the method provides an efficient means of generating a set of different symmetric keys for multiple users, which can then be used in the service provider's streaming algorithm to send data to multiple users. Therefore, the method described herein combines an improved method for deriving a common secret with a streaming algorithm to provide a highly secure, high-speed encryption method suitable for applications such as media streaming, streaming virtual private network (VPN) services, large file transfers, etc.

[0120] In addition to the above, it is also conceivable that a seeding method for a streaming algorithm or other encrypted file transfer may use a secret key that is not generated from a common secret calculated by the method described in the previous section "Initiating and Determining a Common Secret". In this regard, the data transmission may be made more secure by using additional data, preferably one-time use data, in combination with the symmetric key to derive the secret key. In this way, even if the secret key has been previously intercepted, it cannot be used by itself to decrypt the data transmission. For example, a method for encrypting data and transmitting the encrypted data from a first node to a second node includes:

[0121] At the first node, deriving a secret key by combining the symmetric key with additional data for encrypted data transmission;

[0122] Using the secret key as a seed for a pseudo-random number generator;

[0123] combining the output of the pseudo-random number generator with the data to be sent to produce encrypted data; and

[0124] Send the encrypted data to the second node.

[0125] The second node also determines a corresponding secret key from the public symmetric key and the additional data.After receiving the encrypted data, the second node may decrypt the data using the secret key.

[0126] As previously discussed, the additional data can be a time variable, such as a blockchain time variable or a cryptographic function thereof (e.g., a hash), and can also be combined with a secret key using an XOR operation. Additionally or alternatively, the additional data includes a one-time use value or a cryptographic function of a one-time use value. The one-time use value can be combined with a symmetric key (e.g., by an XOR operation) to derive a secret key used as a seed for a pseudo-RND. The additional data can be exchanged between the first and second nodes to enable decryption of the data signal. Optionally, the additional data can be derived by the first node and the second node without transmitting the additional data between the nodes. For example, the additional data can be derived using the previously described scheme for generating a common secret.

[0127] It will be appreciated by those skilled in the art that various changes and / or modifications may be made to the embodiments described above without departing from the scope of the present invention as defined by the accompanying claims.

Claims

1. A computer-implemented method for encrypting data and transmitting the data from a first node to a second node over a network, the method comprising: deriving, at the first node, a secret key from a common secret known by the first node and the second node; using the secret key as a seed for a pseudo-random number generator; combining the output of the pseudo-random number generator with data to be sent to generate encrypted data; and sending the encrypted data to the second node, wherein the first node is associated with a first asymmetric encryption key pair, the second node is associated with a second asymmetric encryption key pair, and the common secret is derived from the first asymmetric encryption key pair and the second asymmetric encryption key pair, respectively, on the first node and the second node, without transmitting the common secret between the first node and the second node, The derivation of the secret key comprises combining the common secret or a symmetric key obtained by transforming the common secret with additional data, wherein the additional data comprises a time variable or an encryption function of a time variable.

2. The method according to claim 1, in, The derivation of the secret key comprises converting the common secret into a symmetric key.

3. The method according to claim 1, in, The additional data is exported at the first node and the second node without transmitting the additional data between the first node and the second node.

4. The method according to claim 1, in, The additional data includes a one-time use value or an encrypted function of a one-time use value.

5. The method according to claim 1, in, The additional data is combined with the common secret or the symmetric key using an exclusive OR (XOR) operation to generate a seed for the pseudo-random number generator.

6. The method according to claim 1, in, The pseudo-random number generator is based on the Zeta function or the Wolfram Rule 30 function.

7. The method according to claim 1, in, The output of the pseudo-random number generator is combined with the data to be transmitted using an exclusive OR (XOR) operation to generate the encrypted data.

8. The method according to claim 1, in, The output of the pseudo-random number generator is used as a one-time pad.

9. The method according to claim 1, in, The sending of the encrypted data includes sending a pseudo-random bit stream.

10. The method according to claim 9, in, The pseudo-random bit stream is one or more virtual private network VPN services or streaming data services.

11. The method according to claim 2, in, The first node is a service provider that transmits encrypted data to multiple users using a different shared symmetric key for each user.

12. The method according to claim 1, in, The second node receives the encrypted data and decrypts the data using the common secret.

13. The method according to claim 1, in, The second node decrypts the received encrypted data by performing an exclusive-OR (XOR) operation on the received encrypted data.

14. The method according to claim 1, in, The second node seeds its own pseudo-random number generator independently of the first node in order to decrypt the encrypted data.

15. A computer-readable storage medium comprising computer-executable instructions which, when executed, cause one or more processors to perform the method of any one of claims 1 to 14.

16. An electronic device comprising: Interface device; one or more processors connected to the interface device; A memory connected to the one or more processors, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed, the one or more processors perform the method according to any one of claims 1 to 14.

17. A node of a blockchain network, the node comprising the electronic device according to claim 16.