Information processing method, communication device and encryption device

By using blockchain to protect the public parameters of PKG in an identity-based cryptographic system, the problems of public parameters forgery and tampering are solved, and a more efficient and secure messaging process is achieved.

CN114301612BActive Publication Date: 2024-11-15CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011000507.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-22
Publication Date
2024-11-15
Estimated Expiration
2040-09-22

AI Technical Summary

Technical Problem

In an identity-based cryptographic system, forgery and tampering of public parameters leads to attackers being able to counterfeit the receiver for signature and decryption, and the prior art relies on PKI technology for signature protection, increasing the computational load and certificate management complexity.

Method used

The public parameters of the private key generator (PKG) are securely protected through blockchain to ensure their integrity and effectiveness. Users can query and confirm the recipient's support information through the blockchain before sending a message, avoiding forgery and malicious attacks.

Benefits of technology

It effectively avoids the forgery and malicious attacks of PKG information, simplifies the certificate management process, reduces the computing load, and improves the security of messaging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114301612B_ABST
    Figure CN114301612B_ABST
Patent Text Reader

Abstract

The present invention provides an information processing method, a communication device and an encryption device. The information processing method includes: sending encryption device information of an encryption device supported by a first communication device to a blockchain; receiving first data sent by a second communication device, wherein the first data is calculated based on the encryption device information supported by the first communication device; and processing the received first data. The solution of the present invention can avoid the forgery of PKG information and malicious PKG attacks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an information processing method, a communication device and an encryption device. Background Art

[0002] Identity-Based Cryptograph (IBC) is an asymmetric public key cryptography system. In an identity-based cryptography system, each entity has an identity, which can be any meaningful string, and the entity's identity itself is used as the entity's public key. Since the identity itself is the entity's public key, this type of system no longer relies on certificates and certificate management systems, greatly simplifying the complexity of managing cryptographic systems.

[0003] The basic structure of the cryptographic system based on IBC technology is shown in the figure below. The private key generator (PKG) is the core part of IBC. Its main function is to generate the master key and public parameters when the IBC system is initialized, and publicly publish the public parameters. In addition, it generates the corresponding private key for the user based on the user ID (such as IMSI, email address, mobile phone number and other public information). It can be divided into identity-based encryption algorithm (IBE) and identity-based signature algorithm (IBS).

[0004] Compared with the traditional PKI (public key infrastructure) system, users of the IBC system can easily obtain the public key of the communicating party (determined directly by the ID), without the need to use a special digital certificate to bind identity information and public key, and without the certificate request and certificate transfer process. It can effectively reduce the communication overhead caused by the transfer of certificates during data interaction and simplify the certificate management mechanism and process in authentication.

[0005] When using IBC technology, users need to first obtain the public parameters of the IBC system from PKG. As technology develops, there may be multiple IBC systems connected to the network. If there are no protection measures for the public parameters of the IBC system, then attackers may publish false public parameters to impersonate other legitimate IBC systems; allowing users to encrypt data using false public parameters and the recipient's identity. Since the public parameters are published by the attacker, the attacker can decrypt the user's encrypted data and can forge the recipient to sign.

[0006] In order to prevent attackers from tampering with or publishing false public parameters of PKG, PKG needs to protect the public parameters of the system to ensure the integrity and validity of the public parameters. At present, a more feasible way is to use PKI technology to sign and protect the public parameters of PKG. The signature information is stored together with the public parameters as part of the public parameters. When using the public parameters, the user first verifies the validity of the public parameters to prevent attackers from tampering with the public parameters. However, using this solution not only requires pre-setting a trusted digital certificate on the user terminal, but also requires verifying the signature of the PKI when performing identity authentication (currently 1024 or 2048-bit RSA algorithms are more commonly used), which generates a large computing load and increases the burden of message transmission. At the same time, IBC users also have another demand, that is, they do not want to register on a large number of PKGs. Summary of the invention

[0007] The present invention provides an information processing method, a communication device and an encryption device, which can perform security protection on PKG based on blockchain, thereby avoiding the forgery of PKG information and malicious PKG attacks.

[0008] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0009] An information processing method, applied to a first communication device, comprising:

[0010] Sending encryption device information of the encryption device supported by the first communication device to the blockchain;

[0011] Receiving first data sent by a second communication device, where the first data is calculated based on encryption device information supported by the first communication device;

[0012] The received first data is processed.

[0013] Optionally, sending encryption device information of an encryption device supported by the first communication device to the blockchain includes:

[0014] Sending the encryption device information supported by the first communication device to the verification node of the blockchain;

[0015] The user identification of the first communication device is verified by the verification node, and the blockchain is queried for consistency between the encryption device information supported by the first communication device and the encryption device information stored in the blockchain. If the verification is passed, the encryption device information of the encryption device supported by the first communication device is recorded in the blockchain.

[0016] Optionally, the encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and public parameters.

[0017] Optionally, the first data calculated according to the encryption device information supported by the first communication device includes at least one of the following:

[0018] An encrypted message calculated according to the user identifier of the first communication device and the public parameter, wherein the encrypted message includes the user identifier of the first communication device, the public parameter and the ciphertext;

[0019] The signed message is calculated based on the private key and public parameters of the second communication device, and the signed message includes the user identification of the second communication device, the original message, the signature, and the user identification and public parameters of the encryption device.

[0020] Optionally, processing the received first data includes at least one of the following:

[0021] When the first communication device receives the encrypted message, decrypting the encrypted message using the private key of the first communication device;

[0022] When the first communication device receives the signed message, it verifies the signed message using the user identification and public parameters of the second communication device.

[0023] Optionally, the encryption device is a private key generator in an identity-based cryptographic system.

[0024] Optionally, the encryption device information also includes a uniform resource locator URL message of the encryption device.

[0025] An information processing method, applied to a second communication device, the method comprising:

[0026] Querying the blockchain for encryption device information of encryption devices supported by the first communication device;

[0027] Calculating first data to be sent based on encryption device information supported by the first communication device;

[0028] The first data is sent to the first communication device.

[0029] Optionally, the encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and public parameters.

[0030] Optionally, calculating the first data to be sent based on the encryption device information supported by the first communication device includes at least one of the following:

[0031] Calculate an encrypted message according to the user identifier and public parameters of the first communication device, wherein the encrypted message includes the user identifier, public parameters and ciphertext of the first communication device;

[0032] The private key of the second communication device is obtained, and signature information is calculated based on the private key of the second communication device and the public parameters, wherein the signature information includes the user identification of the second communication device, the original message, the signature, the user identification of the encryption device and the public parameters.

[0033] Optionally, sending the first data to the first communication device includes at least one of the following:

[0034] sending the encrypted message to the first communication device;

[0035] The signature information is sent to the first communication device.

[0036] Optionally, sending the encrypted message to the first communication device includes:

[0037] sending the encrypted message to a security gateway;

[0038] The security gateway verifies whether the encryption device information carried in the encrypted message is consistent with the encryption device information of the encryption device supported by the first communication device on the blockchain. If they are consistent, the encrypted message is sent to the first communication device; otherwise, the encrypted message is deleted.

[0039] Optionally, the encryption device is a private key generator in an identity-based cryptographic system.

[0040] Optionally, the encrypted device information also includes a URL message of the encrypted device.

[0041] A method for reporting encryption device information, applied to an encryption device, comprising:

[0042] generating at least one public parameter;

[0043] sending the user identification of the encryption device and the at least one public parameter to a verification node of the blockchain,

[0044] The user identification and at least one public parameter verified by the verification node of the blockchain are recorded in the blockchain.

[0045] Optionally, the method further comprises:

[0046] The encryption device issues a public parameter update request;

[0047] Using the private key of the encryption device, signing the public parameter to be updated to generate signature information;

[0048] Send the signature information to the verification node of the blockchain;

[0049] The verification node of the blockchain queries the blockchain for the public parameters of the encryption device, uses the user ID of the encryption device and the public parameters to verify the signature information, and after the verification is passed, uploads the public parameters to be updated to the blockchain.

[0050] Optionally, the encryption device is a private key generator in an identity-based cryptographic system.

[0051] A first communication device, comprising:

[0052] A first sending module, sending encryption device information of an encryption device supported by the first communication device to the blockchain;

[0053] A receiving module, receiving first data sent by a second communication device, where the first data is calculated based on encryption device information supported by the first communication device;

[0054] The processing module processes the received first data.

[0055] A second communication device, comprising:

[0056] A query module, querying the blockchain for encryption device information of encryption devices supported by the first communication device;

[0057] A calculation module, which calculates the first data to be sent based on the encryption device information supported by the first communication device;

[0058] The second sending module sends the first data to the first communication device.

[0059] An encryption device, comprising:

[0060] A generation module generates at least one public parameter;

[0061] The third sending module sends the user identification of the encryption device and the at least one public parameter to the verification node of the blockchain,

[0062] The recording module records the user identification and at least one public parameter verified by the verification node of the blockchain into the blockchain.

[0063] An embodiment of the present invention further provides a communication device, comprising: a processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed.

[0064] An embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above.

[0065] The above solution of the present invention includes at least the following beneficial effects:

[0066] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 is a flowchart of an information processing method according to an embodiment of the present invention;

[0068] Figure 2 is a schematic diagram of a PKG identity protection system according to an embodiment of the present invention;

[0069] Figure 3 is a schematic diagram of PKG information supported by a user according to an embodiment of the present invention;

[0070] Figure 4 is another flow chart of the information processing method according to an embodiment of the present invention;

[0071] Figure 5 is a flowchart of a method for reporting encrypted device information according to an embodiment of the present invention;

[0072] Figure 6 is a schematic diagram of PKG information reported by a PKG in an embodiment of the present invention;

[0073] Figure 7 This is a schematic diagram of a first communication device according to an embodiment of the present invention;

[0074] Figure 8 is a schematic diagram of a second communication device according to an embodiment of the present invention;

[0075] Fig. 9 Schematic diagram of an encryption device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0076] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0077] like Figure 1 As shown, an embodiment of the present invention provides an information processing method, which is applied to a first communication device, including:

[0078] Step 110, sending encryption device information of the encryption device supported by the first communication device to the blockchain;

[0079] Step 120, receiving first data sent by the second communication device, where the first data is calculated based on encryption device information supported by the first communication device;

[0080] Step 130: Process the received first data.

[0081] In the above solution of the present invention, the first communication device is the sender of information in the IBC system, the second communication device is the receiver of information, and the encryption device is the PKG in the IBC system.

[0082] Figure 2 A decentralized PKG identity protection system is shown, which consists of several PKGs, IBC private key users, IBC relying parties, and verification nodes, and performs processes such as PKG information release, user-supported PKG information release, IBC encryption process, IBC signature process, and PKG information update.

[0083] First of all Figure 2 The system architecture of the system shown is described.

[0084] Blockchain: Stores PKG and its public parameter information, IBC relying parties and their trusted PKG information.

[0085] PKG: The private key generator in the IBC system generates public parameters, sends the public parameters to the verification node, and records the information verified by the verification node into the blockchain.

[0086] IBC relying party: A participant who trusts and uses a PKG. The relying party does not need to own the private key; for example, the encryptor (message sender) in the encryption model and the verifier (message receiver) in the signature model.

[0087] IBC private key user: a participant who needs to register in PKG and apply for a private key; for example, the decryptor (message receiver) in the encryption model, the signer (message sender) in the signature model;

[0088] Blockchain verification node: receives PKG information and PKG update information submitted by PKG, and verifies this information; receives the trusted PKG and its public parameters submitted by the IBC private key user or IBC relying party, and verifies this information.

[0089] In an optional embodiment of the present invention, step 110 includes:

[0090] Sending the encryption device information supported by the first communication device to the verification node of the blockchain;

[0091] The user identification of the first communication device is verified by the verification node, and the blockchain is queried for consistency between the encryption device information supported by the first communication device and the encryption device information stored in the blockchain. If the verification is passed, the encryption device information of the encryption device supported by the first communication device is recorded in the blockchain.

[0092] In this embodiment, the IBC private key user or relying party publishes the PKG information it supports. This process is mainly used for the IBC private key user or IBC relying party to publish the PKG they trust. Since there may be multiple PKGs, the IBC private key user or relying party (such as the terminal user or the operator network element) may only trust some PKGs. In this case, these users or network elements can publish the trusted PKG information to the blockchain. When other users or network elements send IBC messages to these nodes, they need to use the public parameters of the PKG trusted by the receiver to calculate the IBC message.

[0093] The user sends the PKG information that he trusts to the verification node. The verification node verifies the user's identity information, queries the blockchain for the public parameter information of the PKG supported by the user, and verifies the consistency between the public parameters submitted by the user and the information in the blockchain. After the verification is passed, the user information and the PKG information that he trusts will be recorded in the blockchain.

[0094] In an optional embodiment of the present invention, the encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and public parameters.

[0095] In this embodiment, the PKG that the user trusts includes [user ID, PKG supported by the user and a list of public parameter information]. Figure 3 As shown in the figure, the supported PKG information declared by the user is expressed in block format. The block is divided into a block header and a block body. The block header uses the current general technology, and the block body contains several records, which are the supported PKG information declared by the user, mainly including user ID, PKG identity information, public parameter information, and PKG URL and other information. Each user can put the PKG and public parameters that he supports into the blockchain.

[0096] In an optional embodiment of the present invention, the data calculated according to the encryption device information supported by the first communication device includes at least one of the following:

[0097] An encrypted message calculated according to the user identifier of the first communication device and the public parameter, wherein the encrypted message includes the user identifier of the first communication device, the public parameter and the ciphertext;

[0098] The signed message is calculated based on the private key and public parameters of the second communication device, and the signed message includes the user identification of the second communication device, the original message, the signature, and the user identification and public parameters of the encryption device.

[0099] In an optional embodiment of the present invention, step 130 includes at least one of the following:

[0100] When the first communication device receives the encrypted message, decrypting the encrypted message using the private key of the first communication device;

[0101] When the first communication device receives the signed message, it verifies the signed message using the user identification and public parameters of the second communication device.

[0102] In the IBC system, the information transmission process is mainly divided into two types, namely the IBC encryption process and the IBC front-signing process.

[0103] In the IBC encryption process, for example, a mobile user (IBC relying party) sends an encrypted message to an operator network element (IBC private key user). When an IBC relying party needs to send an encrypted message to an IBC private key user, the relying party first queries the blockchain for the PKG and public parameters trusted by the IBC private key user; the IBC relying party uses the identity information of the IBC private key user and the public parameters to calculate the encrypted message, which contains the identity information, public parameters, ciphertext, etc. of the IBC private key user; the IBC relying party sends the encrypted message to the IBC private key user; after receiving the encrypted message, the private key user uses the private key to decrypt the message.

[0104] Specifically, the encryption process of the blockchain-based IBC system is as follows:

[0105] (1) The trusted PKG generates a master key and public parameters, and publicly publishes information in the format of [PKG_ID, Public Params] to the blockchain; for example, [PKG_IoT1, Public Params_IoT1], [PKG_IoT1, Public Params_IoT2].

[0106] (2) The receiving user declares the blockchain he supports and public parameter information and publishes it to the blockchain, for example: [Bob_ID, PKG_IoT1, Public Params_IoT2].

[0107] (3) When the sending user needs to send an encrypted message to the receiving user, the receiving user's ID and supported Public Params are queried from the blockchain, the receiving user's public key PubKeyBob = F(IDBob,PKG_IoT1,Public Params_IoT2) is calculated, and then encryption operation is performed to obtain the ciphertext Cipher; wherein the function F for calculating the public key is a public algorithm.

[0108] (4) The sending user sends the message [IDBob, Public Params_IoT2, Cipher] to the receiving user. After receiving the ciphertext, the receiving user uses the private key to decrypt it; if it is not registered, it applies for the private key corresponding to its ID from PKG_IoT1 (calculated by the Master Key and ID).

[0109] (5) In order to avoid DoS attacks on the receiver, a security gateway can also be set up. In step (4), the sender user sends the message [IDBob, Public Params_IoT2, Cipher] to the security gateway, and the security gateway verifies the validity of the message by querying and verifying from the blockchain. If the receiver user has declared support for [PKG_IoT1, PublicParams_IoT2] on the blockchain, the message is forwarded to the receiver user; otherwise, the message is discarded.

[0110] In the ICB signing process, for example, a mobile user (IBC private key user) sends a signed message to an operator network element (IBC relying party). When the IBC private key user needs to sign a message and the IBC relying party verifies it, the IBC private key user queries the blockchain for the PKG and public parameters supported by the IBC relying party, and applies for a private key based on the supported PKG and its public parameters; the IBC private key user calculates the signature using the applied private key and public parameters, and sends the signed message to the relying party, where the signed message includes the IBC private key user's identity, the original text of the signed message, the signature, the PKG identifier, the PKG public parameters, and other contents; after receiving the signed message, the IBC relying party verifies the signature using the IBC private key user's identity information and the PKG public parameters and other information.

[0111] Specifically, the signature process of the blockchain-based IBC system is as follows:

[0112] (1) The receiving user declares the blockchain he supports and public parameter information, and publishes it to the blockchain, for example: [Bob_ID, PKG_IoT1, Public Params_IoT2];

[0113] (2) When the sending user needs to sign the message M and the receiving user needs to verify it, the sending user queries the blockchain for the PKG and its public parameters supported by the receiving user, and applies for a private key based on the supported PKG and its public parameters;

[0114] (3) The sender uses the private key SkAlice and the public parameters Public Params_IoT2 of PKG to calculate the signature: SigAlice = F(M, SkAlice, Public Params), where F is the public algorithm;

[0115] (4) The sending user sends the message [Alice_ID, M, SigAlice, Public Params_IoT2] to the receiving user;

[0116] (5) After receiving the signed message from the sender, the recipient user uses the sender user's ID and public parameters to verify the signature and obtain a verification result.

[0117] In an optional embodiment of the present invention, the encryption device is a private key generator in an identity-based cryptographic system.

[0118] In an optional embodiment of the present invention, the encryption device information also includes a uniform resource locator URL message of the encryption device.

[0119] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs.

[0120] like Figure 4 As shown, an embodiment of the present invention provides an information processing method, which is applied to a second communication device, and the method includes:

[0121] Step 410, querying the blockchain for encryption device information of encryption devices supported by the first communication device;

[0122] Step 420, calculating the first data to be sent based on the encryption device information supported by the first communication device;

[0123] Step 430: Send the first data to the first communication device.

[0124] In an optional embodiment of the present invention, the encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and public parameters.

[0125] In an optional embodiment of the present invention, step 420 includes at least one of the following:

[0126] Calculate an encrypted message according to the user identifier and public parameters of the first communication device, wherein the encrypted message includes the user identifier, public parameters and ciphertext of the first communication device;

[0127] The private key of the second communication device is obtained, and signature information is calculated based on the private key of the second communication device and the public parameters, wherein the signature information includes the user identification of the second communication device, the original message, the signature, the user identification of the encryption device and the public parameters.

[0128] In an optional embodiment of the present invention, step 430 includes at least one of the following:

[0129] sending the encrypted message to the first communication device;

[0130] The signature information is sent to the first communication device.

[0131] In an optional embodiment of the present invention, sending the encrypted message to the first communication device includes:

[0132] sending the encrypted message to a security gateway;

[0133] The security gateway verifies whether the encryption device information carried in the encrypted message is consistent with the encryption device information of the encryption device supported by the first communication device on the blockchain. If they are consistent, the encrypted message is sent to the first communication device; otherwise, the encrypted message is deleted.

[0134] In this embodiment, in order to avoid DoS attacks on the receiver, a security gateway can also be set up. The sender user sends the message [IDBob, Public Params_IoT2, Cipher] to the security gateway, and the security gateway verifies the validity of the message: query and verify from the blockchain. If the receiver user has declared support for [PKG_IoT1, PublicParams_IoT2] on the blockchain, the information is forwarded to the receiver user; otherwise, the information is discarded.

[0135] In an optional embodiment of the present invention, the encryption device is a private key generator in an identity-based cryptographic system.

[0136] In an optional embodiment of the present invention, the encrypted device information also includes a URL message of the encrypted device.

[0137] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs.

[0138] like Figure 5 As shown, a method for reporting encryption device information is applied to an encryption device, comprising:

[0139] Step 510, generating at least one public parameter;

[0140] Step 520, sending the user identification of the encryption device and the at least one public parameter to the verification node of the blockchain,

[0141] Step 530: Record the user identification and at least one public parameter verified by the blockchain verification node into the blockchain.

[0142] In an optional embodiment of the present invention, the encryption device information reporting method further includes:

[0143] The encryption device issues a public parameter update request;

[0144] Using the private key of the encryption device, signing the public parameter to be updated to generate signature information;

[0145] Send the signature information to the verification node of the blockchain;

[0146] The verification node of the blockchain queries the blockchain for the public parameters of the encryption device, uses the user ID of the encryption device and the public parameters to verify the signature information, and after the verification is passed, uploads the public parameters to be updated to the blockchain.

[0147] In the IBC system, the PKG information release process is as follows:

[0148] (1) PKG generates public parameters. One PKG can generate multiple sets of public parameters.

[0149] (2) PKG sends its own information (including PKG name, URL, etc.) and public parameter information to the verification node;

[0150] (3) The verification node verifies the information submitted by the PKG. Once the verification is passed, the information will be recorded in the blockchain.

[0151] When PKG needs to update public parameters and other information, PKG executes the PKG information update process, which is as follows:

[0152] (1) When PKG needs to update information, for example, to generate new public parameters [PKG_IoT1, Public Params_IoT3], PKG generates a public information release request and signs the new public parameters using the original IBC private key;

[0153] (2) PKG sends the signature to the verification node;

[0154] (3) The verification node queries the blockchain for the public parameter information of PKG, and uses its ID and public parameters to verify the correctness of the signature. After verification, the new public parameters will be recorded in the blockchain.

[0155] like Figure 6 As shown, PKG information is represented in block format. Blocks are divided into block headers and block bodies. The block header uses current general technology, and the block body contains several records, mainly including the identity information and public parameter information of the PKG. Each PKG puts its own public parameters into the blockchain. Optionally, the PKG information supported by the user and the information disclosed by the PKG itself can be recorded in the same blockchain or in different blockchains, which is not limited here.

[0156] In an optional embodiment of the present invention, the encryption device is a private key generator in an identity-based cryptographic system.

[0157] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs.

[0158] like Figure 7 As shown, an embodiment of the present invention provides a first communication device 70, including:

[0159] A first sending module 710 sends encryption device information of an encryption device supported by the first communication device to the blockchain;

[0160] A receiving module 720 receives first data sent by a second communication device, where the first data is calculated based on encryption device information supported by the first communication device;

[0161] The processing module 730 processes the received first data.

[0162] In the embodiment of the present disclosure, the first sending module 710 is specifically used for:

[0163] Sending the encryption device information supported by the first communication device to the verification node of the blockchain;

[0164] The user identification of the first communication device is verified by the verification node, and the blockchain is queried for consistency between the encryption device information supported by the first communication device and the encryption device information stored in the blockchain. If the verification is passed, the encryption device information of the encryption devices supported by the first communication device is recorded in the blockchain.

[0165] In an embodiment of the present disclosure, the encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and a public parameter.

[0166] In an embodiment of the present disclosure, the first data calculated according to the encryption device information supported by the first communication device includes at least one of the following:

[0167] An encrypted message calculated according to the user identifier of the first communication device and the public parameter, wherein the encrypted message includes the user identifier of the first communication device, the public parameter and the ciphertext;

[0168] The signed message is calculated based on the private key and public parameters of the second communication device, and the signed message includes the user identification of the second communication device, the original message, the signature, and the user identification and public parameters of the encryption device.

[0169] In the embodiment of the present disclosure, the processing module 730 is specifically used for:

[0170] When the first communication device receives the encrypted message, decrypting the encrypted message using the private key of the first communication device;

[0171] When the first communication device receives the signed message, it verifies the signed message using the user identification and public parameters of the second communication device.

[0172] In an embodiment of the present disclosure, the encryption device is a private key generator in an identity-based cryptographic system.

[0173] In an embodiment of the present disclosure, the encryption device information further includes a uniform resource locator URL message of the encryption device.

[0174] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs.

[0175] like Figure 8 As shown, an embodiment of the present invention provides a second communication device 80, including:

[0176] A query module 810 queries the blockchain for encryption device information of encryption devices supported by the first communication device;

[0177] A calculation module 820 calculates first data to be sent based on encryption device information supported by the first communication device;

[0178] The second sending module 830 sends the first data to the first communication device.

[0179] In an embodiment of the present disclosure, the encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and a public parameter.

[0180] In the embodiment of the present disclosure, the calculation module 820 is specifically used for:

[0181] Calculate an encrypted message according to the user identifier and public parameters of the first communication device, wherein the encrypted message includes the user identifier, public parameters and ciphertext of the first communication device;

[0182] The private key of the second communication device is obtained, and signature information is calculated based on the private key of the second communication device and the public parameters, wherein the signature information includes the user identification of the second communication device, the original message, the signature, the user identification of the encryption device and the public parameters.

[0183] In the embodiment of the present disclosure, the second sending module 830 is specifically used for:

[0184] sending the encrypted message to the first communication device; or

[0185] The signature information is sent to the first communication device.

[0186] In an embodiment of the present disclosure, sending the encrypted message to the first communication device includes:

[0187] sending the encrypted message to a security gateway;

[0188] The security gateway verifies whether the encryption device information carried in the encrypted message is consistent with the encryption device information of the encryption device supported by the first communication device on the blockchain. If they are consistent, the encrypted message is sent to the first communication device; otherwise, the encrypted message is deleted.

[0189] In an embodiment of the present disclosure, the encryption device is a private key generator in an identity-based cryptographic system.

[0190] In an embodiment of the present disclosure, the encrypted device information further includes a URL message of the encrypted device.

[0191] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs.

[0192] like Fig. 9 As shown, an embodiment of the present invention provides an encryption device, comprising:

[0193] A generating module 910 generates at least one public parameter;

[0194] The third sending module 920 sends the user identification of the encryption device and the at least one public parameter to the verification node of the blockchain,

[0195] The recording module 930 records the user identification and at least one public parameter verified by the verification node of the blockchain into the blockchain.

[0196] In an embodiment of the present disclosure, when an encryption device issues a public parameter update request, the generation module 910 uses the private key of the encryption device to sign the public parameters to be updated to generate signature information; the third sending module 920 sends the signature information to the verification node of the blockchain; the verification node of the blockchain queries the blockchain for the public parameters of the encryption device, and uses the user identifier of the encryption device and the public parameters to verify the signature information. After the verification is passed, the recording module 930 uploads the public parameters to be updated to the blockchain.

[0197] In an embodiment of the present disclosure, the encryption device is a private key generator in an identity-based cryptographic system.

[0198] In the above solution of the present invention, in the IBC system, a legitimate PKG needs to be registered on the blockchain and register its public parameters; when the sender attempts to send a message, it can query on the chain to confirm its identity and the validity of the public parameters before sending the confidential data. Registering PKG information through the blockchain avoids the forgery of PKG information. In addition, the recipient of the message declares the PKG information it supports based on the blockchain, which can avoid being attacked by malicious PKGs.

[0199] The embodiment of the present invention further provides a communication device, comprising: a processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0200] The embodiment of the present invention further provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0201] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0202] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0203] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0204] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0205] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0206] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0207] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0208] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0209] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An information processing method, characterized in that: Applied to a first communication device, comprising: Sending encryption device information of an encryption device supported by the first communication device to a blockchain; wherein the encryption device is a private key generator in an identity-based cryptographic system, and the blockchain records at least one public parameter of the private key generator verified by a verification node of the blockchain; Receiving first data sent by a second communication device, where the first data is calculated based on encryption device information supported by the first communication device; Processing the received first data; Wherein, sending the encryption device information of the encryption device supported by the first communication device to the blockchain includes: Sending the encryption device information supported by the first communication device to the verification node of the blockchain; The user identification of the first communication device is verified by the verification node, and the blockchain is queried for consistency between the encryption device information supported by the first communication device and the encryption device information stored in the blockchain. If the verification is passed, the encryption device information of the encryption device supported by the first communication device is recorded in the blockchain.

2. The method according to claim 1, characterized in that The encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and public parameters.

3. The method according to claim 2, characterized in that The first data calculated according to the encryption device information supported by the first communication device includes at least one of the following: An encrypted message calculated according to the user identifier of the first communication device and the public parameter, wherein the encrypted message includes the user identifier of the first communication device, the public parameter and the ciphertext; The signed message is calculated based on the private key and public parameters of the second communication device, and the signed message includes the user identification of the second communication device, the original message, the signature, and the user identification and public parameters of the encryption device.

4. The method according to claim 3, characterized in that Processing the received first data includes at least one of the following: When the first communication device receives the encrypted message, decrypting the encrypted message using the private key of the first communication device; When the first communication device receives the signed message, it verifies the signed message using the user identification and public parameters of the second communication device.

5. The method according to claim 2, characterized in that: The encryption device information also includes a uniform resource locator URL message of the encryption device.

6. An information processing method, characterized in that: Applied to a second communication device, the method includes: Querying the blockchain for encryption device information of encryption devices supported by the first communication device; Calculating first data to be sent based on encryption device information supported by the first communication device; Sending first data to a first communication device; The encryption device is a private key generator in an identity-based cryptographic system, and the blockchain records at least one public parameter of the private key generator verified by a verification node of the blockchain; The encrypted device information is obtained by the verification node of the blockchain by verifying the user identification of the first communication device, and querying the blockchain for consistency between the encrypted device information supported by the first communication device and the encrypted device information stored in the blockchain, and is recorded in the blockchain if the verification is passed.

7. The method according to claim 6, characterized in that The encryption device information includes a user identifier of the first communication device, a user identifier of the encryption device, and public parameters.

8. The method according to claim 7, characterized in that The first data to be sent calculated based on the encryption device information supported by the first communication device includes at least one of the following: Calculate an encrypted message according to the user identifier and public parameters of the first communication device, wherein the encrypted message includes the user identifier, public parameters and ciphertext of the first communication device; The private key of the second communication device is obtained, and signature information is calculated based on the private key of the second communication device and the public parameters, wherein the signature information includes the user identification of the second communication device, the original message, the signature, the user identification of the encryption device and the public parameters.

9. The method according to claim 8, characterized in that Sending the first data to the first communication device includes at least one of the following: sending the encrypted message to the first communication device; The signature information is sent to the first communication device.

10. The method according to claim 9, characterized in that Sending the encrypted message to the first communication device comprises: sending the encrypted message to a security gateway; The security gateway verifies whether the encryption device information carried in the encrypted message is consistent with the encryption device information of the encryption device supported by the first communication device on the blockchain. If they are consistent, the encrypted message is sent to the first communication device; otherwise, the encrypted message is deleted.

11. The method according to claim 7, characterized in that The encrypted device information also includes a URL message of the encrypted device.

12. A method for reporting encrypted device information, characterized in that: Applied to an encryption device, the encryption device is a private key generator in an identity-based cryptographic system, comprising: generating at least one public parameter; sending the user identification of the encryption device and the at least one public parameter to a verification node of the blockchain, The user identification and at least one public parameter verified by the verification node of the blockchain are recorded in the blockchain.

13. The method according to claim 12, characterized in that Also includes: The encryption device issues a public parameter update request; Using the private key of the encryption device, signing the public parameter to be updated to generate signature information; Send the signature information to the verification node of the blockchain; The verification node of the blockchain queries the blockchain for the public parameters of the encryption device, uses the user ID of the encryption device and the public parameters to verify the signature information, and after the verification is passed, uploads the public parameters to be updated to the blockchain.

14. A first communication device, characterized in that: include: A first sending module is configured to send encryption device information of an encryption device supported by the first communication device to a blockchain; wherein the encryption device is a private key generator in an identity-based cryptographic system, and the blockchain records at least one public parameter of the private key generator verified by a verification node of the blockchain; A receiving module, receiving first data sent by a second communication device, where the first data is calculated based on encryption device information supported by the first communication device; A processing module, processing the received first data; Wherein, the first sending module is specifically used for: Sending the encryption device information supported by the first communication device to the verification node of the blockchain; The user identification of the first communication device is verified by the verification node, and the blockchain is queried for consistency between the encryption device information supported by the first communication device and the encryption device information stored in the blockchain. If the verification is passed, the encryption device information of the encryption device supported by the first communication device is recorded in the blockchain.

15. A second communication device, characterized in that: include: A query module, querying the blockchain for encryption device information of encryption devices supported by the first communication device; A calculation module, which calculates the first data to be sent based on the encryption device information supported by the first communication device; A second sending module sends the first data to the first communication device; The encryption device is a private key generator in an identity-based cryptographic system, and the blockchain records at least one public parameter of the private key generator verified by a verification node of the blockchain; The encrypted device information is obtained by the verification node of the blockchain by verifying the user identification of the first communication device, and querying the blockchain for consistency between the encrypted device information supported by the first communication device and the encrypted device information stored in the blockchain, and is recorded in the blockchain if the verification is passed.

16. An encryption device, characterized in that: The encryption device is a private key generator in an identity-based cryptographic system, comprising: A generation module generates at least one public parameter; The third sending module sends the user identification of the encryption device and the at least one public parameter to the verification node of the blockchain, The recording module records the user identification and at least one public parameter verified by the verification node of the blockchain into the blockchain.

17. A communication device, characterized in that: include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 5, the method according to any one of claims 6 to 11, or the method according to any one of claims 12 to 13 is executed.

18. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 5, the method according to any one of claims 6 to 11, or the method according to any one of claims 12 to 13.