Bank Internet of Things platform key generation method, device, electronic equipment and medium
By generating private key and public key matrices based on elliptic curve parameters in the bank's IoT platform, and using random coefficient values to perform calculations to generate complex combined keys, the problem of low security of the private key matrix is solved and the detection of collusion is improved. The ability to resist attacks and the security of the authentication system.
Patent Information
- Application Number
- CN202210330879.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-03-30
AI Technical Summary
In the existing technology, the private key matrix of the bank's IoT platform is generated from a limited private key seed matrix, which makes it difficult to resist collusion attacks and reduces the security of the authentication system.
Based on the pre-established elliptic curve parameters, a private key matrix, a public key matrix and a random coefficient matrix are generated. The private key factor and the public key factor are calculated through the random coefficient values to generate a combined private key and a combined public key, increasing its complexity.
It increases the complexity of combined private keys and combined public keys, enhances resistance to collusion attacks, and improves the security of the authentication system of the bank's IoT platform.
Smart Images

Figure CN114760052B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, electronic device and medium for generating a key for a banking Internet of Things platform. Background Art
[0002] As the banking Internet of Things platform is widely used, generating efficient and lightweight public key cryptography to protect data integrity and confidentiality has become a very important link. The identification public key system is undoubtedly the only choice for the security of the banking Internet of Things platform.
[0003] In the prior art, a private key matrix and a public key matrix are constructed, and the user identification is used as a key production factor. The private key and the public key are generated respectively by combining the public key algorithm, the key production factor, the private key matrix and the public key matrix; at the same time, the public key is stored in the user terminal physical card, and the security of the user key is guaranteed by hardware.
[0004] However, in the prior art, the large-scale private key pairs are generated by a private key seed matrix of extremely limited scale. Therefore, the private key seed matrix is bound to be unable to resist the threat of collusion attacks, thus reducing the security of the bank's Internet of Things platform authentication system. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, electronic device and storage medium for generating a key for a bank Internet of Things platform, so as to improve the effectiveness of resisting the threat of collusion attacks and the security of the authentication system of the bank Internet of Things platform.
[0006] In a first aspect, an embodiment of the present invention provides a method for generating a key for a bank Internet of Things platform, comprising:
[0007] Based on the curve parameters of the pre-established elliptic curve, a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve are generated;
[0008] Acquire pre-stored target information of a target bank user, and determine, based on the target information, a private key factor corresponding to the private key matrix, a public key factor corresponding to the public key matrix, and a random coefficient value corresponding to the random coefficient matrix;
[0009] The private key factor is calculated based on the random coefficient value to generate a combined private key corresponding to the target bank user, and the public key factor is calculated based on the random coefficient value to generate a combined public key corresponding to the combined private key.
[0010] In a second aspect, an embodiment of the present invention further provides a bank Internet of Things platform key generation device, the device comprising:
[0011] A matrix generation module, used to generate a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve based on curve parameters in a pre-established elliptic curve;
[0012] A target information acquisition module, used to acquire pre-stored target information of a target bank user, and determine, based on the target information, a private key factor corresponding to the private key matrix, a public key factor corresponding to the public key matrix, and a random coefficient value corresponding to the random coefficient matrix;
[0013] The public-private key generation module is used to generate a combined private key corresponding to the target bank user by operating the private key factor based on the random coefficient value, and to generate a combined public key corresponding to the combined private key by operating the public key factor based on the random coefficient value.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the bank Internet of Things platform key generation method provided by any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the bank Internet of Things platform key generation method provided by any embodiment of the present invention is implemented.
[0019] A bank Internet of Things platform key generation method provided by an embodiment of the present invention generates a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve based on curve parameters in a pre-established elliptic curve, determines the private key factors corresponding to the private key matrix, the public key factors corresponding to the public key matrix, and the random coefficient values corresponding to the random coefficient matrix based on the target information of the target bank user that is pre-stored, calculates the private key factors based on the random coefficient values to generate a combined private key corresponding to the target bank user, calculates the public key factors based on the random coefficient values to generate a combined public key corresponding to the combined private key, generates the combined public key and the combined private key through the random coefficient matrix, improves the complexity of the combined private key and the combined public key, solves the problem of low security of the private key matrix, and improves the effectiveness of resisting the threat of collusion attacks and the security of the bank Internet of Things platform authentication system.
[0020] In addition, a bank Internet of Things platform key generation device, electronic device and storage medium provided by the present invention correspond to the above method and have the same beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A flowchart of a method for generating a key for a banking Internet of Things platform provided by an embodiment of the present invention;
[0023] Figure 2 A structural diagram of a key generation device for a banking Internet of Things platform provided by an embodiment of the present invention;
[0024] Figure 3 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0026] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0027] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0028] Embodiment 1
[0029] Figure 1A flowchart of a method for generating a key for a bank Internet of Things platform provided in an embodiment of the present invention. The method can be executed by a bank Internet of Things platform key generation device, which can be implemented by software and / or hardware and can be configured in a terminal and / or server to implement the method for generating a key for a bank Internet of Things platform in an embodiment of the present invention.
[0030] like Figure 1 As shown, the method of this embodiment may specifically include:
[0031] S101. Based on the curve parameters of a pre-established elliptic curve, generate a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve.
[0032] In a specific implementation, an elliptic curve can be pre-established, and the elliptic curve E:y can be selected. 2 =(x 3 +ax+b)mod p. Where x represents the horizontal coordinate of the elliptic curve, and y represents the vertical coordinate of the elliptic curve; in the preset finite field, the number of elements p is called the order of the finite field, p is a prime number, and two non-negative integers a and b less than p are selected to satisfy the condition 4a 3 +27b 3 ≠0, determine the elliptic curve group E p (a, b), select an appropriate element G as a generator, also called a base point. All the multiples of the base point G form E p The subgroup S of (a,b), assuming n is the smallest positive integer satisfying nG=0, then n is called the order of the subgroup S. The curve parameters of the elliptic curve are composed of a, b, G, n, and p.
[0033] Optionally, based on curve parameters in a pre-established elliptic curve, a private key matrix and a public key matrix corresponding to the private key matrix are generated, including: determining private key selection conditions for each private key element in the private key matrix based on the order and a preset number of columns of the private key matrix, repeatedly randomly generating a preset number of private key elements according to the private key selection conditions, and generating the private key matrix based on the private key elements, the preset number of columns and the preset number of rows of the private key matrix; determining the public key matrix corresponding to the private key matrix based on the dot-multiplication relationship between the private key matrix and the public key matrix; wherein the preset number is equal to the product of the preset number of columns and the preset number of rows.
[0034] The curve parameters include the order n of the subgroup of the elliptic curve group; the preset number of columns of the private key matrix may be h, and the preset number of rows of the private key matrix may be m; for example, both m and h may be 32. In a specific implementation, the private key selection condition for each private key element in the private key matrix may be determined as n / h <r i,j <n,r i,j represents the selected private key element in row i and column j. m×h private key elements can be repeatedly determined to construct a private key matrix.
[0035] Furthermore, the doubling relationship between the private key matrix and the public key matrix can be R i,j =r i,j ×G, where R i,j represents the determined public key element of row i and column j, G represents the base point of the elliptic curve. The public key element is determined by the doubling point operation relationship and the private key element, thereby obtaining the public key matrix.
[0036] Optionally, based on the curve parameters of the pre-established elliptic curve, generating a random coefficient matrix corresponding to the elliptic curve, including: determining a random selection condition of each random element in the random coefficient matrix based on the order, determining each random element according to the random selection condition, and generating the random coefficient matrix from each random element;
[0037] The number of random rows of the random coefficient matrix is equal to the preset number of columns of the private key matrix. The number of random columns of the random coefficient matrix can be set according to actual application requirements, and the embodiment of the present invention does not limit this. For example, the random selection condition can be c i,j ∈[1,n], where c i,j represents the random element in the i-th row and j-th column of the random coefficient matrix, n is the order of the subgroup of the elliptic curve group, c i,j is an integer between the interval [1, n]. According to the random selection condition, a preset random number of random elements is determined, and a random coefficient matrix is generated from each random element. Specifically, the preset random number is equal to the product of the preset number of columns and the preset number of rows of the random coefficient matrix.
[0038] S102, obtaining pre-stored target information of the target bank user, and determining the private key factors corresponding to the private key matrix, the public key factors corresponding to the public key matrix, and the random coefficient values corresponding to the random coefficient matrix based on the target information.
[0039] In the specific implementation, for each target bank user of the target bank, the corresponding public key and private key can be determined respectively, so that the target bank user can complete the bank Internet of Things platform authentication and improve the security of each user authentication. Specifically, the target information of the target bank user stored in advance can be obtained, and the target information includes at least one of the user name, target identity and user contact information.
[0040] In this embodiment, the implementation method of determining the private key factors corresponding to the private key matrix, the public key factors corresponding to the public key matrix, and the random coefficient values corresponding to the random coefficient matrix based on the target information includes: determining the row coordinate sequence and the random coefficient coordinate sequence based on the target information and the block cipher algorithm; determining the private key factors corresponding to each coordinate in the row coordinate sequence in the private key matrix and the public key factors corresponding to each coordinate in the public key matrix; determining the random coefficient values corresponding to each coordinate in the random coefficient coordinate sequence in the random coefficient matrix.
[0041] In a specific implementation, the target information includes a target identity of a target bank user, and the target identity may be composed of at least one of numbers, letters, and special symbols. A cryptographic operation may be performed on the target information to generate an intermediate variable corresponding to the target information, and the intermediate variable is row-mapped in a private key matrix by a block cipher algorithm to determine a row coordinate sequence; the intermediate variable is column-mapped in a random coefficient matrix by a block cipher algorithm to determine a random coefficient coordinate sequence.
[0042] Optionally, based on the target information and the block cipher algorithm, a row coordinate sequence and a random coefficient coordinate sequence are determined, including: performing a hash operation on the target identity to obtain a target hash code corresponding to the target identity; performing a first loop encryption on the target hash code based on the block cipher algorithm to obtain first encrypted values corresponding to the first loop number, performing a second loop encryption on the target hash code based on the block cipher algorithm to obtain second encrypted values corresponding to the second loop number; mapping each first encrypted value to the row coordinate of the private key matrix according to a preset mapping method to generate a row coordinate sequence; mapping each second encrypted value to the column coordinate of the random coefficient matrix according to a preset mapping method to generate a random coefficient coordinate sequence.
[0043] Specifically, the cryptographic operation includes a hash operation, and the block cipher algorithm may include at least one of a data encryption standard algorithm, an international data encryption algorithm, a block cipher algorithm with variable parameters, and a matrix encryption algorithm. In this embodiment, a hash operation may be performed on the target identity to obtain a target hash code corresponding to the target identity, and the target hash code is used as an intermediate variable.
[0044] Exemplarily, the target identity is hashed, that is, Hash(ID)=MAP, where MAP is a target hash code of a fixed length value. For example, "Alice in Wonderland" is hashed using the SHA-256 mapping algorithm, and the resulting hash code MAP is "8905C627F0E644D2B23B91701C9B1EAE9FD82C0E85C2A846A877A45193DD1254".
[0045] Furthermore, the generated target hash code MAP can be encrypted by a block cipher algorithm, where ROWKEY represents the key and E represents the encryption algorithm, and cyclic encryption is performed, that is, E ROWKEY (MAP i )=MAP i+1 Among them, MAP 0 =Hash(ID), MAP iRepresents the first encrypted value obtained by the ith cyclic encryption. Each first encrypted value is mapped to the row coordinates of the private key matrix according to a preset mapping method, and a row coordinate sequence is obtained by combining. Exemplarily, the preset mapping method may be a random mapping, and a row coordinate is randomly mapped in each column of the private key matrix to obtain a row coordinate sequence.
[0046] Furthermore, the target hash code MAP can be encrypted by a block cipher algorithm, where COLKEY represents the key and E represents the encryption algorithm, and a cyclic encryption is performed, that is, E COLKEY (MAP j )=MAP j+1 , where MAP j represents the second encrypted value obtained by the j-th cyclic encryption. Similarly, each second encrypted value is mapped to the column coordinates of the random coefficient matrix according to a preset mapping method to generate a random coefficient coordinate sequence. It should be noted that those skilled in the art can determine the preset mapping method according to actual application conditions, and this embodiment of the present invention does not limit this.
[0047] In a specific implementation, each coordinate in the row coordinate sequence can be used as a known coordinate, and the private key elements corresponding to each known coordinate can be determined in the private key matrix as private key factors; correspondingly, the public key elements corresponding to each known coordinate can also be determined in the public key matrix as public key factors. Furthermore, each coordinate in the random coefficient coordinate sequence can be used as a known coordinate, and each random coefficient value corresponding to each known coordinate in the random coefficient matrix can be determined.
[0048] S103. Calculate the private key factor based on the random coefficient value to generate a combined private key corresponding to the target bank user, and calculate the public key factor based on the random coefficient value to generate a combined public key corresponding to the combined private key.
[0049] Optionally, at least one of multiplication, division, addition and subtraction can be performed on the private key factor based on the random coefficient value, and the result of the operation can be determined as the combined private key corresponding to the target bank user. Similarly, the same operation can be performed on the public key factor of the random coefficient value to generate a combined public key corresponding to the combined private key, and the bank IoT platform authentication can be completed based on the combined private key and the combined public key.
[0050] In this embodiment, the private key factors are calculated based on the random coefficient values to generate a combined private key corresponding to the target bank user, including: multiplying each private key factor with the corresponding random coefficient value, performing modular addition operations on each obtained product, and obtaining the combined private key corresponding to the target bank user.
[0051] Specifically, each determined private key factor is multiplied by the corresponding random coefficient value and then subjected to a modular addition operation. The calculation formula is:
[0052]
[0053] Among them, csk represents the combined private key, r k represents the kth private key factor, c k represents the kth random coefficient value, and n is the order of the subgroup of the elliptic curve group.
[0054] In this embodiment, the public key factors are operated based on the random coefficient values to generate a combined public key corresponding to the combined private key, including: multiplying each public key factor with the corresponding random coefficient value, performing modular addition operations on each obtained product, and obtaining the combined public key corresponding to the combined private key.
[0055] Specifically, each public key factor is multiplied by the corresponding random coefficient value and then a modular addition operation is performed. The calculation formula is:
[0056]
[0057] Among them, CPK represents the combined public key, R k represents the kth public key factor, c k represents the kth random coefficient value, n is the order of the subgroup of the elliptic curve group, h is the preset number of columns of the private key matrix, and G represents the base point of the elliptic curve. It can be seen that the combined public key can also be obtained by combining the private key and the base point. Due to the addition of the random coefficient matrix, the public key is no longer simply obtained by a simple modular addition operation of the private key, but is compounded with the random coefficient matrix and then subjected to modular addition operation. The relationship is more complex, which helps to improve the key's ability to resist attacks.
[0058] A bank Internet of Things platform key generation method provided by an embodiment of the present invention generates a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve based on curve parameters in a pre-established elliptic curve, determines the private key factors corresponding to the private key matrix, the public key factors corresponding to the public key matrix, and the random coefficient values corresponding to the random coefficient matrix based on the target information of the target bank user that is pre-stored, calculates the private key factors based on the random coefficient values to generate a combined private key corresponding to the target bank user, calculates the public key factors based on the random coefficient values to generate a combined public key corresponding to the combined private key, generates the combined public key and the combined private key through the random coefficient matrix, improves the complexity of the combined private key and the combined public key, solves the problem of low security of the private key matrix, and improves the effectiveness of resisting the threat of collusion attacks and the security of the bank Internet of Things platform authentication system.
[0059] Embodiment 2
[0060] Figure 2The present invention provides a structural diagram of a bank Internet of Things platform key generation device provided in an embodiment of the present invention, and the device is used to execute the bank Internet of Things platform key generation method provided in any of the above embodiments. The device and the bank Internet of Things platform key generation method in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the bank Internet of Things platform key generation device, reference can be made to the embodiment of the bank Internet of Things platform key generation method. The device may specifically include:
[0061] A matrix generation module 10, for generating a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve based on curve parameters in a pre-established elliptic curve;
[0062] A target information acquisition module 11 is used to acquire pre-stored target information of a target bank user, and determine the private key factors corresponding to the private key matrix, the public key factors corresponding to the public key matrix, and the random coefficient values corresponding to the random coefficient matrix based on the target information;
[0063] The public-private key generation module 12 is used to generate a combined private key corresponding to the target bank user by calculating the private key factor based on the random coefficient value, and to generate a combined public key corresponding to the combined private key by calculating the public key factor based on the random coefficient value.
[0064] Based on any optional technical solution in the embodiments of the present invention, optionally, the curve parameter includes the order of a subgroup of the elliptic curve group;
[0065] The matrix generation module 10 comprises:
[0066] a private key matrix generating unit, configured to determine a private key selection condition for each private key element in the private key matrix based on the order and a preset number of columns of the private key matrix, repeatedly randomly generate a preset number of the private key elements according to the private key selection condition, and generate the private key matrix based on the private key elements, the preset number of columns and a preset number of rows of the private key matrix;
[0067] A public key matrix generating unit, configured to determine the public key matrix corresponding to the private key matrix based on a doubling point operation relationship between the private key matrix and the public key matrix;
[0068] The preset number is equal to the product of the preset number of columns and the preset number of rows.
[0069] Based on any optional technical solution in the embodiment of the present invention, optionally, the matrix generation module 10 includes:
[0070] A random coefficient matrix generating unit, used for determining a random selection condition of each random element in the random coefficient matrix based on the order, determining each random element according to the random selection condition, and generating the random coefficient matrix from each random element;
[0071] The number of random rows of the random coefficient matrix is equal to the preset number of columns of the private key matrix.
[0072] Based on any optional technical solution in the embodiments of the present invention, optionally, the target information acquisition module 11 includes:
[0073] A coordinate sequence determination unit, used to determine a row coordinate sequence and a random coefficient coordinate sequence based on the target information and a block cipher algorithm;
[0074] A factor determination unit, used to determine each private key factor corresponding to each coordinate in the row coordinate sequence in the private key matrix and each public key factor corresponding to each coordinate in the public key matrix;
[0075] The random coefficient value determination unit is used to determine the random coefficient values corresponding to the coordinates in the random coefficient coordinate sequence in the random coefficient matrix.
[0076] Based on any optional technical solution in the embodiments of the present invention, optionally, the target information includes a target identity of the target bank user; the coordinate sequence determination unit includes:
[0077] A hash operation subunit, used to perform a hash operation on the target identity identifier to obtain a target hash code corresponding to the target identity identifier;
[0078] an encryption subunit, configured to perform a first round of encryption on the target hash code based on the block cipher algorithm to obtain first encrypted values corresponding to the first round number, and perform a second round of encryption on the target hash code based on the block cipher algorithm to obtain second encrypted values corresponding to the second round number;
[0079] A first mapping subunit, configured to map each of the first encrypted values to a row coordinate of the private key matrix according to a preset mapping method, to generate the row coordinate sequence;
[0080] The second mapping subunit is used to map each of the second encrypted values to the column coordinates of the random coefficient matrix according to the preset mapping method to generate the random coefficient coordinate sequence.
[0081] Based on any optional technical solution in the embodiment of the present invention, optionally, the public and private key generation module 12 includes:
[0082] The combined private key generation unit is used to perform a product operation on each of the private key factors and the corresponding random coefficient value, and perform a modular addition operation on each obtained product to obtain a combined private key corresponding to the target bank user.
[0083] Based on any optional technical solution in the embodiment of the present invention, optionally, the public and private key generation module 12 includes:
[0084] The combined public key generation unit is used to perform a product operation on each of the public key factors and the corresponding random coefficient value, and perform a modular addition operation on each obtained product to obtain a combined public key corresponding to the combined private key.
[0085] The bank Internet of Things platform key generation device provided by the embodiment of the present invention can execute the following method: based on the curve parameters in the pre-established elliptic curve, generate a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve; obtain the target information of the target bank user stored in advance, and determine the private key factor corresponding to the private key matrix, the public key factor corresponding to the public key matrix, and the random coefficient value corresponding to the random coefficient matrix based on the target information; calculate the private key factor based on the random coefficient value to generate a combined private key corresponding to the target bank user, and calculate the public key factor based on the random coefficient value to generate a combined public key corresponding to the combined private key. The embodiment of the present invention generates a combined public key and a combined private key through a random coefficient matrix, which improves the complexity of the combined private key and the combined public key, solves the problem of low security of the private key matrix, and improves the effectiveness of resisting the threat of collusion attacks and the security of the bank Internet of Things platform authentication system.
[0086] It is worth noting that in the above-mentioned embodiment of the bank Internet of Things platform key generation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0087] Embodiment 3
[0088] Figure 3 A structural diagram of an electronic device provided by an embodiment of the present invention. Figure 3 A block diagram of an exemplary electronic device 20 suitable for implementing an embodiment of the present invention is shown. The electronic device 20 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0089] like Figure 3As shown, the electronic device 20 is in the form of a general computing device. The components of the electronic device 20 may include but are not limited to: one or more processors or processing units 201, a system memory 202, and a bus 203 connecting different system components (including the system memory 202 and the processing unit 201).
[0090] Bus 203 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0091] The electronic device 20 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 20, including volatile and non-volatile media, removable and non-removable media.
[0092] The system memory 202 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 204 and / or cache memory 205. The electronic device 20 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 206 may be used to read and write non-removable, non-volatile magnetic media. A disk drive for reading and writing removable non-volatile disks (such as "floppy disks"), and an optical disk drive for reading and writing removable non-volatile optical disks (such as CD-ROM, DVD-ROM or other optical media) may be provided. In these cases, each drive may be connected to the bus 203 via one or more data medium interfaces. The memory 202 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.
[0093] A program / utility 208 having a set (at least one) of program modules 207 may be stored, for example, in the memory 202, such program modules 207 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 207 generally perform the functions and / or methods of the embodiments described herein.
[0094] The electronic device 20 may also communicate with one or more external devices 209 (e.g., keyboards, pointing devices, displays 210, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 20, and / or may communicate with any device that enables the electronic device 20 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 211. Furthermore, the electronic device 20 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 212. As shown, the network adapter 212 communicates with other modules of the electronic device 20 via a bus 203. It should be understood that other hardware and / or software modules may be used in conjunction with the electronic device 20, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0095] The processing unit 201 executes various functional applications and data processing by running programs stored in the system memory 202 .
[0096] An electronic device provided by the present invention can implement the following method: based on the curve parameters in the pre-established elliptic curve, generate a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve; obtain the target information of the target bank user stored in advance, determine the private key factor corresponding to the private key matrix, the public key factor corresponding to the public key matrix, and the random coefficient value corresponding to the random coefficient matrix based on the target information; calculate the private key factor based on the random coefficient value to generate a combined private key corresponding to the target bank user, and calculate the public key factor based on the random coefficient value to generate a combined public key corresponding to the combined private key. The embodiment of the present invention generates a combined public key and a combined private key through a random coefficient matrix, thereby improving the complexity of the combined private key and the combined public key, solving the problem of low security of the private key matrix, and improving the effectiveness of resisting the threat of collusion attacks and the security of the bank Internet of Things platform authentication system.
[0097] Embodiment 4
[0098] An embodiment of the present invention provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for generating a key for a bank Internet of Things platform when executed by a computer processor, the method comprising:
[0099] Based on the curve parameters in the pre-established elliptic curve, a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve are generated; the target information of the target bank user stored in advance is obtained, and the private key factors corresponding to the private key matrix, the public key factors corresponding to the public key matrix, and the random coefficient values corresponding to the random coefficient matrix are determined based on the target information; the private key factors are calculated based on the random coefficient values to generate a combined private key corresponding to the target bank user, and the public key factors are calculated based on the random coefficient values to generate a combined public key corresponding to the combined private key. The embodiment of the present invention generates a combined public key and a combined private key through a random coefficient matrix, thereby improving the complexity of the combined private key and the combined public key, solving the problem of low security of the private key matrix, and improving the effectiveness of resisting the threat of collusion attacks and the security of the authentication system of the bank Internet of Things platform.
[0100] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present invention is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the bank Internet of Things platform key generation method provided in any embodiment of the present invention.
[0101] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0102] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0103] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0104] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0105] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for generating a key for a banking Internet of Things platform, characterized in that: include: Based on the curve parameters of the pre-established elliptic curve, a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve are generated; Obtaining pre-stored target information of a target bank user, determining a row coordinate sequence and a random coefficient coordinate sequence based on the target information and a block cipher algorithm, determining each private key factor corresponding to each coordinate in the row coordinate sequence in the private key matrix and each public key factor corresponding to each coordinate in the public key matrix, and determining each random coefficient value corresponding to each coordinate in the random coefficient coordinate sequence in the random coefficient matrix; Wherein, the determining of the row coordinate sequence and the random coefficient coordinate sequence based on the target information and the block cipher algorithm comprises: performing a cryptographic operation on the target information to generate an intermediate variable corresponding to the target information, and performing row mapping on the intermediate variable in a private key matrix through the block cipher algorithm to determine the row coordinate sequence; performing column mapping on the intermediate variable in a random coefficient matrix through the block cipher algorithm to determine the random coefficient coordinate sequence; The private key factor is calculated based on the random coefficient value to generate a combined private key corresponding to the target bank user, and the public key factor is calculated based on the random coefficient value to generate a combined public key corresponding to the combined private key.
2. The method according to claim 1, characterized in that: The curve parameters include the order of a subgroup of the elliptic curve group; Based on the curve parameters of the pre-established elliptic curve, a private key matrix and a public key matrix corresponding to the private key matrix are generated, including: Determining a private key selection condition for each private key element in the private key matrix based on the order and a preset number of columns of the private key matrix, repeatedly randomly generating a preset number of the private key elements according to the private key selection condition, and generating the private key matrix based on the private key elements, the preset number of columns and a preset number of rows of the private key matrix; Determine the public key matrix corresponding to the private key matrix based on the doubling point operation relationship between the private key matrix and the public key matrix; The preset number is equal to the product of the preset number of columns and the preset number of rows.
3. The method according to claim 2, characterized in that Based on the curve parameters of the pre-established elliptic curve, a random coefficient matrix corresponding to the elliptic curve is generated, including: Determine the random selection condition of each random element in the random coefficient matrix based on the order, determine each random element according to the random selection condition, and generate the random coefficient matrix from each random element; The number of random rows of the random coefficient matrix is equal to the preset number of columns of the private key matrix.
4. The method according to claim 1, characterized in that: The target information includes the target identity of the target bank user; The step of determining a row coordinate sequence and a random coefficient coordinate sequence based on the target information and the block cipher algorithm comprises: Performing a hash operation on the target identity to obtain a target hash code corresponding to the target identity; Performing a first round of encryption on the target hash code based on the block cipher algorithm to obtain first encrypted values corresponding to the first round number, and performing a second round of encryption on the target hash code based on the block cipher algorithm to obtain second encrypted values corresponding to the second round number; Mapping each of the first encrypted values to the row coordinates of the private key matrix according to a preset mapping method to generate the row coordinate sequence; Each of the second encrypted values is mapped to the column coordinates of the random coefficient matrix according to the preset mapping method to generate the random coefficient coordinate sequence.
5. The method according to claim 1, characterized in that The step of calculating the private key factor based on the random coefficient value to generate a combined private key corresponding to the target bank user includes: Each of the private key factors is multiplied by the corresponding random coefficient value, and a modular addition operation is performed on each obtained product to obtain a combined private key corresponding to the target bank user.
6. The method according to claim 1, characterized in that The operating the public key factor based on the random coefficient value to generate a combined public key corresponding to the combined private key includes: Each of the public key factors is multiplied by the corresponding random coefficient value, and a modular addition operation is performed on each obtained product to obtain a combined public key corresponding to the combined private key.
7. A bank Internet of Things platform key generation device, characterized in that: include: A matrix generation module, used to generate a private key matrix, a public key matrix corresponding to the private key matrix, and a random coefficient matrix corresponding to the elliptic curve based on curve parameters in a pre-established elliptic curve; A target information acquisition module is used to acquire the target information of the target bank user stored in advance, determine the row coordinate sequence and the random coefficient coordinate sequence based on the target information and the block cipher algorithm, determine the private key factors corresponding to each coordinate in the row coordinate sequence in the private key matrix and the public key factors corresponding to each coordinate in the public key matrix, and determine the random coefficient values corresponding to each coordinate in the random coefficient coordinate sequence in the random coefficient matrix; Wherein, the determining of the row coordinate sequence and the random coefficient coordinate sequence based on the target information and the block cipher algorithm comprises: performing a cryptographic operation on the target information to generate an intermediate variable corresponding to the target information, and performing row mapping on the intermediate variable in a private key matrix through the block cipher algorithm to determine the row coordinate sequence; performing column mapping on the intermediate variable in a random coefficient matrix through the block cipher algorithm to determine the random coefficient coordinate sequence; The public-private key generation module is used to generate a combined private key corresponding to the target bank user by operating the private key factor based on the random coefficient value, and to generate a combined public key corresponding to the combined private key by operating the public key factor based on the random coefficient value.
8. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the bank Internet of Things platform key generation method as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the bank Internet of Things platform key generation method as described in any one of claims 1-6.
