CPK-based transfer method, user terminal and cloud server

Through the collaborative signature between the user terminal and the cloud server, the inconvenience and high cost of U-Shield dependence are solved, a secure transfer process is realized, the demand for CA services is reduced, and the user experience and key security are improved.

CN111861474BActive Publication Date: 2024-09-13JIN SHANG BO CHUANG BEIJING SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010774072.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-04
Publication Date
2024-09-13
Estimated Expiration
2040-08-04

AI Technical Summary

Technical Problem

In the existing technology, a U-Shield is required to generate a secure digital signature on a mobile phone or PC, resulting in inconvenience and high costs. At the same time, payment methods such as WeChat and Alipay have security risks and high costs caused by CA.

Method used

Using a CPK-based transfer method, the user terminal and the cloud server collaborate to sign, generate signature parameters and obtain collaborative signature data. The biometric password is used to encrypt the private key factor, avoiding the use of U-shield and reducing the demand for CA services.

Benefits of technology

No U-shield or third-party platform is required, which saves costs, improves user experience, improves key security by storing private keys in two parts, and reduces the cost of CA services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111861474B
    Figure CN111861474B
Patent Text Reader

Abstract

The embodiment of the present invention provides a CPK-based transfer method, a user terminal and a cloud server, which belongs to the field of information security technology. The method includes: the user terminal sends a transfer application to the bank gateway; after receiving the verification code, a signature parameter is generated according to a preset signature algorithm and bill data, and the verification code and the signature parameter are sent to the bank gateway, so that the bank gateway forwards the signature parameter to the cloud server, so that the cloud server obtains the collaborative signature data according to the signature parameter and the second private key factor, and the second private key factor is related to the private key corresponding to the payment account and the first private key factor saved by the user terminal; the collaborative signature data generated by the cloud server is received, and a complete signature is obtained according to the collaborative signature data and the first private key factor; the complete signature data is sent to the bank gateway for verification to complete the transfer process. The embodiment of the present invention is applicable to the transfer process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a transfer method based on CPK (Combined Public Key), a user terminal and a cloud server. Background Art

[0002] At present, all banks have developed mobile phone apps and online banking on PCs to realize online transfer payments. When making large transfers through mobile phone apps or online banking on PCs, users are required to use the matching U-Shield. The important role of the U-Shield is to encapsulate the digital signature algorithm and the signature private key in the U-Shield. After the data to be signed is input externally, the U-Shield uses the digital signature algorithm and the signature private key to generate and output the signature. During the entire signing process, the user's signature private key is invisible, that is, it is only called inside the U-Shield and cannot be exported from the U-Shield to ensure the security of the transfer. Although the cost of each U-Shield is only a few dozen yuan, the cost generated by hundreds of millions of users across the country will reach billions or even more than 10 billion yuan. In addition, there is an important prerequisite for the use of the U-Shield, that is, a public key certificate needs to be issued for each U-Shield, and when verifying the signature, the certificate must be obtained before verification can be performed. This forces each bank to establish its own CA (Certificate Authority) or purchase the services of a third-party CA to manage the public key certificates of a large number of users.

[0003] In addition, since large transfers must use the U-Shield provided by the bank, and the U-Shields corresponding to each bank are different, when a user has accounts in multiple banks, he or she must use multiple U-Shields, which is inconvenient to carry.

[0004] In addition, for WeChat, Alipay, Cloud QuickPass and other universal payment technologies across bank platforms, because these payments do not have hardware to protect the user's signature private key, they are not safe, so these payment methods are usually used for small transactions. Although WeChat, Alipay, Cloud QuickPass and others are more convenient to use, in fact, they are only for the payer. For banks, each bank must first connect with companies such as Tencent, Alibaba, and Yinshu, and pay a considerable fee. For the payee, it is also necessary to apply for a QR code for payment, and also pay fees to these backend companies. Therefore, both for banks and payees, there are many inconveniences and additional fees. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a transfer method, user terminal and cloud server based on CPK, which solves the inconvenience and high cost caused by the need for U-Shield to generate a secure digital signature on a mobile phone or PC in the prior art, as well as the security risks of payment methods such as WeChat and Alipay and the high cost caused by CA.

[0006] In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a CPK-based transfer method, which is applied to a user terminal, and the method includes: sending a transfer application to a bank gateway, wherein the transfer application includes bill data; after receiving the verification code sent by the bank gateway, generating signature parameters according to a preset signature algorithm and the bill data, and sending the verification code and signature parameters to the bank gateway so that the bank gateway verifies the verification code, and forwards the signature parameters to a cloud server so that the cloud server obtains collaborative signature data according to the signature parameters and a second private key factor, wherein the second private key factor is related to the private key corresponding to the payment account in the bill data and the first private key factor saved by the user terminal; receiving the collaborative signature data generated by the cloud server, and obtaining a complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor; sending the complete signature data to the bank gateway for verification, so that the bank gateway completes the transfer process after verifying the complete signature using the public key corresponding to the payment account, wherein the complete signature data includes the complete signature.

[0007] Furthermore, the method also includes: encrypting the first private key factor using a biometric password to obtain first private key factor encrypted data, the biometric password including a user's biometric features; when calling the first private key factor, decrypting the first private key factor encrypted data using the biometric password to obtain the first private key factor.

[0008] Furthermore, the generation of signature parameters according to the preset signature algorithm and the bill data includes: obtaining a digital summary corresponding to the hash value of the bill data according to the SM2 algorithm and the hash value of the bill data; randomly generating a first random number and a second random number, and obtaining a first intermediate variable according to the first random number; and using the second random number, the first intermediate variable and the digital summary as the signature parameters.

[0009] Further, the obtaining of a digital summary corresponding to the hash value of the bill data according to the SM2 algorithm and the hash value of the bill data includes: Get the concatenated value of the hash value of the bill data Among them, || represents concatenation, M is the hash value of the bill data, and Z Ais a hash value of the identifiable identifier of the payment account, part of the elliptic curve system parameters and the public key of the payment account; Get the digital summary e corresponding to the hash value of the bill data, H v () represents a cryptographic hash function with a predetermined message digest length of v bits.

[0010] Further, obtaining the first intermediate variable according to the first random number includes: obtaining the first intermediate variable W1 according to W1=b1·G, wherein b1 is the first random number, G is the base point of order n on the elliptic curve E, and · represents the doubling operation of the elliptic curve E.

[0011] Further, obtaining the complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor includes: obtaining the complete signature s corresponding to the bill data according to s=(d1×b1×s1+d1×s2-r)modn, wherein, d x is the first private key factor, b1 is the first random number, s1 is the first signature component in the collaborative signature data, s2 is the second signature component in the collaborative signature data, and r is the signature variable in the collaborative signature data.

[0012] Furthermore, when the collaborative signature data is data encrypted by a temporary key generated by the cloud server according to the verification code, the method also includes: obtaining a temporary key according to the SM3 algorithm and the verification code; using the temporary key to decrypt the collaborative signature data to obtain the first signature component, the second signature component and the signature variable in the collaborative signature data.

[0013] The second aspect of the present invention provides a CPK-based transfer method, which is applied to a cloud server and includes: receiving signature parameters forwarded by a bank gateway, wherein the signature parameters are parameters generated by a user terminal according to a preset signature algorithm and bill data, including a second random number, a first intermediate variable and a digital summary, and the bill data is the bill data mentioned when the user terminal executes a transfer application; obtaining collaborative signature data according to the signature parameters and a second private key factor, wherein the second private key factor is related to a private key corresponding to a payment account in the bill data and a first private key factor saved by the user terminal; sending the collaborative signature data to the user terminal so that the user terminal obtains a complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor, and sending the complete signature data to the bank gateway for verification and completing the transfer process, wherein the complete signature data includes the complete signature.

[0014] Furthermore, obtaining the collaborative signature data according to the signature parameters and the second private key factor includes: randomly generating a third random number and a fourth random number, and obtaining an elliptic curve point according to the second random number, the first intermediate variable, the third random number and the fourth random number; obtaining a signature variable according to the elliptic curve point and the digital summary; obtaining a first signature component and a second signature component according to the second private key factor, the signature variable, the second random number, the third random number and the fourth random number; and using the signature variable, the first signature component and the second signature component as the collaborative signature data.

[0015] Further, obtaining an elliptic curve point according to the second random number, the first intermediate variable, the third random number and the fourth random number comprises: according to (W x ,W y )=k2·W1+b2×k1·G, and we get the elliptic curve point (W x ,W y ), where k1 is the second random number, b2 is the third random number, k2 is the fourth random number, W1 is the first intermediate variable, G is the base point of order n on the elliptic curve E, and · represents the doubling operation of the elliptic curve E.

[0016] Further, the obtaining of the signature variable according to the elliptic curve point and the digital summary comprises: according to r=(e+W x )modn, and obtain the pending signature variable r, where e is the digital summary, W x is the x-coordinate value of the elliptic curve point; determining whether the pending signature variable is equal to zero; if the pending signature variable is equal to zero, re-randomly generating a third random number and a fourth random number; if the pending signature variable is not equal to zero, determining the pending signature variable as the signature variable.

[0017] Further, obtaining the first signature component and the second signature component according to the second private key factor, the signature variable, the second random number, the third random number and the fourth random number includes: obtaining the first signature component s1 according to s1=(d2×k2)modn, wherein k2 is the fourth random number, The second private key factor d y According to s2 = [d2 × (r + k1 × b2)] modn, the second signature component s2 is obtained, where k1 is the second random number, b2 is the third random number, The second private key factor d y The inverse element of , r is the signature variable.

[0018] Furthermore, sending the collaborative signature data to the user terminal includes: receiving a verification code sent by the bank gateway, the verification code being the same as the verification code sent by the bank gateway to the user terminal; obtaining a temporary key based on the SM3 algorithm and the verification code; encrypting the collaborative signature data using the temporary key to obtain encrypted collaborative signature data, and sending the encrypted collaborative signature data to the user terminal.

[0019] A third aspect of the present invention provides a user terminal, which is used to execute the CPK-based transfer method applied to the user terminal as described above.

[0020] A fourth aspect of the present invention provides a cloud server, which is used to execute the CPK-based transfer method applied to the cloud server as described above.

[0021] Through the embodiment of the present invention, when a user transfers money, the technology of collaborative signature between the user terminal and the cloud server is adopted, the signature parameters are generated by the user terminal respectively, and then the collaborative signature data is generated by the cloud server. After that, the user terminal generates a complete signature using the signature parameters and the collaborative signature data for verification by the bank gateway. The embodiment of the present invention solves the problem of not needing U-Shield or third-party platforms (for example, WeChat, Alipay, Cloud QuickPass, etc.) when transferring money, saving costs and improving user experience, and dividing the private key corresponding to the payment account into two parts, which are stored in the user terminal and the cloud server respectively, to ensure the security of the key. In addition, the embodiment of the present invention uses CPK technology, does not require CA services, and further solves the cost problem.

[0022] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0024] Figure 1 It is a flow chart of a CPK-based transfer method provided by an embodiment of the present invention;

[0025] Figure 2 It is a flowchart of another CPK-based transfer method provided by an embodiment of the present invention;

[0026] Figure 3 It is a flowchart of another CPK-based transfer method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0028] In view of the shortcomings of mobile phone online banking and PC online banking payment technology in the related technology: when U-shield is not used, the user's account security cannot be guaranteed. When U-shield is used, since each bank has a corresponding U-shield to match it, the user needs to have U-shields of multiple banks, which causes inconvenience to the user and also causes the problem of high cost overall. Moreover, whether U-shield is used or not, the user needs to digitally sign the bill as a legal basis, so public key technology must be used, and the authenticity of the user's public key must be guaranteed. The current technology is to issue a certificate through CA to ensure the authenticity of the user's public key. Whether the bank builds its own CA or purchases the services of a third-party CA, it will incur high costs. In the embodiment of the present application, using CPK technology, there is no need to issue certificates to users, and there is no need to store all users' certificates, or use a dedicated certificate server, so there is no need for CA to provide related services. When verifying the signature, it is only necessary to obtain the corresponding public key through the public key matrix and the user identification at the bank gateway to ensure the authenticity of the user's public key.

[0029] In addition, regarding the problem that U-Shield must be used for transfers, in the embodiment of the present application, part of the signature private key - the first private key factor is stored in the user terminal, and another part of the signature private key - the second private key factor is stored in the cloud server, thereby ensuring the security of the user's signature private key.

[0030] Secondly, for the general payment technologies that use cross-bank platforms such as WeChat, Alipay, and Cloud QuickPass in the relevant technologies, since in this application the payer can transfer money to the payee through the bank without going through a third party, neither the bank nor the payee needs to pay additional fees to the third-party platform.

[0031] The embodiments of the present application will be described in detail below. Figure 1 FIG. 1 is a flow chart of a CPK-based transfer method provided by an embodiment of the present invention. Figure 1 As shown, the method is applied to a user terminal, the user terminal includes a mobile terminal and a PC terminal, and the method includes the following steps:

[0032] Step 101, sending a transfer application to a bank gateway, wherein the transfer application includes bill data;

[0033] Step 102, after receiving the verification code sent by the bank gateway, generating signature parameters according to a preset signature algorithm and the bill data, and sending the verification code and the signature parameters to the bank gateway so that the bank gateway verifies the verification code, and forwarding the signature parameters to the cloud server so that the cloud server obtains collaborative signature data according to the signature parameters and the second private key factor, where the second private key factor is related to the private key corresponding to the payment account in the bill data and the first private key factor stored in the user terminal;

[0034] Step 103, receiving the collaborative signature data generated by the cloud server, and obtaining a complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor;

[0035] Step 104, sending the complete signature data to the bank gateway for verification, so that the bank gateway verifies the complete signature using the public key corresponding to the payment account and completes the transfer process. The complete signature data includes the complete signature.

[0036] In order to ensure the security of the private key corresponding to the payment account, a first private key factor and a second private key factor related to the private key corresponding to the payment account can be generated in advance, and the two can be stored in the user terminal of the payment account and the cloud server respectively for digital signature during the transfer process.

[0037] The generation of the first private key factor and the second private key factor may refer to the following method:

[0038] The user terminal randomly generates a first private key factor and sends a key application message to a key management center (KMC), wherein the key application message includes a key identifier corresponding to the payment account and the first private key factor, so that the key management center obtains the private key corresponding to the key identifier according to a key generation rule, and obtains the second private key factor according to the private key corresponding to the key identifier and the first private key factor.

[0039] Among them, the user terminal randomly generates the first private key factor d x , and d x∈[1,n-1]. Then the user terminal sends the key identifier of the pre-application key and the first private key factor to the key management center. The key management center can obtain the key pair corresponding to the key identifier according to the key generation rule, that is, the public key D and the private key d. The key generation rule includes the CPK rule and the PKI (Public Key Infrastructure) rule. With reference to the CPK rule or PKI rule in the prior art, a key pair corresponding to the key identifier is generated, and the key pair is bound to the key identifier for subsequent use.

[0040] After obtaining the private key corresponding to the key identifier and the first private key factor, the key management center Get the second private key factor d y , where d is the private key corresponding to the key identifier, d x is the first private key factor. In addition, it should be noted that if Then the private key d can be expressed as d = (d1 × d2) -1 -1, it can be seen that the private key d is split into d x and d y Afterwards, the key management center sends the second private key factor associated with the private key corresponding to the payment account to the cloud server so that the server-side encrypts and stores the second private key factor.

[0041] The user terminal can use the biometric password to encrypt the first private key factor for the storage of the private key corresponding to the payment account to obtain the first private key factor encrypted data, and the biometric password includes the user's biological characteristics, such as the user's fingerprint, face, iris, etc. When the first private key factor needs to be called later, the biometric password is used to decrypt the first private key factor encrypted data to obtain the first private key factor, thereby further ensuring the security of the first private key factor.

[0042] When a payment account needs to transfer money to a receiving account, the user terminal where the payment account is located can send a transfer application to the bank gateway, and the transfer application includes billing data. Among them, the transfer application is the same as the transfer application in the prior art. For example, the billing data includes the payment account and its account number, the receiving account and its account number, currency, amount and other transaction information. Optionally, the transfer application may also include a security prompt to indicate the verification method of this transfer application, such as whether it is through U-Shield verification or private key signature verification. In an embodiment of the present invention, since a private key is used for signature verification, the security prompt may indicate that this transfer application is a private key signature verification, and the specific form of the prompt may not be limited.

[0043] After receiving the transfer application, the bank gateway may refer to the verification technology of the bank gateway for the user application in the prior art. This technology is not the focus of the description of this application and will not be repeated here. After receiving the transfer application, the bank gateway sends the verification code to the user terminal. Among them, the form of the verification code can be set with reference to the size of the transfer amount. For example, when the transfer amount is greater than a certain amount, it can be combined with the network verification code and the mobile phone SMS verification code, such as displaying the picture verification information in the mobile phone APP, and sending the SMS verification code to the mobile phone related to the payment account, so that the user enters the relevant verification information to complete the verification. If the transfer amount is less than a certain amount, only the mobile phone SMS verification code can be sent.

[0044] After receiving the verification code, the user terminal may generate signature parameters according to a preset signature algorithm and the bill data.

[0045] Among them, according to the SM2 algorithm and the hash value of the bill data, a digital summary corresponding to the hash value of the bill data is obtained, and then a first random number and a second random number are randomly generated, and a first intermediate variable is obtained according to the first random number, and finally the second random number, the first intermediate variable and the digital summary are used as the signature parameters.

[0046] Since the bill data is too long, the bill data may be hashed to obtain a hash value, and then the hash value may be processed. Get the concatenated value of the hash value of the bill data Among them, || represents concatenation, M is the hash value of the bill data, and Z A is a hash value of the identifiable identifier of the payment account, part of the elliptic curve system parameters and the public key of the payment account, and then according to Get the digital summary e corresponding to the hash value of the bill data, H v () represents a cryptographic hash function with a predetermined message digest length of v bits. Then, according to W1=b1·G, the first intermediate variable W1 is obtained, where b1 is the first random number, G is the base point of order n on the elliptic curve E, and · represents the doubling operation of the elliptic curve E. Finally, the second random number k1, the first intermediate variable W1 and the digital summary e are used as the signature parameters.

[0047] When the user terminal sends the verification code to the bank gateway, the signature parameters are sent to the bank gateway together. After the bank gateway verifies the verification code (refer to the existing related technology), the bank gateway forwards the signature data to the cloud server so that the cloud server obtains the collaborative signature data according to the signature data and the second private key factor.

[0048] After the user terminal receives the collaborative signature data generated by the cloud server forwarded by the bank gateway, the complete signature corresponding to the bill data can be obtained according to the collaborative signature data and the first private key factor. Specifically, according to s=(d1×b1×s1+d1×s2-r)modn, the complete signature s corresponding to the bill data is obtained, where: d x is the first private key factor, b1 is the first random number, s1 is the first signature component in the collaborative signature data, s2 is the second signature component in the collaborative signature data, and r is the signature variable in the collaborative signature data.

[0049] Optionally, when the collaborative signature data is data encrypted by a temporary key generated by the cloud server according to the verification code, after receiving the collaborative data, the user terminal may obtain a temporary key according to the SM3 algorithm and the verification code, that is, k CU =SM3(N U ), where k CU is the temporary key, N U is the verification code, when the verification code includes the network verification code N U1 and SMS verification code N U2 When , the temporary key is k CU =SM3(N U1 ||N U2 ). Then, the collaborative signature data is decrypted using the temporary key to obtain the first signature component, the second signature component and the signature variable in the collaborative signature data. The encrypted transmission of the collaborative signature data can further ensure that only the correct user terminal can obtain the collaborative signature data, and thus only the correct user terminal can complete the complete signature.

[0050] When the user terminal sends the complete signature data including the complete signature to the bank gateway for verification, the bank gateway can use the payment account and the public key matrix to obtain the public key corresponding to the payment account, and use the public key to verify the complete signature. If the verification is true, the transfer process is completed. The complete signature data may also include the hash value of the bill data so that it can be calculated during the verification process. The verification process can refer to the public key verification process in the CPK technology, which will not be repeated here.

[0051] Correspondingly, Figure 2 FIG. 1 is a flow chart of a CPK-based transfer method provided by an embodiment of the present invention. Figure 2As shown, the method is applied to a cloud server, for example, a Loongson server 3B4000, and the cloud server may have built-in SM2, 3, and 4 algorithms, and before generating signature data, it is necessary to receive each payment account and its corresponding second private key factor from the key management center, and use the private key of the cloud server to encrypt the second private key factor corresponding to each payment account using the SM4 algorithm, thereby storing each payment account and its corresponding encrypted second private key factor, and when the second private key factor corresponding to the payment account is to be called, it is decrypted using the private key of the cloud server. The method in the embodiment of the present invention includes the following steps:

[0052] Step 201, receiving signature parameters forwarded by the bank gateway, wherein the signature parameters are parameters generated by the user terminal according to a preset signature algorithm and bill data, including a second random number, a first intermediate variable and a digital summary, and the bill data are the bill data mentioned when the user terminal executes the transfer application;

[0053] Step 202, obtaining collaborative signature data according to the signature parameter and a second private key factor, wherein the second private key factor is related to a private key corresponding to a payment account in the bill data and a first private key factor stored in the user terminal;

[0054] Step 203, sending the collaborative signature data to the user terminal so that the user terminal can obtain the complete signature corresponding to the bill data based on the collaborative signature data and the first private key factor, and send the complete signature data to the bank gateway for verification and complete the transfer process. The complete signature data includes the complete signature.

[0055] Among them, after receiving the signature parameters sent by the user terminal and forwarded by the bank gateway, the cloud server obtains the collaborative signature data according to the signature parameters and the second private key factor.

[0056] Specifically, a third random number and a fourth random number are randomly generated, and an elliptic curve point is obtained according to the second random number, the first intermediate variable, the third random number and the fourth random number. For example, according to (W x ,W y )=k2·W1+b2×k1·G, and we get the elliptic curve point (W x ,W y ), where k1 is the second random number, b2 is the third random number, k2 is the fourth random number, W1 is the first intermediate variable, G is the base point of order n on the elliptic curve E, and · represents the doubling operation of the elliptic curve E.

[0057] Then, according to the elliptic curve point and the digital summary, the signature variable is obtained, that is, according to r=(e+W x)modn, and obtain the pending signature variable r, where e is the digital summary, W x is the x-coordinate value of the elliptic curve point. Afterwards, it is determined whether the pending signature variable is equal to zero. If the pending signature variable is equal to zero, a third random number and a fourth random number are randomly generated again, and an elliptic curve point is obtained again according to the second random number, the first intermediate variable, the third random number and the fourth random number, and then a signature variable is obtained according to the elliptic curve point and the digital summary, and it is determined again whether the pending signature variable is equal to zero, until the pending signature variable is not equal to zero. If the pending signature variable is not equal to zero, the pending signature variable is determined as the signature variable.

[0058] Afterwards, the first signature component and the second signature component are obtained according to the second private key factor, the signature variable, the second random number, the third random number and the fourth random number. That is, according to s1=(d2×k2)modn, the first signature component s1 is obtained, where k2 is the fourth random number, The second private key factor d y Then, according to s2=[d2×(r+k1×b2)]modn, the second signature component s2 is obtained, where k1 is the second random number, b2 is the third random number, The second private key factor d y The inverse element of , r is the signature variable.

[0059] Finally, the signature variable, the first signature component and the second signature component are used as the collaborative signature data.

[0060] After obtaining the collaborative signature data, the collaborative signature data is sent to the user terminal via the bank gateway. The user terminal obtains the complete signature corresponding to the bill data based on the collaborative signature data and the first private key factor, and sends the complete signature data including the complete signature to the bank gateway for verification and completion of the transfer process.

[0061] In addition, optionally, when the collaborative signature data is sent to the user terminal, a verification code sent by the bank gateway may be received, and the verification code is the same as the verification code sent by the bank gateway to the user terminal. Then, according to the SM3 algorithm and the verification code, a temporary key, i.e., k CU =SM3(N U ), where k CU is the temporary key, N U is the verification code, when the verification code includes the network verification code N U1 and SMS verification code N U2 When , the temporary key is kCU =SM3(N U1 ||N U2 ). Afterwards, the collaborative signature data is encrypted using the temporary key to obtain the encrypted collaborative signature data, and the encrypted collaborative signature data is sent to the user terminal, ensuring that only the user terminal that receives the same verification code can decrypt the collaborative signature data, thereby improving the security of the collaborative signature data.

[0062] In order to further understand the embodiments of the present invention, Figure 3 Schematic diagram of the transfer process between the user terminal, bank gateway and cloud server provided by the embodiment of the present invention. Figure 3 As shown, the following steps are included:

[0063] Step 301: The user terminal sends a transfer application to a bank gateway, wherein the transfer application includes bill data;

[0064] Step 302: the bank gateway sends a verification code to the user terminal;

[0065] Step 303: The user terminal receives the verification code and generates signature parameters according to a preset signature algorithm and the bill data;

[0066] Step 304: the user terminal sends a verification code and signature parameters to the bank gateway;

[0067] Step 305, the bank gateway verifies the verification code and forwards the verification code and signature parameters to the cloud server;

[0068] Step 306: The cloud server receives the verification code and signature parameters, and obtains collaborative signature data according to the signature parameters and the second private key factor;

[0069] Step 307: The cloud server obtains a temporary key according to the SM3 algorithm and the verification code, and uses the temporary key to encrypt the collaborative signature data to obtain encrypted collaborative signature data;

[0070] Step 308, the cloud server sends the encrypted collaborative signature data to the user terminal via the bank gateway;

[0071] Step 309: The user terminal receives the encrypted collaborative signature data;

[0072] Step 310: The user terminal obtains a temporary key according to the SM3 algorithm and the verification code, and uses the temporary key to decrypt the collaborative signature data to obtain the collaborative signature data;

[0073] Step 311, obtaining a complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor;

[0074] Step 312, the user terminal sends the complete signature data including the complete signature to the bank gateway;

[0075] Step 313: After the bank gateway verifies the complete signature using the public key corresponding to the payment account, the transfer process is completed.

[0076] Through the embodiment of the present invention, when transferring money, whether it is a large amount transfer or a small amount transfer, U-shield or a third-party platform (for example, WeChat, Alipay, Cloud QuickPass, etc.) is not required, which saves costs and improves user experience. In addition, the private key corresponding to the payment account is divided into two parts, which are stored in the user terminal and the cloud server respectively, ensuring the security of the key. In addition, the embodiment of the present invention uses CPK technology, without the need for CA services, further solving the cost problem.

[0077] Correspondingly, an embodiment of the present invention further provides a user terminal, which is used to execute the CPK-based transfer method applied to the user terminal as described in the above embodiment.

[0078] Correspondingly, an embodiment of the present invention further provides a cloud server, which is used to execute the CPK-based transfer method applied to the cloud server as described in the above embodiment.

[0079] Correspondingly, an embodiment of the present invention also provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the CPK-based transfer method applied to the user terminal as described in the above embodiment, and / or the CPK-based transfer method applied to the cloud server as described in the above embodiment.

[0080] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0081] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0084] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0085] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0086] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0088] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A CPK-based transfer method, characterized in that: The method is applied to a user terminal, and the method comprises: Sending a transfer application to a bank gateway, wherein the transfer application includes bill data; After receiving the verification code sent by the bank gateway, generating signature parameters according to a preset signature algorithm and the bill data, and sending the verification code and the signature parameters to the bank gateway so that the bank gateway can verify the verification code, and forwarding the signature parameters to the cloud server so that the cloud server can obtain collaborative signature data according to the signature parameters and the second private key factor, where the second private key factor is related to the private key corresponding to the payment account in the bill data and the first private key factor stored in the user terminal; Receiving the collaborative signature data generated by the cloud server, and obtaining a complete signature corresponding to the bill data based on the collaborative signature data and the first private key factor; Sending the complete signature data to the bank gateway for verification, so that the bank gateway completes the transfer process after verifying the complete signature using the public key corresponding to the payment account, wherein the complete signature data includes the complete signature; The generating of signature parameters according to the preset signature algorithm and the bill data comprises: According to the SM2 algorithm and the hash value of the bill data, a digital summary corresponding to the hash value of the bill data is obtained; Randomly generate a first random number and a second random number, and obtain a first intermediate variable according to the first random number; Using the second random number, the first intermediate variable and the digital summary as the signature parameters; The obtaining, according to the collaborative signature data and the first private key factor, a complete signature corresponding to the bill data includes: According to s=(d1×b1×s1+d1×s2-r)modn, the complete signature s corresponding to the bill data is obtained, where: d x is the first private key factor, b1 is the first random number, s1 is the first signature component in the collaborative signature data, s2 is the second signature component in the collaborative signature data, and r is the signature variable in the collaborative signature data.

2. The CPK-based transfer method according to claim 1, characterized in that: The method further comprises: Encrypting the first private key factor by using a biometric password to obtain first private key factor encrypted data, wherein the biometric password includes a user's biometric feature; When the first private key factor is called, the encrypted data of the first private key factor is decrypted using the biometric password to obtain the first private key factor.

3. The CPK-based transfer method according to claim 1, characterized in that: The step of obtaining a digital summary corresponding to the hash value of the bill data according to the SM2 algorithm and the hash value of the bill data includes: according to Get the concatenated value of the hash value of the bill data Among them, || represents concatenation, M is the hash value of the bill data, and Z A is a hash value of the identifiable identifier of the payment account, part of the elliptic curve system parameters and the public key of the payment account; according to Get the digital summary e corresponding to the hash value of the bill data, H v () represents a cryptographic hash function with a predetermined message digest length of v bits.

4. The CPK-based transfer method according to claim 1, characterized in that: The obtaining of a first intermediate variable according to the first random number comprises: According to W1=b1·G, the first intermediate variable W1 is obtained, wherein b1 is the first random number, G is the base point of order n on the elliptic curve E, and · represents the doubling operation of the elliptic curve E.

5. The CPK-based transfer method according to claim 1, characterized in that: When the collaborative signature data is data encrypted by a temporary key generated by the cloud server according to the verification code, the method further includes: Obtain a temporary key according to the SM3 algorithm and the verification code; The collaborative signature data is decrypted using the temporary key to obtain the first signature component, the second signature component and the signature variable in the collaborative signature data.

6. A CPK-based transfer method, characterized in that: The method is applied to a cloud server, and the method includes: Receive signature parameters forwarded by the bank gateway, where the signature parameters are parameters generated by the user terminal according to a preset signature algorithm and bill data, including a second random number, a first intermediate variable, and a digital summary, and the bill data is the bill data mentioned when the user terminal executes a transfer application; Obtain collaborative signature data according to the signature parameter and a second private key factor, where the second private key factor is related to a private key corresponding to a payment account in the bill data and a first private key factor stored in the user terminal; Sending the collaborative signature data to the user terminal so that the user terminal obtains the complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor, and sends the complete signature data to the bank gateway for verification and completion of the transfer process, wherein the complete signature data includes the complete signature; The parameters generated by the user terminal according to the preset signature algorithm and the bill data also include a first random number; The user terminal obtains the complete signature corresponding to the bill data according to the collaborative signature data and the first private key factor, including: According to s=(d1×b1×s1+d1×s2-r)modn, the complete signature s corresponding to the bill data is obtained, where: d x is the first private key factor, b1 is the first random number, s1 is the first signature component in the collaborative signature data, s2 is the second signature component in the collaborative signature data, and r is the signature variable in the collaborative signature data.

7. The CPK-based transfer method according to claim 6, characterized in that: The obtaining of collaborative signature data according to the signature parameter and the second private key factor comprises: Randomly generate a third random number and a fourth random number, and obtain an elliptic curve point according to the second random number, the first intermediate variable, the third random number and the fourth random number; Obtaining a signature variable according to the elliptic curve point and the digital summary; Obtaining a first signature component and a second signature component according to the second private key factor, a signature variable, a second random number, a third random number, and a fourth random number; The signature variable, the first signature component and the second signature component are used as the collaborative signature data.

8. The CPK-based transfer method according to claim 7, characterized in that: The obtaining of an elliptic curve point according to the second random number, the first intermediate variable, the third random number and the fourth random number comprises: According to (W x ,W y )=k2·W1+b2×k1·G, and we get the elliptic curve point (W x ,W y ), where k1 is the second random number, b2 is the third random number, k2 is the fourth random number, W1 is the first intermediate variable, G is the base point of order n on the elliptic curve E, and · represents the doubling operation of the elliptic curve E.

9. The CPK-based transfer method according to claim 7, characterized in that: The obtaining of the signature variable according to the elliptic curve point and the digital summary comprises: According to r=(e+W x )modn, and obtain the pending signature variable r, where e is the digital summary, W x is the x-coordinate value of the elliptic curve point; Determine whether the pending signature variable is equal to zero; If the pending signature variable is equal to zero, re-randomly generate a third random number and a fourth random number; If the pending signature variable is not equal to zero, the pending signature variable is determined as the signature variable.

10. The CPK-based transfer method according to claim 7, characterized in that: The obtaining the first signature component and the second signature component according to the second private key factor, the signature variable, the second random number, the third random number and the fourth random number comprises: According to s1=(d2×k2)modn, the first signature component s1 is obtained, wherein k2 is a fourth random number, The second private key factor d y The inverse element of According to s2=[d2×(r+k1×b2)]modn, the second signature component s2 is obtained, wherein k1 is the second random number, b2 is the third random number, The second private key factor d y The inverse element of , r is the signature variable.

11. The CPK-based transfer method according to claim 6, characterized in that: The sending the collaborative signature data to the user terminal comprises: receiving a verification code sent by the bank gateway, wherein the verification code is the same as the verification code sent by the bank gateway to the user terminal; Obtain a temporary key according to the SM3 algorithm and the verification code; The collaborative signature data is encrypted using the temporary key to obtain the encrypted collaborative signature data, and the encrypted collaborative signature data is sent to the user terminal.

12. A user terminal, characterized in that: The user terminal is used to execute the CPK-based transfer method described in any one of claims 1 to 5 above.

13. A cloud server, characterized in that: The cloud server is used to execute the CPK-based transfer method described in any one of claims 6 to 11 above.