Client key management method based on threshold password authentication and related equipment
Through the client key management method based on threshold password authentication, using Shamir secret sharing and zero-knowledge proof scheme, the problem of single point failure of key server and malicious server is solved, and efficient and secure key generation and communication are achieved, improving Improves the data security of cloud storage.
Patent Information
- Application Number
- CN202411193710.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-29
AI Technical Summary
In the existing technology, problems such as key server single point of failure, malicious servers and low communication efficiency exist in cloud storage, affecting the security and reliability of user data.
Adopt a client key management method based on threshold password authentication, through global initialization, user registration, file encryption and decryption processes, and use Shamir secret sharing scheme and non-interactive zero-knowledge proof scheme to reduce communication interaction with the key server and improve Efficiency and security of key generation.
Under the malicious key server model, users only need to interact with a threshold number of key servers to generate file- and user-specific encryption keys and decryption keys, which solves the problems of single point failure of key servers and low communication efficiency. , improving the reliability and security of the system.
Smart Images

Figure CN118869210A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of key management, and in particular relates to a client key management method based on threshold password authentication and related equipment. Background Art
[0002] In cloud storage, users use keys to encrypt files before uploading them to cloud servers and upload them in ciphertext to prevent files from being leaked inside cloud storage servers. The distributed password-authenticated symmetric key management scheme can provide users with only passwords to remember and keys to generate files locally with the assistance of key servers. Only when users enter the correct user password can they complete the authentication of the key server and generate decryption keys with the assistance of all key servers to complete the decryption of user data. This scheme allows users to generate different encryption keys for different data only by remembering the user password, protecting the user's password from online and offline attacks, and ensuring message privacy and ciphertext integrity as long as at least one key server is honest.
[0003] Although the symmetric key management scheme of distributed password authentication provides a practical client-side key management solution for user data encryption, there are still problems such as single point failure of key server, malicious servers and communication efficiency. Summary of the invention
[0004] The invention provides a client key management method based on threshold password authentication and related equipment, which solves the problems of single point failure of key server, malicious server and communication efficiency.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A client key management method based on threshold password authentication, comprising:
[0007] Globally initialize the user client and key service period;
[0008] The user registers with the key server using the user identifier and user password, and the key server stores the user's authentication information share;
[0009] The user logs in, sends the plain text commitment of the file, the current user's identifier and the user password to a threshold number of key servers, calculates the file encryption key share, encrypts the file encryption key share with the user authentication information share and sends it to the user;
[0010] The user performs identity authentication. If the user is the one uploading the file, the file encryption key is obtained based on the file encryption key share, and the file is encrypted using the file encryption key to obtain the file ciphertext. At the same time, a file index is generated based on the file, and the file index and file ciphertext are uploaded to the cloud server;
[0011] The user logs in and downloads the file ciphertext of the corresponding file from the cloud storage server through the file index. The user performs identity authentication. When the user who uploaded the file obtains the decryption key based on the user's user identifier and user password, and uses the decryption key to decrypt the file ciphertext to obtain the file.
[0012] Preferably, the steps of globally initializing the user client and the key service period are specifically as follows:
[0013] A secret shared master key is randomly generated, and the Shamir secret sharing scheme is executed to calculate the secret shared key share. At the same time, the verified commitment is calculated to verify the encryption and decryption key share. The plaintext commitment scheme is executed to verify the correctness of the decrypted plaintext, and the public parameters of the plaintext commitment scheme are generated. The key server stores the shared key share.
[0014] Preferably, when the user decrypts, the file ciphertext is parsed into a commitment of plaintext and ciphertext, and the ciphertext is decrypted using a key. After decryption, the plaintext and a random value are obtained. The user uses the commitment scheme and the random value to verify whether the plaintext is correct. If correct, the plaintext is output, otherwise, the decryption fails.
[0015] Preferably, the steps for a user to register with a key server using a user identifier and a user password are specifically as follows:
[0016] The user calculates the blinded value of the user password, and sends the user identifier and the blinded value of the user password to all key servers;
[0017] The key server generates an intermediate value of the user identity authentication information based on the blinded value of the user identifier and the user password, and sends it to the user;
[0018] The user calculates the user authentication information through the Lagrange interpolation polynomial based on the intermediate value of the user authentication information, obtains the user authentication information share specific to the key server based on the user authentication information, and sends all the user authentication information shares specific to the key server to the corresponding key server, and the key server stores the user authentication information shares specific to the key server.
[0019] Preferably, the user logs in, sends the plain text commitment of the file, the user identifier and the user password to a threshold number of key servers, calculates the file encryption key share, and uses the user authentication information share to encrypt the file encryption key share and send it to the user. Specifically, the steps are:
[0020] The user calculates a blinded value of the user password, and sends the plaintext commitment of the file, the user identifier, and the blinded value of the user password to a threshold number of key servers;
[0021] The key server checks whether the user authentication information specific to the key server exists. If it does not exist, the output of the key server is an error. Otherwise, the key server calculates the intermediate value of the user authentication information and the file encryption key share, and performs the Eval algorithm of the non-interactive zero-knowledge proof scheme to calculate the value of the intermediate value of the verified user authentication information, and uses the user authentication information share specific to the key server as the key to encrypt the file encryption key share. The key server sends the intermediate value of the user authentication information, the encrypted file encryption key share, and the value of the intermediate value of the verified user authentication information to the user.
[0022] Preferably, the file encryption key share is obtained by symmetric encryption based on the user authentication information share.
[0023] Preferably, the user performs identity authentication. If the user is a user uploading a file, the steps of obtaining the file encryption key based on the file encryption key share are specifically as follows:
[0024] The user verifies the correctness of the user authentication information share through the Verify algorithm of the non-interactive zero-knowledge proof scheme. If it is correct, proceed to the next step;
[0025] The user calculates the user authentication information through Lagrange interpolation polynomials, calculates the user identity authentication information specific to the key server, and uses the Dec algorithm of the symmetric key encryption scheme SKE to calculate the file encryption key share using the user identity authentication information specific to the key server as the decryption key;
[0026] The user verifies the correctness of the file encryption key share, and if it is correct, the user calculates the file encryption key.
[0027] A client key management system based on threshold password authentication, comprising:
[0028] Initialization module: used to globally initialize the user client and key service period;
[0029] User registration module: used for users to register with the key server through user identifiers and user passwords, and the key server stores user authentication information shares;
[0030] Share generation module: The user logs in, sends the file, the current user's identifier and the user password to a threshold number of key servers, calculates the file encryption key share, encrypts the file encryption key share with the user authentication information share and sends it to the user;
[0031] Encryption module: used for user identity authentication. If the user is uploading a file, the file encryption key is obtained based on the file encryption key share, and the file is encrypted using the file encryption key to obtain the file ciphertext. At the same time, a file index is generated based on the file, and the file index and file ciphertext are uploaded to the cloud server.
[0032] Decryption module: The user logs in and downloads the file ciphertext of the corresponding file from the cloud storage server through the file index. The user performs identity authentication. When the user is the user who uploaded the file, the decryption key is obtained based on the user's user identifier and user password, and the decryption key is used to decrypt the file ciphertext to obtain the file.
[0033] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a client key management method based on threshold password authentication are implemented.
[0034] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of a client key management method based on threshold password authentication.
[0035] Compared with the prior art, the present invention has the following beneficial effects: the present invention provides a client key management method based on threshold password authentication, which only requires one round of communication interaction with any threshold number of key servers to generate encryption keys and decryption keys specific to files and users in the presence of malicious key server models, thereby solving the problem of low communication efficiency. Users only need to interact with a threshold number of key servers to complete key generation, thereby solving the problem of single point failure of key servers.
[0036] To address the problem of malicious servers, this paper combines the idea of non-interactive zero-knowledge proof and server-assisted key generation based on BLS blind signature. Users can verify the incorrect calculations of malicious key servers through the verification function to prevent the use of incorrect keys to encrypt and decrypt files. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a flow chart of a client key management method based on threshold password authentication of the present invention;
[0038] Figure 2 The present invention is a block diagram of a client key management system based on threshold password authentication. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0040] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0042] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.
[0043] like Figure 1 The present invention provides a client key management method based on threshold password authentication, comprising:
[0044] S101 globally initializes the user client and key service period;
[0045] S102 The user registers with the key server using the user identifier and user password, and the key server stores the user authentication information share;
[0046] S103 The user logs in, sends the plain text commitment of the file, the current user's identifier and the user password to a threshold number of key servers, calculates the file encryption key share, encrypts the file encryption key share with the user authentication information share and sends it to the user;
[0047] S104: The user performs identity authentication. If the user is the one uploading the file, the user obtains the file encryption key based on the file encryption key share, encrypts the file using the file encryption key to obtain the file ciphertext, generates a file index based on the file, and uploads the file index and the file ciphertext to the cloud server.
[0048] S105 The user logs in and downloads the file ciphertext of the corresponding file from the cloud storage server through the file index. The user performs identity authentication. When the user is the user who uploaded the file, a decryption key is obtained based on the user's user identifier and user password, and the decryption key is used to decrypt the file ciphertext to obtain the file.
[0049] Specific examples include:
[0050] Global initialization:
[0051] 1. Randomly generate a secret sharing master key s and execute Shamir secret sharing scheme SSS to calculate the secret sharing key share (n is the total number, t is the threshold number, and p is the order).
[0052] 2. Calculate the commitment for verification: γ i =(γ i,1 ,γ i,2 ),in (g T ,h is group G T The generator of group G1, g1 is the generator of group G1, r i is a random value).
[0053] 3. Setup of the execution commitment scheme Σ com Algorithm to generate public parameters of plaintext commitment scheme
[0054] 4. Key Server KS i Storage sk i =(s i ,r i ).
[0055] 5. Public parameters: p, {γ i} i∈[n] ,g1,…g T ,h,G1,…,G T ,H1,…,H4,H T ,e,e1,pp com (g i For group G i The generator of H i is a hash function, bilinear pairing e:G1×G2→G T ,e1:G1×G4→G T , pp com is the public parameter of the plain text commitment scheme).
[0056] User Registration:
[0057] 1. User Calculate the blinded value of the user password pwd r pwd is a random value, and (uid, x pwd ) is sent to all key servers.
[0058] 2. Key Server KS i calculate Where i∈[n], and sent to the user
[0059] 3. User Calculate user authentication information through Lagrange interpolation polynomial (λ 0,i,T are Lagrange interpolation polynomial coefficients), where T∈[n], |T|≥t, user calculate and will Sent to the key server KS i (Sent to all key servers).
[0060] 4. Key Server KS i storage (Used to subsequently encrypt the user's share of the encryption / decryption key to achieve client authentication).
[0061] Key Generation:
[0062] 1. User Calculate the blinded value of pwd (r pwd is a random value), and (uid, x pwd ,com m ) is sent to a threshold number of key servers (com m is a m and pp com The relevant hash value is calculated by the Com algorithm of the commitment scheme ∑).
[0063] 2. Key Server KS i Check REC i,uid If it does not exist, KS i The output is ⊥. Otherwise, the key server KS i Calculate user authentication information share Encryption / decryption key shares And perform non-interactive zero-knowledge proof schemes ∏ ZK The Eval algorithm is used to calculate z i =Π ZK .Eval(s i ,w,pp), where w=e(x pwd ,H2(uid)). As the key, use the Enc algorithm of the symmetric key encryption scheme SKE to encrypt Y 2,i Encrypted
[0064] 3. Key Server KS i send For Users
[0065] 4. User Through the non-interactive zero-knowledge proof scheme Π ZK Verify(z i )Algorithm verification Y 1,i The correctness of ZK .Verify(z i ) output is ⊥, then the user output is ⊥. If they are equal, it means Y 1,i is a correct calculation.
[0066] 5. User Calculated by Lagrange interpolation polynomial calculate Use the Dec algorithm of the symmetric key encryption scheme SKE to Calculated as the decryption key (Complete client authentication, only the correct password can generate the correct Y1 and ).
[0067] 6. User Verify Y 2,i Correctness:
[0068] Verify e1(Y 2,i ,g2)=e1(H4(uid||com m ),γ i,2 ) are equal, if they are equal, it means Y 2,i is a correct computation. If any of them are not equal, the user output is ⊥.
[0069] 7. User calculate Get the final key k = H T (H1(pwd),H2(uid),com m ,Y2).
[0070] Encryption: Enc(k,m,r m ,com m )→c / ⊥.
[0071] 1. User Calculate the commitment com using the Com algorithm of the commitment scheme ∑ m :=∑.Com(m,pp com ,r m)(r m is a random value).
[0072] 2. User Generate encryption key k through KG.
[0073] 3. If k≠⊥, Output a ciphertext c:=(com m ,e), where e:=PRG(k)⊕(m||r m ); otherwise, output ⊥.
[0074] Decryption: Dec(k,c)→m / ⊥.
[0075] 1. User Parse c to get (com m ,e).
[0076] 2. Generate an encryption key k through KG.
[0077] 3. Decrypt e to get (m′||r m′ ):=PRG(k)⊕e.
[0078] 3. Verify OOM m =∑.Com(m′,pp com ; m′ ); if they are equal, Output m′; otherwise Output ⊥
[0079] In the PG algorithm, the Shamir secret sharing scheme is used to initialize the shared s of the master secret key s i Distribute to server KS i In addition, the public parameter γ is generated i , used to verify correctness, where i∈[n]. pp com As a public parameter of the commitment scheme.
[0080] In the Reg algorithm, the user Using the blinded value x of the user identifier uid and the password pwd Cooperate with the key server to calculate user authentication information Y i .user Calculate specific servers User authentication information auth uid,i and store it on the key server where i∈[n]. uid,i Used for client authentication.
[0081] In the KG algorithm, users Key Server Send the blinded value x of user ID uid and password pwd and the promise of plain text mcom m , where i∈[n]. Key server Calculate user authentication information Y 1,i , a share Y of a file key 2,i The ciphertext and z for verification i , and send it to the user user Verify Y 1,i The correctness of the user authentication information auth uid,i , decrypt Get Y 2,i .user Verify Y 2,i To check the correctness of the calculation, Y2 and file key k are calculated.
[0082] The main ingredients are:
[0083] Let G1, G2, G3, G4 and G T is a multiplicative cyclic group of prime order p, and the bilinear pairing e:G1×G2→G T ,e1:G1×G4→G T Let g1∈G1, g2∈G2, g3∈G3, g4∈G4 and g T ,h∈G T They are G1, G2, G3, G4 and G T The generator of .
[0084] Let H1:{0,1} * →G1,H2:{0,1} * →G2,H3:{0,1} * →G3,H4:{0,1} * →G4,H T :{0,1} * →G T Use the hash function as a random oracle.
[0085] Let SSS be a Shamir secret sharing scheme.
[0086] Let ∑:=(Setup com ,Com) is a commitment scheme.
[0087] Let PRG be a polynomial expansion.
[0088] Order ZK:=(Setup,Eval,Verify) is a non-interactive zero-knowledge proof scheme.
[0089] Let SKE:=(Enc,Dec) be a symmetric key encryption scheme.
[0090] When a user needs to upload a file to a cloud storage server, the user first sends the file information and user authentication information to a threshold number of key servers, t. With the assistance of these key servers, the user verifies the correctness of the information returned by the key servers, calculates the encryption key specific to the file and user identity, and encrypts the file to be uploaded. Finally, the user uploads the encrypted ciphertext to the cloud storage server. The process of downloading files is the opposite of uploading files, but the process of generating file keys is the same.
[0091] To solve the existing problems, the solution proposed in this paper should be reliable and efficient. In terms of reliability, this paper considers the number of key servers involved and the key server model. This paper seeks a password-authenticated threshold symmetric key management scheme to replace the fully distributed password-authenticated symmetric key management scheme, where full distribution requires all key servers to participate in calculating the keys of user files. For security, key servers must be managed by independent parties, and for availability, key servers must be geographically distributed. In this paper's scheme, users can verify malicious calculation results generated by malicious key servers. For efficiency, this paper's scheme requires a scheme in which users only need to interact with the key server once to generate file keys, reducing the three-round communication of the existing scheme to one round of communication.
[0092] In a fully distributed password-authenticated symmetric key management scheme, the encryption key and decryption key consist of a bilinear pairing (the input is the user password and file-related information) and an exponential part, where the exponential part is a pseudo-random function calculated based on the key server's key and the user identifier and the pseudo-random functions calculated by all key servers are accumulated. In order to solve the reliability problem, a simple solution is to add a secret sharing scheme to the exponential part of the encryption key and decryption key structure. In this way, users can interact with a threshold number of key servers t to generate encryption keys and decryption keys without having to interact with all key servers. However, the encryption key and decryption key will be independent of the user's identity, which may lead to key leakage. For example, different users will generate the same key using the same password and file.
[0093] Therefore, the encryption key and decryption key need to be associated with the user identifier, user password and file. However, due to the combination of secret sharing and exponential part calculation of bilinear pairing, only two inputs of bilinear pairing can be used. In the scheme of this paper, the user calculates the user authentication information with the help of any t key servers during the registration phase, which includes the user identifier, user password and the keys calculated by t key servers. The user generates key server-specific authentication information from the user authentication information and stores it on each key server. In the key generation phase of encryption and decryption, the key server calculates the hash value containing the user identifier and the file commitment, and calculates the encryption key or decryption key share using the secret sharing key share. The share is encrypted using the server-specific user authentication information, and then both the encrypted share and the share used to calculate the user authentication information are sent to the user. Only when the user has the correct user identifier and user password can the correct user authentication information be generated, the ciphertext of the encryption key or decryption key share be decrypted, and the encryption key and decryption key share be calculated. This allows the encryption key and decryption key to be associated with the user identifier, user password and file at the same time, solves the key leakage problem, and reduces the three-round communication interaction to one-round communication interaction.
[0094] The scheme in this paper implements the prevention of malicious key server miscalculations through non-interactive zero-knowledge proof and server-assisted key generation based on BLS blind signature, so that users can verify the correctness of the key server calculation. By doing so, users are able to generate correct encryption and decryption keys. The scheme in this paper combines the idea of oblivious pseudorandom function (OPRF) to ensure that the key server assists users in generating encryption and decryption keys without knowing the user's password. If the key server knows the user's password, the malicious key server can impersonate itself as the user to generate encryption and decryption keys, resulting in user data leakage.
[0095] Compared with existing schemes, our scheme only needs one round of communication interaction with any t key servers to generate file- and user-specific encryption and decryption keys in the presence of a malicious key server model. In the following sections, we will describe the various parts of our scheme in more detail. We start with the system model design and assumptions of the scheme, then give the definition and construction of the scheme, and finally prove the security of the scheme.
[0096] Design ideas:
[0097] Next, the solution model is introduced from the perspective of system model, communication model and adversary model, and the design goals are introduced.
[0098] System Model: The solution in this paper includes some users A set of n key servers and a cloud storage server Each user wants to generate encryption keys and decryption keys through the user password with the assistance of any t (≤n) key servers. Since the existing fully distributed password-authenticated symmetric key management schemes have limitations in reliability and efficiency, a simple improvement method is to modify the exponential part of calculating encryption keys and decryption keys from requiring the participation of all key servers to requiring the participation of only any t key servers. However, this simple improvement makes the encryption key and decryption key independent of the user identifier, which leads to the key leakage problem. Similar to general cloud storage services, the scheme in this paper has three basic protocols: Setup, Upload, and Download. This section starts with a description of these protocols. The Setup protocol performs global initialization of the key server, and the user completes the user registration with the key server. Initially, the global initialization divides the master key s into n key shares s through Shamir's secret sharing. i , and generate a set of commitments y i As a public parameter for subsequent verification. Next, the user registers with the key server using the user identifier uid and the user password pwd. Interactively maintain a set of RECs, which contain in, is specific to the key server User identity authentication information. If the uid that the user wants to register has already been registered, the uid cannot be registered.
[0099]
[0100] The Upload protocol is executed when a user needs to upload a file to the cloud storage server. When he wants to upload a file f to a cloud storage server S, he starts the protocol to interact with any t key servers and obtain the encryption key k used to encrypt f. f , and the ciphertext f * Upload to cloud storage server S, where f * Indicates the use of k f The ciphertext obtained by symmetric encryption of f as the key is First, send the user identifier uid, password pwd and file f to be uploaded to any t key servers. Key Server Compute an encryption key k specific to f f The share k f,i And for k f,i Encrypted and a user authentication information auth uid Share auth uid,i , and set auth uid,i and Sent to the user, where Use user authentication information As the key for symmetric encryption, Key server specific if The user uid and password pwd provided are correct. The user authentication information share can be calculated by auth uid,i Get server-specific User authentication information and use Decryption Get the share k of the file key f,i .user Use file key share k f,i Calculate the file encryption key k f , using a file- and user-specific key k f Use f as the key to symmetric encrypt the file ciphertext f * Finally, the user Generate the index fid of file f, and add the file index fid and the file ciphertext f * Upload to cloud storage server
[0101]
[0102] The Download protocol is executed when a user needs to download a file from a cloud storage server. To download a file, he executes the Download protocol. First, the user obtains the file from the cloud storage server through the file's index fid. Download the ciphertext of the corresponding file f * Perform the same process as the Upload protocol to obtain the decryption key k f And use k f Decryptionf * Get file f.
[0103]
[0104] Communication model: In this paper's scheme, it is assumed that the user's registration on the key server and the user's upload and download operations on the cloud storage server occur in a secure channel where the adversary cannot interfere with the communication. When the user performs an upload or download operation, the user needs to interact with the key server to obtain the encryption key or decryption key of the file. In the key generation phase, this paper assumes that the key server communicates with the user through a server-side authenticated and secure channel, where the user can ensure that they are communicating with a legitimate key server, and the key server communicates with the authenticated user. This paper's scheme aims to improve communication efficiency, and only one round of communication is required in the key generation phase. In the key generation process, the user starts the process by sending a message to t key servers. Subsequently, each key server performs calculations based on the received message and returns the calculation results to the user. Finally, the user integrates these responses to calculate the file key. During the execution process, the key servers cannot interact with each other.
[0105] Adversary Model: In our scheme, we consider a more general key server model, namely the malicious key server model. The scheme allows the adversary to control up to t-1 key servers and make them behave in arbitrary ways (active / malicious). The set of corrupt parties is not known in advance, but we assume that it does not change during the execution of the protocol, i.e., static corruption.
[0106] The design goal is that this solution must meet correctness, message privacy and authenticity.
[0107] Correctness: Users must be able to detect malicious responses from key servers to prevent users from obtaining incorrect encryption and decryption keys, resulting in invalid encrypted and decrypted files. Without correctness, a malicious key server may return an incorrect calculation, which is undetectable and will cause users to generate incorrect encryption keys and incorrect ciphertext. Afterwards, even if the file decryption process is correct, the plaintext will not be recoverable and will be permanently lost.
[0108] Message privacy: Users can only decrypt the ciphertext obtained by encrypting their own plaintext. Even if the plaintexts before encryption are the same, they cannot decrypt the ciphertext obtained by encrypting other users' plaintext. Users can obtain different encryption keys generated for different plaintexts, but these keys do not allow them to violate the privacy of any other ciphertext because the encryption keys for each ciphertext are different. One user cannot generate the encryption key generated by another user.
[0109] Authenticity: The scheme must ensure that a user can only generate ciphertext that belongs to him, that is, the adversary cannot generate valid ciphertext for other users to decrypt. Without authenticity, the attacker can generate valid ciphertext for other users, making it impossible to identify which user the ciphertext belongs to.
[0110] In this paper's scheme, all key servers obtain corresponding key shares during the initialization phase. A user who wants to encrypt plaintext m must send a request to at least t key servers to generate keys and complete encryption. Subsequently, the scheme TPaSE (Threshold Password-authenticated Symmetric-key Encryption) of this paper is formally defined.
[0111] Definition 1. The password-authenticated threshold symmetric key encryption scheme TPaSE consists of five algorithms that satisfy consistency, TPaSE = (PG, Reg, KG, Enc, Dec).
[0112] is a randomized parameter generation algorithm. is the security parameter, the total number of key servers is n, the threshold is t(≤n), and the password space is As input, output n keys and public parameters pp. n key servers are connected via express. Accept sk i and initialize a collection Where i∈[n]. This scheme assumes that the following algorithms implicitly convert the public parameter pp and the security parameter as additional input.
[0113] Represents a user registration algorithm, user The algorithm inputs the user identity identifier uid and the user password pwd, and outputs a key server-specific User authentication information and stored on the key server On, where i∈[n].
[0114] represents a threshold key generation algorithm for password authentication, user Commitment com using user identifier uid, user password pwd and plaintext m m As input, it outputs a plaintext m and a user-specific key k. This process requires a set of key servers Use key shares i and key server-specific user authentication information REC i,uid If the algorithm is executed successfully, the key k is output; otherwise, ⊥ is output to indicate termination.
[0115] Enc(k,m,r m ,com m)→c / ⊥.Enc represents an encryption algorithm. User Use the key k to parse the plaintext m and the random value r m Encryption is performed, and the encrypted ciphertext and plaintext m are committed to com m Together they form the final ciphertext c. If the encryption is successful, the ciphertext c is output; otherwise, ⊥ is output to indicate that the encryption failed.
[0116] Dec(k,c)→m / ⊥.Dec represents a decryption algorithm, user Parse ciphertext c into commitment com of plaintext m m and ciphertext e, use key k to decrypt ciphertext e, and get plaintext m′ and random value r after decryption m′ .user Use commitment com m and a random value r m′ Verify whether the plaintext m′ is correct. If it is correct, output the plaintext m′; otherwise, output ⊥ to indicate decryption failure.
[0117] Threshold consistency: For any Let t≤n, and Output and any message m, any two sets in If all key servers are honest, when user Using user identifier uid and user password pwd to execute the KG protocol, the probability of the following is at least
[0118]
[0119] Next, the security of the TPaSE scheme will be defined. Security consists of three independent properties: correctness, message privacy, and authenticity. First, it is important to note that when a malicious server is involved in the user key generation calculation process, the encryption key or decryption key may be incorrect, resulting in key errors and subsequent encryption or decryption failures. Therefore, it is necessary to ensure the correctness of the encryption key and decryption key. In addition, message privacy prevents the adversary from obtaining information about the plaintext from the ciphertext. Finally, authenticity ensures that a user's ciphertext can only be generated by that user, ensuring that the adversary cannot generate ciphertext belonging to other users.
[0120] Definition 2. TPaSE is secure if TPaSE satisfies correctness (Definition 3 ), message privacy (definition 4 ) and authenticity (definition 5 ) requirement, then TPaSE is safe.
[0121] After Enc successfully generates the ciphertext c for the given plaintext m, when executed with c as the input, Dec outputs the original plaintext m or ⊥
[0122] Definition 3. If for all probabilistic polynomial-time adversaries there exists a negligible function negl such that the probability that the subsequent game outputs 1 is at least then a TPaSE scheme TP := (PG, Reg, KG, Enc, Dec) is correct.
[0123] Initialization. Run to obtain the adversary obtains the public parameters pp.
[0124] Corruption. Obtain a set of corrupted parties C from the adversary where |C| < t. Send the secret keys {sk i} i∈C to the adversary
[0125] Key Generation. The adversary obtains where the user inputs the user identifier uid, the blinded value x of the user password pwd the commitment com of the message m m and the set runs the key generation algorithm KG. If the user outputs ⊥ in the final output, then output 1 and abort. Otherwise, let k be the encryption key or decryption key output.
[0126] Encryption. The user inputs the key k, the message m, the random value r m the commitment com of the message m m and the set runs the encryption algorithm Enc. If the user outputs ⊥ in the final output, then output 1 and abort. Otherwise, output c as the ciphertext.
[0127] Decryption. The user inputs the key k, the ciphertext c and the set where only when the user outputs the message m or ⊥, output 1.
[0128] In the message privacy game, this scheme allows two types of queries: First, the adversary selects a plaintext and requests the user to encrypt it, and the user returns the corresponding ciphertext to the adversary. Second, the user decrypts any ciphertext selected by the adversary without revealing the content of the decrypted message. To make the definition stronger, in the first type of query, the ciphertext output by the user is provided to the adversary. In the second type of query, the user should not disclose the content of the decrypted message.
[0129] Definition 4. If for all adversaries running in probabilistic polynomial time there exists a negligible function negl such that the following holds then a TPaSE scheme TP := (PG, Reg, KG, Enc, Dec) satisfies message privacy. The definition is as follows:
[0130]
[0131] Initialization. Run to obtain the adversary and get the public parameters pp.
[0132] Corruption. Obtain a set of corrupted parties C from the adversary where |C| < t. Send the secret keys {sk i} i∈C to the adversary
[0133] Pre-challenge encryption query. To respond to the encryption request from the adversary where the user inputs the key k, the message m, the random value r m , the commitment com of the message m m and the set Run the encryption algorithm Enc and provide the output ciphertext c to the adversary The number of times this step is repeated is determined by the adversary .
[0134] Pre-challenge decryption query. To respond to the decryption request from the adversary where the user inputs the key k, the ciphertext c and the set Run the decryption algorithm Dec. The number of times this step is repeated is determined by the adversary .
[0135] Challenge. The adversary outputs where |m0| = |m1|, Run from the user Input k, m b , and of the Enc algorithm. The user Outputs c or ⊥ as a challenge to the adversary
[0136] Encryption queries after the challenge. Repeat the encryption queries before the challenge.
[0137] Decryption queries after the challenge. Repeat the decryption queries before the challenge
[0138] Guess. Finally, the adversary Outputs a guess b'.
[0139] In the definition of authenticity, the adversary Has a certain number of ciphertexts belonging to the user. The variable k captures the adversary The number of ciphertexts owned, while the variable L ctext Represents the set of recorded ciphertexts.
[0140] Definition 5. If for all adversaries of polynomial time in probability There exists a negligible function negl such that the following is satisfied Then a TPaSE scheme TP := (PG, Reg, KG, Enc, Dec) is message-authenticity satisfying. The definition is as follows:
[0141] Initialization. Run Get The adversary Gets the public parameters pp. Initialize a counter and a set For each query in this definition, assume
[0142] Corruption. Obtain a set of corrupted sets C from the adversary where |C| < t. Send the secret keys {sk i} i∈C To the adversary The adversary Gets k ciphertexts of the user stored on the cloud server and records them in the set L ctext .
[0143] Forgery. The adversary Outputs a set of ciphertexts (c1, c2,..., c k+1 ) where for any u ≠ v ∈ [k + 1], c u ≠ cv (The ciphertext is not repeated). For i∈[k+1], the user enters the key k and the ciphertext c i and collection Run the decryption algorithm Dec, where All servers in the are honest. If the user If ⊥ is output in any Dec, then output 0; otherwise, output 1.
[0144] like Figure 2 As shown, an embodiment of the present invention provides a client key management system based on threshold password authentication, including:
[0145] Initialization module: used to globally initialize the user client and key service period;
[0146] User registration module: used for users to register with the key server through user identifiers and user passwords;
[0147] Share generation module: used for users to upload files, send user identifiers and user passwords to the key server, calculate user authentication information shares and file encryption key shares based on the file and send them to the user;
[0148] Encryption module: used for users to obtain user authentication information based on user authentication information shares, obtain file encryption keys based on file encryption key shares, encrypt files using file encryption keys to obtain file ciphertexts, generate file indexes based on files, and upload file indexes and file ciphertexts to the cloud server;
[0149] Decryption module: used for users to download files. Users download the file ciphertext of the corresponding file from the cloud storage server through the file index, obtain the decryption key based on the user's user identifier and user password, and use the decryption key to decrypt the file ciphertext to obtain the file.
[0150] A terminal device is provided in one embodiment of the present invention. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0151] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.
[0152] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0153] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0154] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.
[0155] If the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0156] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments and application fields, and the above-mentioned specific embodiments are only illustrative and instructive, rather than restrictive. Under the guidance of the specification, a person skilled in the art can also make many forms without departing from the scope of protection of the claims of the present invention, all of which belong to the scope of protection of the present invention.
Claims
1. A client key management method based on threshold password authentication, characterized in that: include: Globally initialize the user client and key service period; The user registers with the key server using the user identifier and user password, and the key server stores the user's authentication information share; The user logs in, sends the plain text commitment of the file, the current user's identifier and the user password to a threshold number of key servers, calculates the file encryption key share, encrypts the file encryption key share with the user authentication information share and sends it to the user; The user performs identity authentication. If the user is the one uploading the file, the file encryption key is obtained based on the file encryption key share, and the file is encrypted using the file encryption key to obtain the file ciphertext. At the same time, a file index is generated based on the file, and the file index and file ciphertext are uploaded to the cloud server; The user logs in and downloads the file ciphertext of the corresponding file from the cloud storage server through the file index. The user performs identity authentication. When the user who uploaded the file obtains the decryption key based on the user's user identifier and user password, and uses the decryption key to decrypt the file ciphertext to obtain the file.
2. According to claim 1, a client key management method based on threshold password authentication is characterized in that: The steps to globally initialize the user client and key server are as follows: A secret shared master key is randomly generated, and the Shamir secret sharing scheme is executed to calculate the secret shared key share. At the same time, the verified commitment is calculated to verify the encryption and decryption key share. The plaintext commitment scheme is executed to verify the correctness of the decrypted plaintext, and the public parameters of the plaintext commitment scheme are generated. The key server stores the shared key share.
3. A client key management method based on threshold password authentication according to claim 2, characterized in that: When the user decrypts, the file ciphertext is parsed into the plaintext commitment and ciphertext, and the ciphertext is decrypted using the key. After decryption, the plaintext and random value are obtained. The user uses the commitment scheme and random value to verify whether the plaintext is correct. If correct, the plaintext is output, otherwise, the decryption fails.
4. According to the client key management method based on threshold password authentication according to claim 1, it is characterized in that: The steps for a user to register with the key server using a user identifier and user password are as follows: The user calculates the blinded value of the user password, and sends the user identifier and the blinded value of the user password to all key servers; The key server generates an intermediate value of the user identity authentication information based on the blinded value of the user identifier and the user password, and sends it to the user; The user calculates the user authentication information through the Lagrange interpolation polynomial based on the intermediate value of the user authentication information, obtains the user authentication information share specific to the key server based on the user authentication information, and sends all the user authentication information shares specific to the key server to the corresponding key server, and the key server stores the user authentication information shares specific to the key server.
5. A client key management method based on threshold password authentication according to claim 4, characterized in that: The user logs in, sends the plain text commitment of the file, user identifier and user password to the threshold number of key servers, calculates the file encryption key share, and uses the user authentication information share to encrypt the file encryption key share and send it to the user. The specific steps are: The user calculates a blinded value of the user password, and sends the plaintext commitment of the file, the user identifier, and the blinded value of the user password to a threshold number of key servers; The key server checks whether the user authentication information specific to the key server exists. If it does not exist, the output of the key server is an error. Otherwise, the key server calculates the intermediate value of the user authentication information and the file encryption key share, and performs the Eval algorithm of the non-interactive zero-knowledge proof scheme to calculate the value of the intermediate value of the verified user authentication information, and uses the user authentication information share specific to the key server as the key to encrypt the file encryption key share. The key server sends the intermediate value of the user authentication information, the encrypted file encryption key share, and the value of the intermediate value of the verified user authentication information to the user.
6. A client key management method based on threshold password authentication according to claim 5, characterized in that: The file encryption key share is obtained by symmetric encryption based on the user authentication information share.
7. A client key management method based on threshold password authentication according to claim 5, characterized in that: The user performs identity authentication. If the user is the one uploading the file, the steps to obtain the file encryption key based on the file encryption key share are as follows: The user verifies the correctness of the user authentication information share through the Verify algorithm of the non-interactive zero-knowledge proof scheme. If it is correct, proceed to the next step; The user calculates the user authentication information through Lagrange interpolation polynomials, calculates the user identity authentication information specific to the key server, and uses the Dec algorithm of the symmetric key encryption scheme SKE to calculate the file encryption key share using the user identity authentication information specific to the key server as the decryption key; The user verifies the correctness of the file encryption key share, and if it is correct, the user calculates the file encryption key.
8. A client key management system based on threshold password authentication, characterized in that: include: Initialization module: used to globally initialize the user client and key service period; User registration module: used for users to register with the key server through user identifiers and user passwords, and the key server stores user authentication information shares; Share generation module: The user logs in, sends the file, the current user's identifier and the user password to a threshold number of key servers, calculates the file encryption key share, encrypts the file encryption key share with the user authentication information share and sends it to the user; Encryption module: used for user identity authentication. If the user is uploading a file, the file encryption key is obtained based on the file encryption key share, and the file is encrypted using the file encryption key to obtain the file ciphertext. At the same time, a file index is generated based on the file, and the file index and file ciphertext are uploaded to the cloud server. Decryption module: The user logs in and downloads the file ciphertext of the corresponding file from the cloud storage server through the file index. The user performs identity authentication. When the user is the user who uploaded the file, the decryption key is obtained based on the user's user identifier and user password, and the decryption key is used to decrypt the file ciphertext to obtain the file.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the client key management method based on threshold password authentication as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a client key management method based on threshold password authentication as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Key management method based on convergence encryption for use in cloud storage data duplication elimination
CN106100832A
Block chain key hierarchical management method
CN110300112A
Password based threshold token generation
CN112106322A
Password authentication method for preventing password certificate from being leaked
CN113949584A
Encryption and decryption method and device, equipment and medium
CN114900338A
Cited By
SM9 evidence encryption and decryption method, device and system based on signature
CN119966635A
