A data transmission method, apparatus, device, and storage medium

By automatically identifying algorithm identifiers through pre-established interface functions in the ECU, the problem of chaotic data transmission caused by multiple algorithm calls in the ECU is solved, enabling orderly data transmission and efficient processing, simplifying maintenance processes, and improving R&D efficiency.

CN115801296BActive Publication Date: 2026-03-31BEIJING CHJ AUTOMOTIVE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing technologies, when vehicle electronic control units (ECUs) call multiple cryptographic algorithms, it leads to confusion in software design interface information and data transmission, affecting research and development progress and efficiency.

Method used

By automatically identifying the algorithm identifier of the target method among multiple processing methods through pre-established interface functions, the target data is processed using a determined cryptographic algorithm, reducing confusion during data transmission.

Benefits of technology

It enables orderly data transmission, improves processing efficiency, simplifies maintenance processes, and shortens the research and development cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801296B_ABST
    Figure CN115801296B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data transmission method, device, equipment and storage medium, the data transmission method comprises: obtaining request information, the request information comprises target data and identification information, then determining the algorithm identification according to the identification information by using the pre-established interface function, the interface function is specifically used for determining the algorithm identification corresponding to the target method in the plurality of processing methods, calling the target method corresponding to the algorithm identification to process the target data in the request information to obtain the processing result. The data transmission method provided by the present disclosure can automatically identify the cryptographic algorithm identification corresponding to the identification information of the target method in the plurality of processing methods through a pre-constructed interface function, and process the target data by using the determined cryptographic algorithm, effectively reducing the confusion phenomenon in the data transmission process, ensuring the orderly transmission of data, facilitating maintenance, and having high processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a data transmission method, apparatus, device, and storage medium. Background Technology

[0002] At present, the information security development of vehicle electronic control units (ECUs) is gradually receiving attention. The security development of ECU information mostly relies on the porting of fixed cryptographic algorithms. Each cryptographic algorithm has a corresponding interface function, and the ECU will call different cryptographic algorithm functions through the interface function.

[0003] However, in real-world applications, the applications configured in an ECU typically need to call multiple cryptographic algorithms to process data. This means that multiple interface functions are required to call the corresponding cryptographic algorithms, which can easily lead to confusion in software design interface information and data. Furthermore, ECU information security development engineers need to maintain multiple interface functions and provide documentation for them, resulting in slower ECU development and iteration speeds, thus impacting the development schedule and extending the development cycle. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve them, this disclosure provides a data transmission method, apparatus, device, and storage medium that can reduce chaos during data transmission, facilitate maintenance, and improve processing efficiency.

[0005] In a first aspect, embodiments of this disclosure provide a data transmission method, including:

[0006] Obtain the request information, which includes the target data and identification information;

[0007] Based on the identification information, the algorithm identifier is determined using a pre-established interface function. The interface function is used to determine the algorithm identifier corresponding to the target method among multiple processing methods.

[0008] The target method corresponding to the algorithm identifier is called to process the target data and obtain the processing result.

[0009] Secondly, embodiments of this disclosure provide a data transmission apparatus, including:

[0010] The acquisition unit is used to acquire request information, which includes target data and function identifiers;

[0011] The determination unit is used to determine the algorithm identifier based on the identification information using a pre-established interface function. The interface function is used to determine the algorithm identifier corresponding to the target method among multiple processing methods.

[0012] The processing unit is used to call the target method corresponding to the algorithm identifier to process the target data and obtain the processing result.

[0013] Thirdly, embodiments of this disclosure provide an electronic device, including:

[0014] Memory;

[0015] Processor; and

[0016] Computer programs;

[0017] The computer program is stored in memory and configured to be executed by the processor to implement the data transfer method described above.

[0018] Fourthly, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the data transmission method described above.

[0019] This disclosure provides a vehicle data transmission method, apparatus, device, and storage medium. The data transmission method includes: acquiring request information, wherein the request information includes target data and identification information; subsequently, automatically determining an algorithm identifier based on the identification information through a pre-established interface function; specifically, the interface function is used to determine the algorithm identifier corresponding to the target method among multiple processing methods; and calling the target method corresponding to the algorithm identifier to process the target data in the request information to obtain a processing result. The data transmission method provided by this disclosure, through a pre-built interface function, can automatically identify the cryptographic algorithm identifier corresponding to the identification information of the target method among multiple processing methods, and use the determined cryptographic algorithm to process the target data. This reduces data transmission chaos, ensures orderly data transmission, is simple to operate, highly flexible, and has high processing efficiency. Furthermore, relevant development engineers only need to maintain one interface function and provide a description of the interface function, which can further accelerate the research and development process. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1A schematic diagram of a cryptographic algorithm function call provided in an embodiment of this disclosure;

[0023] Figure 2 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0024] Figure 3 A schematic diagram illustrating data transmission according to an embodiment of this disclosure;

[0025] Figure 4 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0026] Figure 5 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0027] Figure 6 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0028] Figure 7 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0029] Figure 8 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0030] Figure 9 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0031] Figure 10 A flowchart illustrating a data transmission method provided in this embodiment of the disclosure;

[0032] Figure 11 This is a schematic diagram of the structure of the data transmission device provided in the embodiments of this disclosure;

[0033] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0034] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0035] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0036] Specifically, the information security development of in-vehicle electronic control units (ECUs) is receiving increasing attention. The secure development of ECU information largely relies on porting fixed cryptographic algorithms, including Advanced Encryption Standard (AES), RSA, SHA1, and Elliptic Curve Cryptography (ECC). Each algorithm has a corresponding interface function, which the applications (APPs) deployed in the ECU need to call during use. However, in practice, ECUs often need to call multiple cryptographic algorithm functions depending on the application scenario. This means there may be situations where a large number of different interface functions need to be called, or different applications may need to call the same cryptographic algorithm corresponding to a single interface function simultaneously. This easily leads to confusion in software design interface information and data transmission, resulting in low processing efficiency. Furthermore, ECU information security development engineers also need to maintain multiple interface functions and provide documentation for them, slowing down the development speed of ECUs, impacting the development schedule, and increasing the development cycle.

[0037] For example, in related technologies, see Figure 1 The application 110 deployed in the vehicle's electronic control unit needs to call the corresponding cryptographic algorithm for processing. The cryptographic algorithm refers to the processing method corresponding to the aforementioned algorithm identifier. It needs to send request information to the corresponding cryptographic algorithm interface function and receive return information. For example, Figure 1The interface includes four cryptographic algorithms: Encryption 130, Decryption 140, Signature 150, and Hash 160. When application 110 needs to encrypt data, it sends a request to Encryption 130. When another part of application 110's data needs to be signed, it sends a request to Signature 150. Simultaneously, application 120 also needs to encrypt some data, so it sends a request to Encryption 130. Encryption 130 receives the requests from both applications 110 and 120, processes them using the encryption algorithm, and then sends a return message back to both applications. During data transmission, Encryption 130 may receive multiple requests and send multiple returns, which can easily lead to confusion in the software interface and data transmission, preventing fast, orderly, and accurate data transmission. The data transmission from applications 110 and 120 to Decryption 140 and Hash 160 is similar to the data transmission to Encryption 130 and Signature 150. In addition, the information security development engineer of the electronic control unit needs to maintain 4 interface functions and provide the corresponding documentation for the 4 interface functions, which will also affect the development progress of the vehicle electronic control unit.

[0038] Specifically, to address the aforementioned technical problems, this disclosure provides a data transmission method. By acquiring request information, which includes target data and identification information, and automatically determining the algorithm identifier based on the identification information using a pre-established interface function, the method automatically determines the algorithm identifier corresponding to the target method among multiple processing methods. In other words, the pre-established interface function automatically determines the algorithm identifier corresponding to the target method represented in the identification information. The target method is then called to process the target data included in the request information, obtaining a processing result. This processing result can be data obtained after encrypting, decrypting, or signing the target data. By constructing a single interface function, the algorithm identifier corresponding to the target method among multiple processing methods can be automatically identified, enabling fast, orderly, and accurate data transmission, avoiding data corruption during data transmission, achieving high processing efficiency, and facilitating the maintenance of the interface function.

[0039] Specifically, the data transmission method provided in this disclosure will be further described in detail through one or more of the following embodiments.

[0040] Figure 2 A flowchart illustrating a data transmission method provided in an embodiment of this disclosure. This includes, for example: Figure 2 The following steps S210 to S230 are shown:

[0041] S210. Obtain request information, which includes target data and identification information.

[0042] Understandably, the vehicle electronic control unit obtains request information from the application, which includes target data and identification information. Target data refers to the data processed by calling cryptographic algorithms, and identification information includes information about the specific cryptographic algorithm (target method) that the application needs to call.

[0043] S220. Based on the identification information, determine the algorithm identifier using a pre-established interface function. The interface function is used to determine the algorithm identifier corresponding to the target method among multiple processing methods.

[0044] Understandably, based on the above S210, a pre-established interface function is used to identify the algorithm identifier corresponding to the target method in the identification information. The algorithm identifier refers to the identifier corresponding to one of multiple pre-constructed cryptographic algorithms. One identification information includes information about a target method, and one target method corresponds to one algorithm identifier. The target data is processed through the target method corresponding to each algorithm identifier. Specifically, the pre-established interface function can identify the algorithm identifier corresponding to the target method among multiple processing methods. That is, for any application's request information, for example, if the application needs to call an encryption algorithm to encrypt data, the pre-established interface function can automatically identify the encryption algorithm to be called by the application, and then call that encryption algorithm to encrypt the data that needs to be encrypted in the application. Understandably, in related technologies, one cryptographic algorithm corresponds to one interface function; in this disclosure, one interface function corresponds to multiple cryptographic algorithms. This interface function can automatically identify the algorithm identifier corresponding to a specific cryptographic algorithm in the identification information, and then call the specific cryptographic algorithm for processing according to the algorithm identifier. This can effectively avoid data transmission chaos and ensure orderly data transmission.

[0045] For example, see Figure 3 , Figure 3 This is a schematic diagram of data transmission provided in an embodiment of the present disclosure. Application 310 sends request information to a pre-established interface function 330. The interface function 330 includes algorithm identifiers corresponding to various processing methods such as encryption, decryption, signature verification, and hashing. The interface function 330 identifies the algorithm identifier corresponding to the identifier information. For example, the interface function 330 identifies the algorithm identifier corresponding to the identifier information sent by application 310 as an encryption identifier, and the interface function 330 identifies the algorithm identifier corresponding to the identifier information sent by application 320 as a hash identifier.

[0046] Understandably, the request information sent by applications 310 and 320 can be stored in the cache queue of the vehicle electronic control unit. Following a first-in, first-out (FIFO) principle, the interface function is called to identify the identifier information of the request information in the cache queue. For example, after processing the request information from application 310, interface function 330 processes the request information sent by application 320.

[0047] S230. Call the target method corresponding to the algorithm identifier to process the target data and obtain the processing result.

[0048] Understandably, based on the above S220, the vehicle electronic control unit calls the target method corresponding to the algorithm identifier to process the target data in the request information. The processing methods include encryption / decryption algorithms, signature verification algorithms, or hash algorithms, etc. The target method is one of the processing methods. The processing result is obtained and returned to the application that sent the request information.

[0049] For example, see Figure 3 After the application 310 sends the request information, the interface function 330 identifies the identification information in the request information and determines the algorithm identifier. Then, it calls the target method corresponding to the algorithm identifier to process the target data in the request information, obtains the processing result, and returns the processing result to the application 310, thus completing the fast and orderly transmission of data.

[0050] Optionally, the interface function can be a program written in a programming language, such as C. The interface function can be configured between the application layer and the underlying layer of the vehicle electronic control unit (VECU). The underlying layer can port cryptographic algorithms from various related technologies according to user needs; for example, it can port algorithms such as AES, RSA, SHA, and ECC. The application layer consists of multiple applications installed in the VECU. The application layer of the VECU sends request information and receives return information. The interface function receives the request information, calls the underlying cryptographic algorithm to process the target data in the request information, and returns the processing result (return information) to the application layer.

[0051] Optionally, the interface function may include: an interface function declaration and an enumeration variable definition. The interface function declaration includes information such as the names of the variables included in the interface function, which describes which variables are included in the program of the interface function. The enumeration variable definition includes the process of determining the specific variable value corresponding to each variable, and can pass parameters, judge and identify the variables input to the interface function according to the interface function declaration.

[0052] Understandably, the documentation for interface functions can be as shown in Table 1. The documentation for interface functions refers to the explanation and comments on each variable and its value in the program of the interface function.

[0053] Table 1

[0054]

[0055] Understandably, in column 1, the suffix "variable" indicates the definition of the variable type, and column 2 indicates the name and meaning of each variable included in the interface function in the program of the interface function, that is, it shows the symbol and meaning of each variable value.

[0056] For example, referring to Table 1, the formal parameter enumeration variables in column 1 include usage and direction. The enumeration values ​​in column 1 include Cipher (encryption / decryption), Signature (signature verification), and Hash (hash). That is, the variable value list for usage is {Cipher, Signature, Hash}, and the variable value for usage can be selected from the variable value list. For example, if the application needs to encrypt or decrypt the target data, the variable value for usage is Cipher (encryption / decryption); if the application needs to sign and verify the target data, the variable value for usage is Signature (signature verification). The suffix of any row in Table 1 is the parameter of the variable, and the enumeration value of the next row is the variable value corresponding to the variable in the previous row. Similarly, the descriptions of the variable values ​​corresponding to other variables can be obtained, which will not be elaborated here.

[0057] This disclosure discloses a data transmission method that obtains request information, including target data and identification information. The identification information includes information about the target method. Then, a pre-established interface function is used to automatically determine the algorithm identifier corresponding to the identification information. The target method corresponding to the algorithm identifier is then called to process the target data in the request information, resulting in a processing result. This data transmission method, through a pre-built interface function, can automatically identify the cryptographic algorithm identifier corresponding to the target method among multiple processing methods. It processes the target data according to the identified target method corresponding to the specific cryptographic algorithm identifier, effectively reducing data transmission chaos, ensuring orderly data transmission, and offering simple operation, high flexibility, and high processing efficiency. Furthermore, the development engineer of the electronic control unit only needs to maintain one interface function and provides a description of the interface function, further accelerating the research and development process.

[0058] Based on the above embodiments, optionally, the algorithm identifier can be determined using a pre-established interface function based on the identifier information, specifically including the following:

[0059] Optionally, the identification information includes multiple variable identifiers corresponding to the target method among multiple processing methods.

[0060] Understandably, the identification information in the request information generated by the application includes multiple variable identifiers corresponding to the target method among multiple processing methods. The first variable identifier among these multiple variable identifiers is used to initially determine the scope of the target data that the application needs to process. For example, the first variable identifier can refer to the variable usage in Table 1, which determines whether encryption / decryption, signature verification, or hashing operations are performed. The second variable identifier among these multiple variable identifiers can refer to any one of the variables mode, standard usage, and hash algorithm in Table 1. The third variable identifier among these multiple variable identifiers can refer to the variable direction in Table 1. Understandably, the number of variable identifiers included in the identification information can be determined according to the actual application requirements.

[0061] Optionally, the algorithm identifier is determined using a pre-established interface function based on the identifier information. Specifically, if the first variable identifier among the multiple variable identifiers in the identifier information is a first preset identifier, the second variable identifier among the multiple variable identifiers is a second preset identifier, and the third variable identifier among the multiple variable identifiers is a third preset identifier, then the algorithm identifier is determined based on the first preset identifier, the second preset identifier, and the third preset identifier.

[0062] Understandably, the identification information is identified using a pre-established interface function. If the first variable identifier among the multiple variable identifiers in the identification information is a first preset identifier, the second variable identifier among the multiple variable identifiers is a second preset identifier, and the third variable identifier among the multiple variable identifiers is a third preset identifier, then the algorithm identifier corresponding to the identification information is determined based on the first preset identifier, the second preset identifier, and the third preset identifier. Here, the first preset identifier, the second preset identifier, and the third preset identifier are the variable values ​​corresponding to each variable in Table 1 above. The first preset identifier can be the identifier of one of the variable values ​​Cipher (encryption / decryption), Signature (signature verification), and Hash (hash) in Table 1.

[0063] Optionally, when the first preset identifier is an encryption / decryption identifier, the second preset identifier is a first encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier or a decryption identifier.

[0064] Understandably, when the first preset identifier is an encryption / decryption identifier, that is, when the first preset identifier is the variable value Cipher, the system continues to determine whether the second preset identifier is the first encryption / decryption algorithm identifier. The second preset identifier can be one of the variable values ​​corresponding to the variable mode in Table 1 above, which corresponds to the first preset identifier. The second preset identifier can be one of the variable values ​​of ECB (AES encryption / decryption mode), CB (AES encryption / decryption mode), CFB (AES encryption / decryption mode), and OFB (AES encryption / decryption mode). The third preset identifier is an encryption identifier or a decryption identifier. The third preset identifier can be one of the variable values ​​of direction in Table 1 corresponding to the first preset identifier. The third preset identifier can be DIR_ENCRYPT (encryption) or DIR_DECRYPT (decryption).

[0065] Optionally, when the first preset identifier is the signature verification identifier, the second preset identifier is the first signature verification algorithm identifier, and the third preset identifier is the generation identifier or the verification identifier.

[0066] Understandably, when the first preset identifier is a signature verification identifier, that is, when the first preset identifier is the variable value Signature, the system continues to determine whether the second preset identifier is the first signature verification algorithm identifier corresponding to the first preset identifier. The second preset identifier can be the identifier of one of the variable values ​​corresponding to the variable standard in Table 1 above, which corresponds to the first preset identifier. The second preset identifier can be the identifier of RSAPSS (RSA signature verification standard) or RSASSA_Pkcs1_v15 (RSA signature verification standard). The third preset identifier is a generation identifier or a verification identifier. The third preset identifier can be the identifier of one of the variable values ​​corresponding to the direction in Table 1, which corresponds to the first preset identifier. The third preset identifier can be DIR_GENERATE (generation) or DIR_VERIFY (verification).

[0067] Optionally, when the first preset identifier is a hash identifier, the second preset identifier is a hash algorithm identifier, and the third preset identifier is a generation identifier or a verification identifier.

[0068] Understandably, when the first preset identifier is a hash identifier, that is, when the first preset identifier is the variable value Hash, the system continues to determine whether the second preset identifier is the hash algorithm identifier corresponding to the first preset identifier. The second preset identifier can be the identifier of one of the variable values ​​corresponding to the variable hashalgo (hash algorithm) corresponding to the first preset identifier in Table 1 above. The second preset identifier can be MD5 (message digest algorithm) or SHA series algorithm (secure hash algorithm). The third preset identifier is a generation identifier or a verification identifier. The third preset identifier can be the identifier of one of the variable values ​​of the direction (direction) corresponding to the first preset identifier in Table 1. The third preset identifier can be DIR_GENERATE (generation) or DIR_VERIFY (verification). The identifier of the variable value of the third preset identifier corresponding to the hash identifier is the same as the identifier of the variable value of the third preset identifier corresponding to the signature verification identifier.

[0069] This disclosure provides a data transmission method that identifies the algorithm identifier corresponding to the identification information through a pre-established interface function. If the first variable identifier among the multiple variable identifiers in the identification information is a first preset identifier, the second variable identifier among the multiple variable identifiers is a second preset identifier, and the third variable identifier among the multiple variable identifiers is a third preset identifier, then the algorithm identifier is determined based on the first preset identifier, the second preset identifier, and the third preset identifier. This method can automatically identify the algorithm identifier corresponding to the multiple variable identifiers included in the identification information using a single interface function. The identification speed is relatively fast, the identification accuracy is relatively high, and the orderly transmission of data is also guaranteed.

[0070] Based on the above embodiments, Figure 4 This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure. If the interface function cannot identify the algorithm identifier corresponding to the identifier information, then the following steps are performed: Figure 4 The following steps S410 to S430 are shown:

[0071] Understandably, when using the interface function to automatically identify the algorithm identifier corresponding to the identifier information, there may be situations where the identification range of the interface function is exceeded, or other situations where it cannot be identified. In this case, fault information can be generated for each step that cannot be identified, and subsequent maintenance personnel can analyze and maintain the interface function based on the fault information.

[0072] S410. If the first variable identifier is not the first preset identifier, then generate the first fault information.

[0073] Understandably, if the first variable identifier is not the first preset identifier, that is, if the first variable identifier is not the identifier of one of the variable values ​​Cipher (encryption / decryption), Signature (signature verification), and Hash (hash) in Table 1, it is outside the recognition range of the interface function. In this case, the first fault information can be generated. The first fault information may include the first variable identifier and information about the specific steps that cannot be recognized.

[0074] S420. If the first variable identifier is the first preset identifier and the second variable identifier is not the second preset identifier, then generate the second fault information.

[0075] Understandably, if the first variable identifier is the first preset identifier, but the second variable identifier is not the second preset identifier (i.e., the second variable identifier is neither the first nor the second encryption / decryption algorithm identifier), a second fault message can be generated. This second fault message can include the second variable identifier and information about the specific steps that cannot be identified. Maintenance personnel will then add the corresponding algorithm identifier to the interface function's preset identifier library based on the generated second fault message, further expanding the storage capacity of the preset identifier library within the interface function.

[0076] S430. If the first variable identifier is a preset algorithm identifier, the second variable identifier is a second preset identifier, and the third variable identifier is not a third preset identifier, then generate third fault information.

[0077] Understandably, if the first variable identifier is the first preset identifier, the second variable identifier is the second preset identifier, and the third variable identifier is not any of the third preset identifiers, then a third fault message is generated and returned to the application. This allows maintenance personnel to analyze and maintain the interface function based on the third fault message. The second preset identifier can be either the first encryption / decryption algorithm identifier or the second encryption / decryption algorithm identifier. The third preset identifier includes an encryption identifier, a decryption identifier, a generation identifier, and a verification identifier.

[0078] The data transmission method provided in this disclosure provides a mechanism for generating fault information by setting up a mechanism for generating fault information in each operation step of the interface function. This facilitates maintenance personnel to analyze the different fault information generated and maintain or update the interface function in a timely manner, thus providing high flexibility.

[0079] Based on the above embodiments, Figure 5This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure. It is understood that the following steps are a detailed description of the encryption and decryption operations performed on target data in request information by an interface function; that is, the interface function identifies the corresponding algorithm identifier based on the identifier information included in the request information, and processes the data according to the processing method corresponding to the algorithm identifier. Optionally, the process of determining the algorithm identifier based on a first preset identifier, a second preset identifier, and a third preset identifier, i.e., determining the encryption / decryption algorithm and performing the processing, specifically includes, as follows: Figure 5 The following steps S510 to S520 are shown:

[0080] S510. If the first preset identifier is an encryption / decryption identifier, the second preset identifier is a first encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the first encryption algorithm.

[0081] Understandably, if the first preset identifier is an encryption / decryption identifier, then it can be further determined whether the second preset identifier is the first encryption / decryption algorithm identifier. If so, it can be further determined whether the third preset identifier is an encryption identifier. If so, the algorithm identifier can be directly determined to be the identifier corresponding to the first encryption algorithm. The first encryption / decryption algorithm identifier can be an identifier of an Advanced Encryption / Decryption Algorithm (AEC encryption / decryption mode). Specifically, the identifiers for AES encryption / decryption mode include those for Electronic Codebook (ECB), Cipher-Block Chaining (CBC), Cipher Feedback (CFB), and Output Feedback (OFB). In other words, the first preset identifier can be any of the identifiers for the first encryption / decryption algorithm. The encryption identifier can correspond to the identifier of the variable value DIR_ENCRYPT (encryption) in Table 1 above. For example, if the first encryption / decryption algorithm identifier is the identifier of the ECB algorithm, then the first encryption algorithm can be the ECB encryption algorithm.

[0082] S520: Call the first encryption algorithm to process the target data and obtain the first encrypted data.

[0083] Understandably, based on the above S510, after determining the algorithm identifier, the target data is encrypted using the first encryption algorithm. The first encryption algorithm can be the first encryption algorithm corresponding to the above AES encryption and decryption mode. The AES encryption function (first encryption algorithm) is called and the mode, symmetric algorithm key, offset vector and plaintext are transmitted. The first encrypted data obtained can be the ciphertext after encrypting the target data.

[0084] Optionally, if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a first encryption / decryption algorithm identifier, and the third preset identifier is a decryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the first decryption algorithm; the first decryption algorithm is called to process the target data to obtain the first decrypted data.

[0085] Understandably, if the first preset identifier is an encryption / decryption identifier, then it continues to determine whether the second preset identifier is the first encryption / decryption algorithm identifier corresponding to the encryption / decryption identifier. If so, it continues to determine whether the third preset identifier is a decryption identifier. The decryption identifier can correspond to the identifier of the variable value DIR_DECRYPT (decryption) in Table 1 above. If the third preset identifier is a decryption identifier, then the first decryption algorithm corresponding to the first encryption / decryption algorithm identifier is used to decrypt the target data. The first decryption algorithm can be the first decryption algorithm corresponding to the AES encryption / decryption mode mentioned above. After determining the first decryption algorithm, the AES decryption function (first decryption algorithm) is called and the mode, symmetric algorithm key, offset vector and ciphertext are passed. Finally, the first decrypted data can be the plaintext after decrypting the target data.

[0086] Optionally, when the first preset identifier is an encryption / decryption identifier, the second preset identifier is a second encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier or a decryption identifier.

[0087] Understandably, when the first preset identifier is the encryption / decryption identifier, the second preset identifier is the second encryption / decryption algorithm identifier. That is, the encryption / decryption identifier includes identifiers for multiple encryption / decryption algorithms. The second preset identifier may be either the first or second encryption / decryption algorithm identifier to ensure that the pre-established interface functions can recognize identifiers for multiple encryption / decryption algorithms. For example, the second encryption / decryption algorithm identifier could be an identifier for a standard encryption algorithm (RSA encryption / decryption standard). Specifically, the identifier for a standard encryption algorithm (RSA encryption / decryption standard) could include identifiers for OAEP (RSA encryption / decryption standard) and Pkcs1v15 (RSA encryption / decryption standard).

[0088] Optionally, after adding a second encryption / decryption algorithm identifier, the algorithm identifier is determined based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a second encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the second encryption algorithm; if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a second encryption / decryption algorithm identifier, and the third preset identifier is a decryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the second decryption algorithm.

[0089] Understandably, after adding the second encryption / decryption algorithm identifier, the subsequent method for determining the algorithm identifier is the same as the process for determining the first encryption / decryption algorithm identifier, and will not be elaborated here. Specifically, the identifier of the second encryption / decryption algorithm can be the identifier corresponding to any one of the following algorithms: RSA, SHA1, and ECC.

[0090] Optionally, after determining the algorithm identifier corresponding to the second encryption / decryption algorithm identifier, the second encryption algorithm is called to process the target data to obtain the second encrypted data; the second decryption algorithm is called to process the target data to obtain the first decrypted data.

[0091] Understandably, the target data is encrypted using the second encryption algorithm corresponding to the second encryption algorithm identifier. The second encryption algorithm can be the encryption algorithm corresponding to the RES encryption and decryption standard mentioned above. After determining the second encryption algorithm, the RES encryption function (second encryption algorithm) is called and the standard, the asymmetric algorithm public key and the plaintext are passed. The final second encrypted data can be the ciphertext after encrypting the target data.

[0092] Understandably, the target data is decrypted using the second encryption / decryption algorithm identifier corresponding to the second decryption algorithm. The second decryption algorithm can be the decryption algorithm corresponding to the RES encryption / decryption standard mentioned above. After determining the second decryption algorithm, the RES decryption function (second decryption algorithm) is called and the standard, asymmetric algorithm private key and ciphertext are passed. The final decrypted data can be the plaintext after decrypting the target data.

[0093] The data transmission method provided in this disclosure automatically identifies the algorithm identifier corresponding to the identifier information, and further calls the processing method corresponding to the algorithm identifier to process the target data and obtain the processing result. It can automatically identify the algorithm identifier corresponding to the purpose identifier, and call the corresponding processing method to perform encryption, decryption or signature verification on the target data according to the identification result. It has high identification accuracy and strong flexibility.

[0094] Based on the above embodiments, Figure 6 This is a flowchart of a data transmission method provided in an embodiment of the present disclosure. The following steps are a process of using an interface function to identify the algorithm identifier corresponding to the request information, and performing encryption and decryption operations on the target data according to the target method corresponding to the algorithm identifier. Specifically, it includes the following steps: Figure 6 The following steps S610 to S653 are shown:

[0095] S610. Determine whether the first variable identifier is an encryption / decryption identifier.

[0096] Understandably, it is determined whether the first variable identifier is the encryption / decryption identifier in the preset identifier of the interface function. If yes, then S620 is executed; otherwise, it is determined whether the first variable identifier is the signature verification identifier in the preset identifier.

[0097] S620. Determine whether the second variable identifier is the identifier of the first encryption / decryption algorithm.

[0098] Understandably, based on the above S610, it is determined whether the second variable identifier in the multiple variable identifiers in the identifier information of the request information sent by the application is the first encryption / decryption algorithm identifier in the encryption / decryption identifier. If yes, then S630 is executed; if not, then S621 is executed. Here, the first encryption / decryption algorithm identifier and the second encryption / decryption algorithm identifier can be understood as identifiers of different processing algorithms capable of encryption and decryption. For example, the first encryption / decryption algorithm identifier could be an identifier of the ASE encryption / decryption mode, and the second encryption / decryption algorithm identifier could be an identifier of the RSA encryption / decryption standard.

[0099] S630. Determine whether the third variable identifier is an encrypted identifier.

[0100] Understandably, based on the above S620, it is determined whether the third variable identifier in the identifier information is an encryption identifier. If yes, then S640 is executed; otherwise, S631 is executed. That is, it determines whether to use the processing method corresponding to the first encryption / decryption algorithm identifier to encrypt or decrypt the target data.

[0101] S631. Determine whether the third variable identifier is a decryption identifier.

[0102] Understandably, based on the above S620, after determining that the second variable identifier is the first encryption / decryption algorithm identifier, it continues to determine whether the third variable identifier among the multiple variable identifiers in the identifier information is the decryption identifier. If so, then S641 is executed.

[0103] S640. Invoke the first encryption algorithm corresponding to the first encryption / decryption algorithm identifier to encrypt the target data.

[0104] Understandably, based on the above S630, if the third variable identifier is an encryption identifier, then the first encryption algorithm corresponding to the first encryption / decryption algorithm identifier is called to encrypt the target data, and S650 is executed; if the third variable identifier is an encryption identifier, then the first encryption / decryption algorithm identifier corresponds to the first encryption algorithm; if the second variable identifier is a decryption identifier, then the first encryption / decryption algorithm identifier corresponds to the first decryption algorithm.

[0105] S641. Call the first encryption / decryption algorithm corresponding to the first decryption algorithm identifier to decrypt the target data.

[0106] Understandably, based on the above S631, if the third variable identifier is a decryption identifier, then the first decryption algorithm corresponding to the first encryption / decryption algorithm identifier is called to decrypt the target data and execute S651.

[0107] S650, Obtain the first encrypted data.

[0108] Understandably, based on the above S640, after encrypting the target data using the first encryption algorithm, the obtained first encrypted data may include the ciphertext generated after encrypting the target data, thus ending the encryption process.

[0109] S651, Obtain the first decrypted data.

[0110] Understandably, based on the above S641, after decrypting the target data using the first decryption algorithm, the obtained first decrypted data may include the plaintext generated after decrypting the target data, thus ending the decryption process.

[0111] Understandably, based on the above S610, if the second variable identifier is not the first encryption / decryption algorithm identifier, then it continues to determine whether the second variable is the second encryption / decryption algorithm identifier, and executes S621. Understandably, the order of determining whether the second variable identifier is the first encryption / decryption algorithm identifier or the second encryption / decryption algorithm identifier is not limited; it is also possible to first determine whether it is the second encryption / decryption algorithm identifier, and then determine whether it is the first encryption / decryption algorithm identifier.

[0112] S621. Determine whether the second variable identifier is the second encryption / decryption algorithm identifier.

[0113] Understandably, based on the above S610, if the second variable identifier is not the first encryption / decryption algorithm identifier, then it is further determined whether the second variable identifier is the second encryption / decryption algorithm identifier. If it is, then S632 is executed, where the second encryption / decryption algorithm identifier can be the identifier corresponding to the RSA standard encryption / decryption algorithm. If not, then second fault information is generated and returned to the application.

[0114] S632. Determine whether the third variable identifier is an encrypted identifier.

[0115] Understandably, S632 and S630 above are implemented in the same way, and will not be described in detail here. If it is an encrypted identifier, then S642 is executed; if it is not an encrypted identifier, then S633 is executed.

[0116] S633. Determine whether the third variable identifier is a decryption identifier.

[0117] Understandably, based on the above S632, if the third variable is the decryption identifier, then S643 is executed.

[0118] S642. Call the second encryption algorithm corresponding to the second encryption algorithm identifier to encrypt the target data.

[0119] Understandably, based on the above S632, if the third variable identifier is an encryption identifier, then the second encryption algorithm corresponding to the second encryption / decryption algorithm identifier is called to encrypt the target data, and S652 is executed.

[0120] S643. Call the second encryption / decryption algorithm corresponding to the second decryption algorithm identifier to decrypt the target data.

[0121] Understandably, based on the above S633, if the third variable identifier is a decryption identifier, then the second decryption algorithm corresponding to the second encryption / decryption algorithm identifier is called to encrypt the target data, and S653 is executed.

[0122] S652, Obtain the second decrypted data.

[0123] Understandably, based on the above S642, S652 is executed. The method of S652 is the same as that of the above S650, and will not be described in detail here.

[0124] S653, Obtain the second decrypted data.

[0125] Understandably, based on the above S643, S653 is executed. The method of S653 is the same as that of the above S651, and will not be described in detail here.

[0126] Based on the above embodiments, Figure 7 This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure. The following steps detail how an algorithm identifier corresponding to identification information is identified through an interface function, and how a signature verification operation is performed on the target data according to the processing method corresponding to the algorithm identifier. Specifically, these steps include... Figure 7 The following steps S710 to S720 are shown:

[0127] Understandably, the signature verification identifier is used to determine whether the application needs to generate or verify a signature on the target data. If the first preset identifier is the signature verification identifier, the interface function calls the processing method corresponding to the signature verification identifier to process the target data in the request information and obtain the processing result. The processing method can be an algorithm that can generate a signature on the target data or an algorithm that can verify the signature on the target data. If a signature on the target data is generated, the processing result includes the signed message and the ciphertext. If the target data is verified by signature, the processing result includes the signed message and the signature value.

[0128] S710. If the first preset identifier is a signature verification identifier, the second preset identifier is a first signature verification algorithm identifier, and the third preset identifier is a generation identifier, then the algorithm identifier is determined to be the identifier corresponding to the first generation algorithm.

[0129] Understandably, if the first preset identifier is a signature verification identifier, then it is further determined whether the second variable identifier is the first signature verification algorithm identifier in the second preset identifier. The first signature verification algorithm identifier can be the identifier of the RSA Private Key Signature Filling Standard (RSA-PSS) or the RSASA_Pkcs1_v15 Filling Standard in the RSA signature verification standard. That is, the second preset identifier can be any identifier in the first signature verification algorithm identifier. If the second preset identifier is the first signature verification algorithm identifier, then it is further determined whether the third variable identifier is a generation identifier. The generation identifier can correspond to the identifier of the variable value DIR_GENERATE (generation) in Table 1 above. If the third variable identifier is a generation identifier, then the first generation algorithm corresponding to the first signature verification algorithm identifier is used to perform signature generation processing on the target data. The first generation algorithm can be the generation algorithm corresponding to the above RSA signature verification standard.

[0130] S720. Call the first generation algorithm to process the target data and obtain the first generated data.

[0131] Understandably, based on the above S710, after determining the first generation algorithm, the first generation algorithm is called to process the target data to obtain the first generated data. That is, the RSA signature function (first generation algorithm) is called and the standard, asymmetric algorithm private key and message are transmitted. Finally, the first generated data can be the message generated after signing the target data.

[0132] Optionally, if the first preset identifier is a signature verification identifier, the second preset identifier is a first signature verification algorithm identifier, and the third preset identifier is a verification identifier, then the algorithm identifier is determined to be the identifier corresponding to the first verification algorithm; the first verification algorithm is called to process the target data to obtain the first verification data.

[0133] Understandably, if the first preset identifier is a signature verification identifier, then it is further determined whether the second variable identifier is the first signature verification algorithm identifier in the first preset identifier. The first signature verification algorithm identifier can be the identifier of the RSA private key signature padding standard (RSA-PSS) and the RSASA_Pkcs1_v15 padding standard in the RSA signature verification standard. That is, the second preset identifier can be any identifier in the first signature verification algorithm identifier. If the second variable identifier is the first signature verification algorithm identifier, then it is further determined whether the third variable identifier is a verification identifier. The verification identifier can be the identifier corresponding to the variable value DIR_VERIFY (verification) in Table 1 above. If the third variable identifier is a verification identifier, then the first verification algorithm corresponding to the first signature verification algorithm identifier is used to perform signature verification processing on the target data. The first verification algorithm can be the verification algorithm corresponding to the above RSA signature verification standard. After determining the first verification algorithm, the RSA signature function (first verification algorithm) is called and the standard, asymmetric algorithm private key and message are passed. Finally, the first verification data is obtained. The first verification data can include the message after the target data has been signed and verified.

[0134] Optionally, when the first preset identifier is the signature verification identifier, the second preset identifier is the second signature verification algorithm identifier, and the third preset identifier is the generation identifier or the verification identifier.

[0135] Understandably, when the first preset identifier is a signature verification identifier, the second preset identifier can also be a second signature verification algorithm identifier. That is, the signature verification identifier includes identifiers for multiple signature verification algorithms. The second preset identifier may be either the first signature verification algorithm identifier or the second signature verification algorithm identifier, to ensure that the pre-established interface functions can recognize identifiers for multiple signature verification algorithms. For example, the second signature verification algorithm identifier could be an identifier for the Elliptic Curve Signature Verification Standard (EDDSA).

[0136] Optionally, after adding a second signature verification algorithm identifier, the algorithm identifier is determined based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is a signature verification identifier, the second preset identifier is a second signature verification algorithm identifier, and the third preset identifier is a generation identifier, then the algorithm identifier is determined to be the identifier corresponding to the second generation algorithm; if the first preset identifier is a signature verification identifier, the second preset identifier is a second signature verification algorithm identifier, and the third preset identifier is a verification identifier, then the algorithm identifier is determined to be the identifier corresponding to the second verification algorithm.

[0137] Understandably, the method for determining the algorithm identifier after adding the second signature verification algorithm identifier is the same as the process for determining the first signature verification algorithm identifier, and will not be elaborated here.

[0138] Optionally, after determining the algorithm identifier corresponding to the second signature verification algorithm identifier, the second generation algorithm is called to process the target data to obtain the second generated data; the second signature verification algorithm is called to process the target data to obtain the second verification data.

[0139] Understandably, the second generation algorithm corresponding to the second verification algorithm is used to generate a signature on the target data. The second generation algorithm can be the generation algorithm corresponding to the EDSA signature verification standard mentioned above. After determining the second generation algorithm, the EDSA signature function (second generation algorithm) is called and the asymmetric algorithm private key and message are passed. The final second generated data can include the message after the target data is signed.

[0140] Understandably, the target data is signed and verified using the second verification algorithm corresponding to the second verification algorithm identifier. The second verification algorithm can be the verification algorithm corresponding to the EDSA signature verification standard mentioned above. The EDSA verification function is called and the asymmetric algorithm public key, message and signature value are passed. Finally, the second verification data is obtained. The second verification data can be the message and signature value after the target data has been signed and verified.

[0141] Optionally, when the first preset identifier is a signature verification identifier, the second preset identifier is a third signature verification algorithm identifier, and the third preset identifier is a generation identifier or a verification identifier; if the first preset identifier is a signature verification identifier, the second preset identifier is a third signature verification sub-identifier, and the third preset identifier is a generation identifier, then the third generation algorithm corresponding to the third signature verification algorithm identifier is called to process the target data to obtain the third generated data; or, if the first preset identifier is a signature verification identifier, the second preset identifier is a third signature verification algorithm identifier, and the third preset identifier is a verification identifier, then the third verification algorithm corresponding to the third signature verification algorithm identifier is called to process the target data to obtain the third verified data.

[0142] Understandably, the process for determining the algorithm identifier corresponding to the third verification algorithm identifier is the same as the process for determining the first and second verification algorithm identifiers, and will not be repeated here. The third verification algorithm identifier can be the identifier corresponding to the Edwards Curve Signature Verification Standard (ECDSA Signature Verification Standard).

[0143] The data transmission method provided in this embodiment automatically identifies the first variable identifier as the signature verification identifier in the first preset identifier, and further calls the processing method corresponding to the signature verification identifier to process the target data and obtain the processing result. It can automatically identify the algorithm identifier corresponding to the identifier information, and call the corresponding processing method to perform signature generation or signature verification processing on the target data according to the identification result. It has fast processing efficiency, high identification accuracy, and strong flexibility.

[0144] Based on the above embodiments, Figure 8 A flowchart of a data transmission method provided in this disclosure embodiment is a process of identifying signature verification operations by an interface function, specifically including, as follows: Figure 8 The following steps S810 to S853 are shown:

[0145] S810. Determine whether the first variable identifier is a verification identifier.

[0146] Understandably, it is determined whether the first variable identifier is the signature verification identifier in the preset identifier in the interface function. If yes, S820 is executed; otherwise, it is determined whether the first variable identifier is the hash identifier in the preset identifier.

[0147] S820. Determine whether the second variable identifier is the first signature verification algorithm identifier.

[0148] Understandably, based on the above S810, it is determined whether the second variable identifier among the multiple variable identifiers in the identifier information of the request information sent by the application is the first verification algorithm identifier in the signature verification identifier. If yes, then S830 is executed; if not, then S821 is executed. Here, the first and second verification algorithm identifiers can be understood as identifiers of different processing algorithms capable of signature verification. For example, the first verification algorithm identifier could be the identifier of the RSA signature verification algorithm, and the second verification algorithm identifier could be the identifier of the EDDSA signature verification algorithm. Simultaneously, the signature verification identifier can also include a third verification algorithm identifier, which could be the identifier of the EDDSA signature verification algorithm. The judgment process for the third verification algorithm identifier is similar to that for the first or second verification algorithm identifier, and will not be elaborated here.

[0149] S821. Determine whether the second variable identifier is the second signature verification algorithm identifier.

[0150] Understandably, based on the above S820, if the second variable identifier is not the first signature verification algorithm identifier, then it is further determined whether the second variable identifier is the second signature verification algorithm identifier. The second signature verification algorithm identifier can be regarded as the identifier corresponding to the EDDSA signature verification algorithm. If it is, then S832 is executed; if not, then the second fault information is generated and sent to the application.

[0151] Understandably, the order in which the second variable identifier is determined to be either the first or second signature verification algorithm identifier is not limited. In another embodiment, it is first determined whether the second variable identifier is the second signature verification identifier; if not, it is then determined whether the second variable identifier is the first signature verification algorithm identifier.

[0152] S830. Determine whether the third variable identifier is a generation identifier.

[0153] Understandably, based on the above S820, it is determined whether the third variable identifier in the identifier information is a generation identifier. If yes, then S840 is executed; otherwise, S831 is executed. That is, it determines the processing method corresponding to the first signature verification algorithm identifier, which is to generate a signature based on the target data or verify the signature in the target data.

[0154] S831. Determine whether the third variable identifier is a verification identifier.

[0155] Understandably, based on the above S830, if the third variable identifier is not a generation identifier, then it is further determined whether the third variable identifier in the identifier information is a verification identifier. If it is, then S841 is executed; if not, then the second fault information is generated and sent to the application.

[0156] S840: Call the first generation algorithm corresponding to the first signature verification algorithm to process the target data.

[0157] Understandably, based on the above S830, if the third variable identifier is a generation identifier, then the first generation algorithm corresponding to the first verification algorithm identifier is called to generate a signature on the target data and execute S850; if the third variable identifier is a generation identifier, then the first verification algorithm identifier corresponds to the first generation algorithm; if the third variable identifier is a verification identifier, then the first verification algorithm identifier corresponds to the first verification algorithm.

[0158] S841. Call the first verification algorithm corresponding to the first signature verification algorithm to process the target data.

[0159] Understandably, based on the above S831, if the third variable identifier is a verification identifier, then the first verification algorithm corresponding to the first signature verification algorithm identifier is called to perform signature verification on the target data and execute S851.

[0160] S850, Obtain the first generated data.

[0161] Understandably, based on the above S840, after the target data is signed using the first generation algorithm, the first generated data is obtained. The first generated data may include the standard, asymmetric algorithm private key and message obtained after signing the target data, thus ending the signature generation process.

[0162] S851, Obtain the first verification data.

[0163] Understandably, based on the above S841, after the target data is signed and verified using the first verification algorithm, the first verification data is obtained. The first verification data includes the standard, asymmetric algorithm public key, signature value and message obtained after signing and verifying the target data, and the signature verification process ends.

[0164] Understandably, based on the above S820, if the second variable identifier is not the first signature verification algorithm identifier, then S821 is executed to continue to determine whether the second variable is the second signature verification algorithm identifier. If it is, then S832 is executed.

[0165] S832. Determine whether the third variable identifier is a generation identifier.

[0166] Understandably, based on the above S821, it is determined whether the third variable identifier is a generation identifier. If it is, then S842 is executed; otherwise, S833 is executed. The implementation method of S832 is the same as that of S830 above, and will not be described in detail here.

[0167] S833. Determine whether the third variable identifier is a verification identifier.

[0168] Understandably, based on the above S832, if the third variable identifier is not a generation identifier, then it is determined whether the third variable identifier is a verification identifier. If so, then S843 is executed. The implementation method of S833 is the same as that of S831 above, and will not be described in detail here.

[0169] S842. Call the second signature verification algorithm to identify the corresponding second generation algorithm to process the target data.

[0170] Understandably, based on the above S832, if the third variable identifier is a generation identifier, then the second generation algorithm corresponding to the second signature verification algorithm identifier is called to generate the signature corresponding to the target data, and S852 is executed; if the third variable identifier is a generation identifier, then the second signature verification algorithm identifier corresponds to the second generation algorithm; if the third variable identifier is a verification identifier, then the second signature verification algorithm identifier corresponds to the second verification algorithm.

[0171] S843. Call the second verification algorithm corresponding to the second signature verification algorithm to process the target data.

[0172] Understandably, based on the above S833, if the third variable identifier is a verification identifier, then the second verification algorithm corresponding to the second signature verification algorithm identifier is called to verify the signature corresponding to the target data, and S853 is executed.

[0173] S852, Obtain the second generated data.

[0174] Understandably, S852 and the above-mentioned S850 are implemented in the same way, so they will not be described in detail here.

[0175] S853, Obtain the second verification data.

[0176] Understandably, S853 and S851 are implemented in the same way, so they will not be described in detail here.

[0177] Based on the above embodiments, Figure 9 This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure. The following steps detail how an interface function identifies the algorithm identifier corresponding to the request information, and how the target data is hashed or hash-verified according to the processing method corresponding to the algorithm identifier. Specifically, these steps include... Figure 9 The following steps S910 to S920 are shown:

[0178] Understandably, the interface function determines whether the first variable identifier in the request information sent by the application is a hash identifier in the first preset identifier, that is, whether the first variable identifier is within the range of the interface function's preset identifiers. If it is, the second and third variable identifiers are further identified; otherwise, the first fault information is generated. If the first variable identifier is a hash identifier, the interface function calls the processing method corresponding to the hash identifier to process the target data in the request information and obtain the processing result. The processing method can be an algorithm that can generate a hash of the target data or an algorithm that can verify the hash of the target data. If the target data is hashed, the processing result includes a message containing the hash value; if the target data is hash verified, the processing result includes a message containing the hash value and the hash value itself.

[0179] S910. If the first preset identifier is a hash identifier, the second preset identifier is a hash algorithm identifier, and the third preset identifier is a generation identifier, then the algorithm identifier is determined to be the identifier corresponding to the hash generation algorithm.

[0180] Understandably, if the first variable identifier is a hash identifier, then it is further determined whether the second variable identifier is a hash algorithm identifier, where the hash algorithm identifier can be the MD5 identifier in the hash algorithm; if the second variable identifier is a hash algorithm identifier, then it is further determined whether the third variable identifier is a generation identifier, where the generation identifier can correspond to the identifier of the variable value DIR_GENERATE (generation) in Table 1 above. If so, then the algorithm identifier is determined to be the identifier corresponding to the hash generation algorithm.

[0181] S920. Call the hash generation algorithm to process the target data and obtain the first hash data.

[0182] Understandably, the target data is processed by generating a hash value using a hash algorithm that identifies the corresponding hash generation algorithm. The hash generation algorithm can be the hash generation algorithm corresponding to MD5 in the above hash algorithms. The hash generation algorithm is called and the hash algorithm and message are passed to finally obtain the first hash data. The first hash data can include the message of the hash value generated by hashing the target data.

[0183] Optionally, if the first preset identifier is a hash identifier, the second preset identifier is a hash algorithm identifier, and the third preset identifier is a verification identifier, then the algorithm identifier is determined to be the identifier corresponding to the hash verification algorithm; the hash verification algorithm is called to process the target data to obtain the second hash data.

[0184] Understandably, if the first variable identifier is a hash identifier, then it is further determined whether the second variable identifier is a hash algorithm identifier. The hash algorithm identifier can be any of the identifiers in the hash algorithm, such as SHA1, SHA256, or SHA512. If the second variable identifier is a hash algorithm identifier, then it is further determined whether the third variable identifier is a verification identifier. The verification identifier can correspond to the identifier of the variable value DIR_VERIFY (verification) in Table 1 above. If the third variable identifier is a verification identifier, then the hash verification algorithm corresponding to the hash algorithm identifier is used to perform hash value verification processing on the target data. The hash verification algorithm can be the hash verification algorithm corresponding to SHA1, SHA256, or SHA512 in the above hash algorithm. The hash verification algorithm is called and the hash algorithm, hash value, and hash value message are passed. Finally, the second hash data is obtained. The second hash data can include the hash value obtained after hash verification of the target data and the hash value message.

[0185] The data transmission method provided in this embodiment automatically identifies that the first variable identifier is a hash identifier in the first preset identifier, and further calls the processing method corresponding to the hash identifier to process the target data to obtain the processing result. It can automatically identify the algorithm identifier corresponding to the identifier information, and call the corresponding processing method to perform hash generation or hash verification processing on the target data according to the identification result. It has fast processing efficiency, high identification accuracy, and strong flexibility.

[0186] Based on the above embodiments, Figure 10 A flowchart of a data transmission method provided in this disclosure embodiment is a process of identifying hash generation and verification operations by an interface function, specifically including, as follows: Figure 10 The following steps S1100 to S1800 are shown:

[0187] S1100, Determine whether the first variable identifier is a hash identifier.

[0188] Understandably, after determining that the first variable identifier is neither an encryption / decryption identifier nor a signature verification identifier, it is possible to continue to determine whether the first variable identifier is a hash identifier. If it is, then execute S1200; if not, then generate the first fault information and send the first fault information to the application.

[0189] S1200, Determine whether the second variable identifier is a hash algorithm identifier.

[0190] Understandably, based on the above S1100, it is further determined whether the second variable identifier is a hash algorithm identifier. Here, the hash algorithm identifier can be understood as the identifier corresponding to the hash algorithm. If it is, then S1300 is executed; if not, then the second fault information is generated and sent to the application.

[0191] S1300, Determine whether the third variable identifier is a generation identifier.

[0192] Understandably, based on the above S1200, it is further determined whether the third variable identifier is a generation identifier. The generation identifier is used to determine whether the application needs to perform a generation operation on the target data. The generation identifier and the above... Figure 8 The generation identifiers in the two statements can be the same; if so, execute S1400; otherwise, execute S1600.

[0193] S1400: Call the hash generation algorithm corresponding to the hash algorithm identifier to process the target data.

[0194] Understandably, based on the above S1300, if the third variable identifier is a generation identifier, then the hash generation algorithm corresponding to the hash algorithm identifier is called to generate a hash of the target data, and the hash algorithm and message are transmitted.

[0195] S1500, Obtain the first hash data.

[0196] Understandably, based on the above S1400, the target data is hashed to obtain the first hash data, which includes the hash value, and the hash generation process ends.

[0197] S1600 Determine whether the third variable identifier is a verification identifier.

[0198] Understandably, based on the above S1300, if the third variable identifier is not a generation identifier, then it is further determined whether the third variable identifier is a verification identifier. The verification identifier is used to verify the hash value of the target data. If it is, then S1700 is executed; if not, then a third fault code is generated and returned to the application.

[0199] S1700: Call the hash verification algorithm corresponding to the hash algorithm identifier to process the target data.

[0200] Understandably, based on the above S1600, if the third variable identifier is a verification identifier, then the hash verification algorithm corresponding to the hash algorithm identifier is called to verify the hash value of the target data, and the hash algorithm, hash value and message are transmitted.

[0201] S1800, obtain the second hash data.

[0202] Understandably, based on the above S1400, the target data is verified by hash value to obtain second hash data including hash value and message, and the hash verification process ends.

[0203] Figure 11 This is a schematic diagram of a data transmission apparatus provided in an embodiment of the present disclosure. The data transmission apparatus provided in this embodiment can execute the processing flow provided in the data transmission method embodiment, such as… Figure 11 As shown, the data transmission device 1100 includes:

[0204] The acquisition unit 1110 is used to acquire request information, which includes target data and identification information;

[0205] The determining unit 1120 is used to determine the algorithm identifier based on the identifier information using a pre-established interface function. The interface function is used to determine the algorithm identifier corresponding to the target method among multiple processing methods.

[0206] The processing unit 1130 is used to call the c method corresponding to the algorithm identifier to process the target data and obtain the processing result.

[0207] Optionally, the identification information in the acquisition unit 1110 includes multiple variable identifiers corresponding to the target method in multiple processing methods.

[0208] Optionally, the determination unit 1120 determines the algorithm identifier based on the identifier information using a pre-established interface function. Specifically, if the first variable identifier among the multiple variable identifiers in the identifier information is a first preset identifier, the second variable identifier among the multiple variable identifiers is a second preset identifier, and the third variable identifier among the multiple variable identifiers is a third preset identifier, then the algorithm identifier is determined based on the first preset identifier, the second preset identifier, and the third preset identifier.

[0209] Optionally, in the determining unit 1120, when the first preset identifier is an encryption / decryption identifier, the second preset identifier is a first encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier or a decryption identifier; when the first preset identifier is a signature verification identifier, the second preset identifier is a first signature verification algorithm identifier, and the third preset identifier is a generation identifier or a verification identifier; when the first preset identifier is a hash identifier, the second preset identifier is a hash algorithm identifier, and the third preset identifier is a generation identifier or a verification identifier.

[0210] Optionally, the determining unit 1120 determines the algorithm identifier based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a first encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the first encryption algorithm; if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a first encryption / decryption algorithm identifier, and the third preset identifier is a decryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the first decryption algorithm.

[0211] Optionally, the processing unit 1130 may call the target method corresponding to the algorithm identifier to process the target data and obtain the processing result. Specifically, it may call the first encryption algorithm to process the target data and obtain the first encrypted data; or call the first decryption algorithm to process the target data and obtain the first decrypted data.

[0212] Optionally, the determining unit 1120 determines the algorithm identifier based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is a signature verification identifier, the second preset identifier is a first signature verification algorithm identifier, and the third preset identifier is a generation identifier, then the algorithm identifier is determined to be the identifier corresponding to the first generation algorithm; if the first preset identifier is a signature verification identifier, the second preset identifier is a first signature verification algorithm identifier, and the third preset identifier is a verification identifier, then the algorithm identifier is determined to be the identifier corresponding to the first verification algorithm.

[0213] Optionally, the processing unit 1130 may call the target method corresponding to the algorithm identifier to process the target data and obtain the processing result. Specifically, it may call the first generation algorithm to process the target data and obtain the first generated data; or call the first verification algorithm to process the target data and obtain the first verification data.

[0214] Optionally, the determining unit 1120 determines the algorithm identifier based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is a hash identifier, the second preset identifier is a hash algorithm identifier, and the third preset identifier is a generation identifier, then the algorithm identifier is determined to be the identifier corresponding to the hash generation algorithm; if the first preset identifier is a hash identifier, the second preset identifier is a hash algorithm identifier, and the third preset identifier is a verification identifier, then the algorithm identifier is determined to be the identifier corresponding to the hash verification algorithm.

[0215] Optionally, the processing unit 1130 may call the target method corresponding to the algorithm identifier to process the target data and obtain the processing result. Specifically, it may call a hash generation algorithm to process the target data and obtain the first hash data; or call a hash verification algorithm to process the target data and obtain the second hash data.

[0216] Optionally, when the first preset identifier in the determining unit 1120 is an encryption / decryption identifier, the second preset identifier is a second encryption / decryption algorithm identifier.

[0217] Optionally, the determining unit 1120 determines the algorithm identifier based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a second encryption / decryption algorithm identifier, and the third preset identifier is an encryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the second encryption algorithm; if the first preset identifier is an encryption / decryption identifier, the second preset identifier is a second encryption / decryption algorithm identifier, and the third preset identifier is a decryption identifier, then the algorithm identifier is determined to be the identifier corresponding to the second decryption algorithm.

[0218] Optionally, in the determining unit 1120, when the first preset identifier is the signature verification identifier, the second preset identifier is the signature verification algorithm identifier.

[0219] Optionally, the determining unit 1120 determines the algorithm identifier based on the first preset identifier, the second preset identifier, and the third preset identifier. Specifically, if the first preset identifier is a signature verification identifier, the second preset identifier is a second signature verification algorithm identifier, and the third preset identifier is a generation identifier, then the algorithm identifier is determined to be the identifier corresponding to the second generation algorithm; if the first preset identifier is a signature verification identifier, the second preset identifier is a second signature verification algorithm identifier, and the third preset identifier is a verification identifier, then the algorithm identifier is determined to be the identifier corresponding to the second verification algorithm.

[0220] Optionally, the device 1100 further includes a generation unit, which is specifically used to: generate first fault information if the first variable identifier is not a first preset identifier; generate second fault information if the first variable identifier is a first preset identifier and the second variable identifier is not a second preset identifier; and generate third fault information if the first variable identifier is a preset algorithm identifier, the second variable identifier is a second preset identifier, and the third variable identifier is not a third preset identifier.

[0221] Figure 11 The data transmission device shown in the embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0222] Figure 12 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. The electronic device provided in this embodiment can execute the processing flow provided in the above embodiments, such as... Figure 12 As shown, the electronic device 1200 includes a processor 1210, a communication interface 1220, and a memory 1230; wherein, a computer program is stored in the memory 1230 and configured to be executed by the processor 1210 using the data transmission method described above.

[0223] In addition, this disclosure also provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the data transmission method provided in the above embodiments.

[0224] Furthermore, this disclosure also provides a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the data transmission method as described above.

[0225] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0226] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data transmission method, characterized by, The method comprises the following steps: obtaining request information, wherein the request information comprises target data and identification information, and the identification information comprises a plurality of variable identifications corresponding to a target method in a plurality of processing methods; determining an algorithm identification according to the identification information by using a pre-established interface function, wherein the interface function is used to determine the algorithm identification corresponding to the target method in the plurality of processing methods; calling the target method corresponding to the algorithm identification to process the target data to obtain a processing result; wherein the step of determining the algorithm identification according to the identification information by using the pre-established interface function comprises: if a first variable identification in the plurality of variable identifications in the identification information is a first preset identification, a second variable identification in the plurality of variable identifications is a second preset identification, and a third variable identification in the plurality of variable identifications is a third preset identification, then determining the algorithm identification according to the first preset identification, the second preset identification and the third preset identification comprises: if the first preset identification is an encryption and decryption identification, the second preset identification is a first encryption and decryption algorithm identification, and the third preset identification is an encryption identification, then determining that the algorithm identification is an identification corresponding to a first encryption algorithm; if the first preset identification is the encryption and decryption identification, the second preset identification is the first encryption and decryption algorithm identification, and the third preset identification is a decryption identification, then determining that the algorithm identification is an identification corresponding to a first decryption algorithm.

2. The method of claim 1, wherein, when the first preset identification is a signature verification identification, the second preset identification is a first signature verification algorithm identification, and the third preset identification is a generation identification or a verification identification; when the first preset identification is a hash identification, the second preset identification is a hash algorithm identification, and the third preset identification is the generation identification or the verification identification.

3. The method of claim 1, wherein, the step of calling the target method corresponding to the algorithm identification to process the target data to obtain a processing result comprises: calling the first encryption algorithm to process the target data to obtain first encrypted data; or calling the first decryption algorithm to process the target data to obtain first decrypted data.

4. The method of claim 2, wherein, the step of determining the algorithm identification according to the first preset identification, the second preset identification and the third preset identification comprises: if the first preset identification is the signature verification identification, the second preset identification is the first signature verification algorithm identification, and the third preset identification is the generation identification, then determining that the algorithm identification is an identification corresponding to a first generation algorithm; if the first preset identification is the signature verification identification, the second preset identification is the first signature verification algorithm identification, and the third preset identification is the verification identification, then determining that the algorithm identification is an identification corresponding to a first verification algorithm.

5. The method of claim 4, wherein, the step of calling the target method corresponding to the algorithm identification to process the target data to obtain a processing result comprises: calling the first generation algorithm to process the target data to obtain first generated data; or calling the first verification algorithm to process the target data to obtain first verified data.

6. The method of claim 2, wherein, The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises:

7. The method of claim 6, wherein, When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; 8. The method of claim 2, wherein, The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises:

9. The method of claim 2, wherein, When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; 10. The method of claim 1, wherein, The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; 11. A data transmission apparatus, characterized by comprising: The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises: When the first preset identifier is the signature verification identifier, the second preset identifier is a second signature verification algorithm identifier; The method further comprises A determining unit is configured to determine an algorithm identifier according to the identification information by using a pre-established interface function, the interface function being used to determine an algorithm identifier corresponding to a target method in a plurality of processing methods; A processing unit is configured to call the target method corresponding to the algorithm identifier to process the target data to obtain a processing result; The determining unit is configured to: If a first variable identifier in the plurality of variable identifiers is a first preset identifier, a second variable identifier in the plurality of variable identifiers is a second preset identifier, and a third variable identifier in the plurality of variable identifiers is a third preset identifier, the algorithm identifier is determined according to the first preset identifier, the second preset identifier, and the third preset identifier, including: if the first preset identifier is an encryption and decryption identifier, the second preset identifier is a first encryption and decryption algorithm identifier, and the third preset identifier is an encryption identifier, the algorithm identifier is determined as an identifier corresponding to a first encryption algorithm; if the first preset identifier is the encryption and decryption identifier, the second preset identifier is the first encryption and decryption algorithm identifier, and the third preset identifier is a decryption identifier, the algorithm identifier is determined as an identifier corresponding to a first decryption algorithm.

12. An electronic device, comprising: comprise: a memory; a processor; and a computer program; The computer program is stored in the memory and is configured to be executed by the processor to implement the data transmission method according to any one of claims 1 to 10. The computer program is executed by the processor to implement the steps of the data transmission method according to any one of claims 1 to 10.

13. A computer readable storage medium having stored thereon a computer program, characterized in that, ​

Citation Information

Patent Citations

  • Interface request processing method and device, computer equipment and storage medium

    CN109842610A