Password application system, method, device, medium and program product
Through the unified interface layer and implementation layer of the cryptographic component library, the problem of high migration costs between cryptographic libraries is solved, seamless interface conversion and independent updates between cryptographic libraries are realized, and migration costs are reduced and convenience is improved.
Patent Information
- Application Number
- CN202411100991.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-29
AI Technical Summary
The cost of migration between existing password libraries is high, mainly due to inconsistent interfaces, the upper-level applications need to undergo large modifications and adaptations.
Provide a unified password component library, including the interface layer and the implementation layer, convert the application layer's call to the third-party password library interface into a general interface call through the unified password service agent, and determine the target password library according to the general interface definition to realize password processing. Services, and support password library updates and policy management on the network side.
It reduces the migration cost between different password libraries, improves the independence and convenience of password library updates and migrations, and avoids the need for recompilation and packaging of upper-level applications.
Smart Images

Figure CN119046930A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a cryptographic application system, method, device, medium and program product. Background Art
[0002] With the rapid development of Internet technology, the network security risks of information systems continue to increase, and the threat challenges are becoming increasingly severe. Cryptographic security is an important foundation for information security and can be used to effectively protect the data security of network information systems. Therefore, cryptographic technology is the core technology and important means to protect network information systems. Whether it is application software on the terminal side or the network side, the cryptographic library is a key component to ensure data security and privacy protection.
[0003] However, in the communication network, various services need to use a variety of cryptographic algorithms, such as symmetric encryption algorithms, public key encryption algorithms, digest algorithms, signature algorithms, signature verification algorithms, etc. There are also many cryptographic libraries used in the industry, which support different programming languages to adapt to different application scenarios and development needs, such as cryptographic libraries based on SSL (Secure Socket Layer, Secure Sockets Layer (Protocol)) / TLS (Transport Layer Security, Transport Layer Security (Protocol)) support, based on C++ support, based on Java and C# and other platform support, based on PQC (Post-Quantum Cryptography, Post-Quantum Cryptography) support, based on embedded systems or IoT devices support, etc. The API (Application Programming Interface) interfaces provided by each cryptographic library are basically different. If a cryptographic library no longer provides support or there are security risks, when it is necessary to migrate an application (Application Program, APP) from one cryptographic library to another, due to the inconsistency of the interface, the upper-layer application needs to be significantly modified and adapted, resulting in a high migration cost between different cryptographic libraries. Summary of the invention
[0004] In view of the problems existing in the prior art, the embodiments of the present invention provide a cryptographic application system, method, device, medium and program product, which can effectively reduce the migration cost between different cryptographic libraries.
[0005] In a first aspect, an embodiment of the present invention provides a cryptographic application system, including: a unified cryptographic component library for providing cryptographic functions for an application layer, wherein the unified cryptographic component library includes an interface layer and an implementation layer; the interface layer is configured with a general interface and a third-party cryptographic library interface; the implementation layer includes a unified cryptographic service agent and a third-party cryptographic library;
[0006] The third-party cryptographic library interface is used to convert the application layer's call to the third-party cryptographic library interface into a call to the general interface;
[0007] The unified cryptographic service agent is used to determine the target cryptographic library according to the call to the general interface definition, and call the cryptographic function of the target cryptographic library to perform cryptographic processing business.
[0008] As an improvement of the above solution, the unified cryptographic service agent is also used to update the local third-party cryptographic library and / or cryptographic policy according to the third-party cryptographic library update information and / or cryptographic policy update information sent by the unified cryptographic service function network element on the network side.
[0009] As an improvement of the above-mentioned scheme, the implementation layer includes a unified cryptographic service component, which includes the unified cryptographic service agent and the third-party cryptographic library; the unified cryptographic service component exists in the unified cryptographic component library in the form of a resource file; wherein, when the application is run for the first time, the resource file is released to a local directory through the universal interface, and the process of the unified cryptographic service component is created and started.
[0010] In a second aspect, an embodiment of the present invention provides a cryptographic application method, which is applied to the cryptographic application system described in any one of the first aspects, and the method includes:
[0011] The application layer calls the general interface or the third-party cryptographic library interface to send the first encryption request to the unified cryptographic service agent;
[0012] The unified cryptographic service agent determines a target cryptographic library according to the first encryption request, and calls a cryptographic function of the target cryptographic library to perform an encryption operation on the to-be-processed data indicated by the first encryption request to obtain encrypted data;
[0013] The unified cryptographic service agent returns the encrypted data to the application layer.
[0014] As an improvement of the above solution, when the application layer calls the general interface, the application layer calls the general interface to send the first encryption request to the unified cryptographic service agent, including:
[0015] The application layer calls the universal interface and sends the first encryption request to the universal interface;
[0016] The universal interface receives the call of the application layer and sends the first encryption request to the unified cryptographic service agent.
[0017] As an improvement of the above solution, when the application layer calls the third-party cryptographic library interface, the application layer calls the third-party cryptographic library interface to send the first encryption request to the unified cryptographic service agent, including:
[0018] The application layer calls the third-party cryptographic library interface and sends the first encryption request to the third-party cryptographic library interface;
[0019] The third-party cryptographic library interface converts the call to the third-party cryptographic library into a call to the universal interface, and sends the first encryption request to the universal interface;
[0020] The third-party cryptographic library interface sends the first encryption request to the universal interface;
[0021] The universal interface receives the call of the application layer and sends the first encryption request to the unified cryptographic service agent.
[0022] As an improvement of the above solution, the first encryption request includes the data to be processed, the encryption key and the target encryption algorithm to be used.
[0023] As an improvement of the above solution, the unified cryptographic service agent determines the target cryptographic library according to the first encryption request, and calls the cryptographic function of the target cryptographic library to perform an encryption operation on the to-be-processed data indicated by the first encryption request to obtain encrypted data, including:
[0024] The unified cryptographic service agent determines a target cryptographic library according to the target encryption algorithm indicated by the first encryption request, and converts the first encryption request into a calling parameter of the target cryptographic library;
[0025] The unified cryptographic service agent calls the encryption interface of the target cryptographic library according to the calling parameters, so that the target cryptographic library adopts the target encryption algorithm to perform encryption operation on the data to be processed to obtain encrypted data.
[0026] As an improvement of the above solution, the unified cryptographic service agent returns the encrypted data to the application layer, including:
[0027] The unified cryptographic service agent sends the encrypted data to the universal interface;
[0028] The universal interface returns the encrypted data to the application layer through a function call interface.
[0029] As an improvement of the above solution, the unified cryptographic service agent returns the encrypted data to the application layer, including:
[0030] The unified cryptographic service agent sends the encrypted data to the universal interface;
[0031] The universal interface sends the encrypted data to the third-party cryptographic library interface;
[0032] The third-party cryptographic library interface returns the encrypted data to the application layer through a function call interface.
[0033] As an improvement of the above solution, the method further includes:
[0034] The application layer sends a password usage requirement to the initialization interface defined by the general interface;
[0035] The universal interface sends a first initialization request carrying the password usage requirement to the unified password service agent;
[0036] The unified cryptographic service agent generates a cryptographic library update requirement list according to the cryptographic usage requirement in the first initialization request, and sends a second initialization request carrying the local cryptographic library list and the cryptographic library update requirement list to the unified cryptographic service function network element on the network side, so that the unified cryptographic service function network element generates third-party cryptographic library update information according to the local cryptographic library list and the cryptographic library update requirement list;
[0037] The unified cryptographic service agent updates the local third-party cryptographic library according to the third-party cryptographic library update information, and initializes all the locally updated third-party cryptographic libraries.
[0038] As an improvement to the above solution, the password usage requirement includes: a list of password algorithms that the application needs to use during business processing.
[0039] As an improvement of the above solution, the password usage requirements also include: a first password library list indicating third-party password libraries that the application needs to use during business processing and / or a second password library list indicating third-party password libraries that the application does not need to use during business processing.
[0040] As an improvement of the above solution, the universal interface sends the first initialization request carrying the password usage requirement to the unified password service agent, including:
[0041] The universal interface determines whether the process of the unified cryptographic service agent is running;
[0042] If so, sending a first initialization request carrying the password usage requirement to the unified password service agent;
[0043] If not, the resource file of the unified password service agent is released to the local directory through the universal interface, and after the process of the unified password service agent is created and started, the first initialization request carrying the password usage requirement is sent to the unified password service agent.
[0044] As an improvement of the above solution, the unified password service agent generates a password library update requirement list according to the password usage requirement in the first initialization request, including:
[0045] The unified password service agent performs a difference analysis on the password usage requirement and the local password library list to determine the difference data between the password usage requirement and the local password library list;
[0046] The unified cryptographic service agent generates the cryptographic library update requirement list according to the difference data.
[0047] As an improvement of the above solution, the third-party password library update information includes: the third-party password libraries indicated by the password library update requirement list and / or the third-party password libraries marked as updateable in the local password library list.
[0048] In a third aspect, an embodiment of the present invention provides a cryptographic application device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the cryptographic application method as described in any one of the second aspects is implemented.
[0049] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a cryptographic application method as described in any one of the second aspects.
[0050] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements a cryptographic application method as described in any one of the second aspects.
[0051] In an embodiment of the present invention, a cryptographic application system is provided, comprising: a unified cryptographic component library for providing cryptographic functions for an application layer, wherein the unified cryptographic component library comprises an interface layer and an implementation layer; the interface layer is configured with a general interface and a third-party cryptographic library interface; the implementation layer comprises a unified cryptographic service agent and a third-party cryptographic library; the third-party cryptographic library interface is used to convert the application layer's call to the third-party cryptographic library interface into a call to the general interface; the unified cryptographic service agent is used to determine the target cryptographic library according to the call to the general cryptographic interface defined by the general interface, and call the cryptographic function of the target cryptographic library to perform cryptographic processing business. Due to the general interface and the third-party cryptographic library interface in the interface layer, multiple third-party cryptographic capability interfaces can be provided for upper-layer applications, and when migrating between cryptographic libraries, there is no need to adjust the interface, thereby effectively reducing the migration cost between different cryptographic libraries. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solution of the present invention, the drawings used in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 It is a structural block diagram of a cryptographic application system provided by an embodiment of the present invention;
[0054] Figure 2 is a structural block diagram of an example of a cryptographic application system provided by an embodiment of the present invention;
[0055] Figure 3 is a flow chart of a password application method provided by an embodiment of the present invention;
[0056] Figure 4 It is a schematic diagram of a cryptographic application initialization process of a unified cryptographic component library provided by an embodiment of the present invention;
[0057] Figure 5 is another flow chart of a password application method provided by an embodiment of the present invention;
[0058] Figure 6 It is a schematic diagram of the cryptographic application use process of the unified cryptographic component library provided by an embodiment of the present invention;
[0059] Figure 7 It is a schematic diagram of another cryptographic application use process of the unified cryptographic component library provided by an embodiment of the present invention;
[0060] Figure 8 It is a structural block diagram of a cryptographic application device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] It is understood that the various numbers involved in the embodiments of the present invention are only for the convenience of description and are not intended to limit the scope of the present application. The size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.
[0063] In embodiments of the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The term "multiple or several" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0064] Some terminology concepts involved in the embodiments of the present invention are explained below.
[0065] Unified Cryptographic Service Function: Unified Cryptographic Service Function, UCSF. A service function network element related to cryptographic applications that is uniformly deployed in a communication network, including the management of cryptographic application components and cryptographic application policies.
[0066] Unified Cryptographic Component Library: Unified Cryptographic Component Library, UCCL.
[0067] Unified Cryptographic Component API: Unified Cryptographic Component API, UCCA, can also be referred to as a universal interface. The terms "Unified Cryptographic Component API" and "universal interface" can be used interchangeably and are not specifically limited in the embodiments of the present invention.
[0068] Unified Cryptographic Component Third Party Library API: Unified Cryptographic Component Third Party Library API, UCCA_lib, can also be referred to as third-party library API, third-party library interface or third-party cryptographic library interface; the terms "UCCA_lib", "Unified Cryptographic Component Third Party Library API", "Third Party Library API", "Third Party Library Interface" and "Third Party Cryptographic Library Interface" can be used interchangeably and are not specifically limited in the embodiments of the present invention. UCCA_lib is defined by referring to the implementation of each mainstream cryptographic library UCSC_lib, such as simulating the interface of cryptographic libraries such as OpenSSL and BouncyCastle.
[0069] Unified Cryptographic Service Agent: Unified Cryptographic Service Agent, UCSA.
[0070] Unified Cryptographic Service Component, Unified Cryptographic Service Component, UCSC.
[0071] Unified Cryptographic Service Component Third Party Library: Unified Cryptographic Service Component Third Party Library, UCSC_lib, referred to as third-party library, third-party cryptographic library; the terms "Unified Cryptographic Service Component Third Party Library", "UCSC_lib", "third-party library", and "third-party cryptographic library" can be used interchangeably and are not specifically limited in the embodiments of the present invention. UCSC_lib is responsible for specific cryptographic processing services, such as OpenSSL, BouncyCastle and other cryptographic libraries.
[0072] The cryptographic application system described in the embodiment of the present invention can be applied to a terminal device, which is also called a user equipment (UE) or a terminal, and is a mobile or fixed device with a wireless transceiver function. The terminal device can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water surface (such as a ship, etc.); it can also be deployed in the air (such as an airplane, a balloon, and a satellite, etc.). The terminal device can be a mobile phone, a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, and / or a wireless terminal device in a smart home. The terminal device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device or computing device with wireless communication function, a vehicle-mounted device, a wearable device, a terminal device in the future fifth generation (5G) network or a terminal device in the future evolved public land mobile communication network (PLMN), etc., which are not specifically limited in the embodiments of the present invention. The cryptographic application system described in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
[0073] See also Figure 1 , Figure 1It is a schematic block diagram of a cryptographic application system provided by an embodiment of the present invention. The cryptographic application system comprises: a unified cryptographic component library UCCL for providing an interface for an application layer 11, wherein the application layer 11 comprises application software AppCode, the unified cryptographic component library UCCL comprises an interface layer 12 and an implementation layer 13; the interface layer 12 is configured with a universal interface UCCA and a third-party cryptographic library interface UCCA_lib; the implementation layer 13 comprises a unified cryptographic service agent UCSA and a third-party cryptographic library UCSC_lib;
[0074] The application software AppCode of the layer is used to call the universal interface UCCA or the third-party cryptographic library interface UCCA_lib;
[0075] The third-party cryptographic library interface UCCA_lib is used to convert the call of the application software AppCode to the third-party cryptographic library interface UCCA_lib into a call to the universal interface UCCA;
[0076] The unified cryptographic service agent UCSA is used to determine the target cryptographic library according to the call to the definition of the universal interface UCCA, and call the cryptographic function of the target cryptographic library to perform cryptographic processing business.
[0077] In an embodiment of the present invention, the application in the terminal device integrates the unified cryptographic component library UCCL and calls the cryptographic interface provided by the unified cryptographic component library UCCL (such as the above-mentioned general interface UCCA or the third-party cryptographic library interface UCCA_lib), so as to provide a variety of third-party cryptographic capability interfaces for upper-layer applications, so as to use the adaptive cryptographic capabilities of the unified cryptographic component library UCCL. When migrating between cryptographic libraries, there is no need to adjust the interface, thereby effectively reducing the migration cost between different cryptographic libraries.
[0078] Specifically, the unified cryptographic service agent UCSA is also used to update the local third-party cryptographic library UCSC_lib and / or cryptographic policy according to the third-party cryptographic library update information and / or cryptographic policy update information sent by the unified cryptographic service function network element UCSF on the network side.
[0079] In the embodiment of the present invention, the unified cryptographic component library UCCL can manage and update the local third-party cryptographic library and cryptographic policy by communicating with the unified cryptographic service function network element UCSF on the network side.
[0080] It should be noted that the third-party cryptographic library interface UCCA_lib in the interface layer 12 can be configured as multiple, and correspondingly the third-party cryptographic library UCSC_lib in the implementation layer 13 can also be configured as multiple, which is not specifically limited in the embodiment of the present invention. Figure 2 As shown, the interface layer 12 can be configured with three third-party cryptographic library interfaces UCCA_lib1, UCCA_lib3, and UCCA_lib3; correspondingly, the implementation layer 13 is configured with three corresponding third-party cryptographic libraries UCSC_lib1, UCSC_lib2, and UCSC_lib3.
[0081] The main function of the interface layer 12 is to provide various cryptographic interfaces for the application software AppCode. The application software AppCode uses various cryptographic algorithms by calling the cryptographic interfaces provided by the interface layer 12. The application software AppCode can call different types of cryptographic interfaces according to different cryptographic application scenarios. The interface layer 12 mainly provides the following two types of cryptographic interfaces:
[0082] Universal interface UCCA: It is mainly used in scenarios of new applications. The universal cryptographic interface defined by the universal interface UCCA can be used directly. The universal cryptographic interface can be uniformly defined according to requirements, such as being defined as the interface of the first third-party cryptographic library UCSC_lib1.
[0083] Third-party cryptographic library interface UCCA_lib: It is mainly used in scenarios of existing applications. It refers to the existing mainstream third-party cryptographic library UCSC_lib implementations, such as simulating the interfaces of mainstream third-party cryptographic libraries such as OpenSSL and BouncyCastle.
[0084] For example, an early version of the application software AppCode is implemented based on the OpenSSL cryptographic library and uses the interface of the OpenSSL cryptographic library. In an embodiment of the present invention, when migrating to the unified cryptographic component library UCCL, there is no need to modify the relevant cryptographic call interface, but the original OpenSSL cryptographic library interface is used. However, by converting it into a call to the universal cryptographic interface of the OpenSSL cryptographic library defined by the universal interface UCCA at the interface layer 12, the core cryptographic library has used the local third-party cryptographic library provided by the application layer in the unified cryptographic component library UCCL, so as to implement various cryptographic functions through the local third-party cryptographic library provided by the unified cryptographic component library UCCL, thereby reducing the cost of cryptographic library migration.
[0085] The implementation layer 13 mainly includes the unified cryptographic service component UCSC, which is composed of the unified cryptographic service agent UCSA and various third-party cryptographic libraries UCSC_lib, and mainly provides specific cryptographic functions and cryptographic library updates for the interface layer 12. Among them, the main functions of the unified cryptographic service agent UCSA are as follows:
[0086] Receive the cryptographic processing request (such as encryption request, cryptographic usage requirement, etc.) sent by the interface layer 12, and return the cryptographic processing result to the interface layer 12.
[0087] According to the password policy, select an appropriate third-party password library UCSC_lib as the target password library, and call the password function of the target password library to perform password processing business.
[0088] Communicate with the unified password service function network element UCSF to update the local third-party password library and password policy.
[0089] Responsible for the management and update of various third-party cryptographic libraries UCSC_lib, etc.
[0090] Third-party cryptographic library UCSC_lib: mainly responsible for specific cryptographic processing services, such as OpenSSL, BouncyCastle and other cryptographic libraries.
[0091] Specifically, the unified cryptographic service component UCSC exists in the unified cryptographic component library UCCL in the form of a resource file; wherein, when the application is run for the first time, the resource file of the unified cryptographic service component UCSC is released to a local directory through the universal interface UCCA, and the process of the unified cryptographic service component UCSC is created and started.
[0092] The unified cryptographic service component UCSC runs in the form of a separate process and can be updated independently of the application software AppCode of the application layer 11 .
[0093] Since the unified cryptographic service component UCSC is a separate process, the unified cryptographic service agent UCSA communicates with the universal interface UCCA through inter-process communication or local network interface communication to reduce the coupling degree between the unified cryptographic service agent UCSA and the interface layer 12 and the application layer 11. The unified cryptographic service agent UCSA communicates with the unified cryptographic service function network element UCSF using network communication.
[0094] Compared with the prior art, due to the high coupling between the application layer code and the cryptographic library, the upgrade of the cryptographic library depends on the upgrade of the application layer, resulting in the situation that when the cryptographic algorithm library is updated or there is a security risk, at least the application needs to be recompiled and repackaged before it can be redeployed. In the embodiment of the present invention, since the unified cryptographic service component UCSC runs as a separate process and the interface layer and the implementation layer in the unified cryptographic component library UCCL are loosely coupled, the third-party cryptographic library can be updated and migrated independently of the application software AppCode of the application layer, without perception of the upper-layer application, and there is no need to recompile, package and deploy the application. That is, the upgrade of the third-party cryptographic library does not rely on the repackaging of the application program, thereby improving the independence and convenience of the update and migration of the third-party cryptographic library.
[0095] See also Figure 3 , Figure 3The flowchart of a cryptographic application method provided by an embodiment of the present invention is as follows. The cryptographic application method relates to the initialization process of the unified cryptographic component library UCCL cryptographic application, specifically including:
[0096] S11: the application layer sends a password usage requirement to the initialization interface defined by the general interface;
[0097] S12: The universal interface sends a first initialization request carrying the password usage requirement to the unified password service agent;
[0098] S13: The unified cryptographic service agent generates a cryptographic library update requirement list according to the cryptographic usage requirement in the first initialization request, and sends a second initialization request carrying the local cryptographic library list and the cryptographic library update requirement list to the unified cryptographic service function network element on the network side, so that the unified cryptographic service function network element generates third-party cryptographic library update information according to the local cryptographic library list and the cryptographic library update requirement list;
[0099] S14: The unified cryptographic service agent updates the local third-party cryptographic library according to the third-party cryptographic library update information, and initializes all the locally updated third-party cryptographic libraries.
[0100] The password usage requirements include: a list of password algorithms that the application needs to use during business processing.
[0101] For example, if an application needs to use the symmetric encryption algorithm AES-256, the digest algorithm SHA256, the asymmetric encryption algorithm RSA2048, and the PQC algorithm during business processing, a cryptographic algorithm list including the symmetric encryption algorithm AES-256, the digest algorithm SHA256, the asymmetric encryption algorithm RSA2048, and the PQC algorithm can be provided.
[0102] Furthermore, the password usage requirement also includes: a first password library list indicating third-party password libraries that the application needs to use during business processing and / or a second password library list indicating third-party password libraries that the application does not need to use during business processing.
[0103] Among them, the first password library list includes the identification information UCSC_libID of the third-party password library you want to use, and similarly, the second password library list includes the identification information UCSC_lib ID of the third-party password library you do not want to use. For example, if the application wants to use the OpenSSL password library and the BouncyCastle password library during business processing, then a first password library list containing the identification information UCSC_lib ID of the OpenSSL password library and the BouncyCastle password library can be provided, or if the application does not want to use the password library during business processing, then the first password library list can be empty, and the subsequent unified password service component UCSC can select a suitable third-party password library UCSC_lib as the target password library according to the local password policy, and call the password function of the target password library to perform password processing business; the second password library list is the same, and it will not be repeated here. It should be understood that the password usage requirements may include the first password library list and the second password library list, or may not include the first password library list and the second password library list.
[0104] Specifically, the universal interface sends a first initialization request carrying the password usage requirement to the unified password service agent, including:
[0105] The universal interface determines whether the process of the unified cryptographic service agent is running;
[0106] If so, sending a first initialization request carrying the password usage requirement to the unified password service agent;
[0107] If not, the resource file of the unified password service agent is released to the local directory through the universal interface, and after the process of the unified password service agent is created and started, the first initialization request carrying the password usage requirement is sent to the unified password service agent.
[0108] Specifically, the unified password service agent generates a password library update requirement list according to the password usage requirement in the first initialization request, including:
[0109] The unified password service agent performs a difference analysis on the password usage requirement and the local password library list to determine the difference data between the password usage requirement and the local password library list;
[0110] The unified cryptographic service agent generates the cryptographic library update requirement list according to the difference data.
[0111] The third-party password library update information includes: the third-party password libraries indicated by the password library update requirement list and / or the third-party password libraries marked as updateable in the local password library list.
[0112] Exemplarily, the difference data includes a third-party password library that is not included in the local password library list in the password usage requirement. For example, the local password library list indicates the third-party password libraries UCSC_lib1, UCSC_lib2, and UCSC_lib3, and the password usage requirement indicates that the third-party password libraries UCSC_lib2 and UCSC_lib4 need to be used, then the difference data should include the identification information of the third-party password library UCSC_lib4. For another example, if the password usage requirement indicates that the digest algorithm SHA256 needs to be used, and the local password library list indicates that the third-party password libraries UCSC_lib1, UCSC_lib2, and UCSC_lib3 do not include the local password library list indicating the third-party password libraries UCSC_lib1, UCSC_lib2, and UCSC_lib3, and the third-party password library UCSC_lib5 includes the digest algorithm SHA256, then the difference data should include the identification information of the third-party password library UCSC_lib5.
[0113] In the embodiment of the present invention, the application software AppCode of the application layer should be initialized before using the third-party cryptographic library provided by the unified cryptographic component library UCCL. The specific process is as follows: Figure 4 As shown, including:
[0114] Step 1: The application software AppCode of the application layer calls the initialization interface provided by the universal interface UCCA and submits the password usage requirement.
[0115] Step 2: The universal interface UCCA determines whether the process of the unified cryptographic service agent UCSC is running:
[0116] If the process of the unified password service component UCSC is not running, the resource file of the unified password service component UCSC is released to a local directory, and a process is created to start the process of the unified password service component UCSC.
[0117] If the Unified Cryptographic Service Agent (UCSC) process is already running, go to step 3.
[0118] Step 3: The universal interface UCCA sends the first initialization request carrying the password usage requirement to the unified password service agent UCSA. It should be understood that since the universal interface UCCA and the unified password service agent UCSA are not a process, the sending of the first initialization request can be completed through inter-process communication.
[0119] Step 4: The unified cryptographic service agent UCSA generates a cryptographic library update requirement list according to the difference between the cryptographic usage requirement in the first initialization request and the local cryptographic library list; wherein, if there is no difference between the cryptographic usage requirement and the local cryptographic library list, the cryptographic usage requirement and the local cryptographic library list are empty.
[0120] Step 5: The unified cryptographic service agent UCSA sends the local cryptographic library list and the cryptographic library update requirement list and other information to the unified cryptographic service function network element UCSF through a second initialization request.
[0121] Step 6: The unified password service function network element UCSF generates third-party password library update information according to the password policy, including the updated third-party password library, and sends the third-party password library update information to the unified password service agent UCSA. The specific password policy is as follows:
[0122] The updated third-party cryptographic libraries should include the third-party cryptographic libraries that you want to use in the cryptographic library update requirement list.
[0123] The updated third-party password repository may include the updateable third-party password repository in the local password repository list.
[0124] Step 7: The unified cryptographic service agent UCSA updates the local third-party cryptographic library according to the third-party cryptographic library update information; for example, one or more third-party cryptographic libraries UCSC_lib may be updated, or one or more third-party cryptographic libraries UCSC_lib may be newly added.
[0125] Step 8: The unified cryptographic service agent UCSA initializes local third-party cryptographic libraries UCSC_lib.
[0126] Step 9: The unified cryptographic service agent UCSA returns an initialization response to the common interface UCCA.
[0127] Step 10: The universal interface UCCA returns an initialization response to the application software AppCode.
[0128] Through the above-mentioned initialization process of the unified cryptographic component library cryptographic application, the cryptographic library of the cryptographic functions that the application needs to use in the business processing process can be pre-integrated and updated locally, providing a variety of third-party cryptographic capability interfaces for upper-level applications. It has high compatibility with existing applications and can integrate the unified cryptographic component library UCCL without making major modifications, thereby reducing the integration and use costs of the cryptographic library.
[0129] See also Figure 5 , Figure 5 1 is another flow chart of a cryptographic application method provided by an embodiment of the present invention. The cryptographic application method involves the use process of the unified cryptographic component library UCCL cryptographic application, specifically including:
[0130] S21: the application layer calls the general interface or the third-party cryptographic library interface to send a first encryption request to the unified cryptographic service agent;
[0131] S22: The unified cryptographic service agent determines a target cryptographic library according to the first encryption request, and calls the cryptographic function of the target cryptographic library to perform an encryption operation on the to-be-processed data indicated by the first encryption request to obtain encrypted data;
[0132] S23: The unified cryptographic service agent returns the encrypted data to the application layer.
[0133] The first encryption request includes the data to be processed, the encryption key and the target encryption algorithm to be used.
[0134] Further, specifically, the unified cryptographic service agent determines a target cryptographic library according to the first encryption request, and calls a cryptographic function of the target cryptographic library to perform an encryption operation on the data to be processed indicated by the first encryption request to obtain encrypted data, including:
[0135] The unified cryptographic service agent determines a target cryptographic library according to the target encryption algorithm indicated by the first encryption request, and converts the first encryption request into a calling parameter of the target cryptographic library;
[0136] The unified cryptographic service agent calls the encryption interface of the target cryptographic library according to the calling parameters, so that the target cryptographic library adopts the target encryption algorithm to perform encryption operation on the data to be processed to obtain encrypted data.
[0137] In some embodiments, when the application layer calls the general interface, the application layer calls the general interface to send the first encryption request to the unified cryptographic service agent, including:
[0138] The application layer calls the universal interface and sends the first encryption request to the universal interface;
[0139] The universal interface receives the call of the application layer and sends the first encryption request to the unified cryptographic service agent.
[0140] Specifically, the unified cryptographic service agent returns the encrypted data to the application layer, including:
[0141] The unified cryptographic service agent sends the encrypted data to the universal interface;
[0142] The universal interface returns the encrypted data to the application layer through a function call interface.
[0143] In some other embodiments, when the application layer calls the third-party cryptographic library interface, the application layer calls the third-party cryptographic library interface to send the first encryption request to the unified cryptographic service agent, including:
[0144] The application layer calls the third-party cryptographic library interface and sends the first encryption request to the third-party cryptographic library interface;
[0145] The third-party cryptographic library interface converts the call to the third-party cryptographic library into a call to the universal interface, and sends the first encryption request to the universal interface;
[0146] The third-party cryptographic library interface sends the first encryption request to the universal interface;
[0147] The universal interface receives the call of the application layer and sends the first encryption request to the unified cryptographic service agent.
[0148] Specifically, the unified cryptographic service agent returns the encrypted data to the application layer, including:
[0149] The unified cryptographic service agent sends the encrypted data to the universal interface;
[0150] The universal interface sends the encrypted data to the third-party cryptographic library interface;
[0151] The third-party cryptographic library interface returns the encrypted data to the application layer through a function call interface.
[0152] In an embodiment of the present invention, when the application software AppCode of the application layer calls the cryptographic interface of the interface layer in the unified cryptographic component library UCCL, the following two scenarios are included: The first scenario is for newly added applications: the application software AppCode calls the universal cryptographic interface defined by the universal interface UCCA. The second scenario is for existing applications: the application software AppCode calls the cryptographic interface (i.e., the third-party cryptographic library interface UCCA_lib) of a third-party cryptographic library UCSC_lib (such as OpenSSL). For example: the early version of the application software AppCode is based on OpenSSL and uses the OpenSSL interface. When migrating to the unified cryptographic component library UCCL, there is no need to modify the relevant cryptographic call interface, but to use the original OpenSSL interface. However, its core cryptographic library has already used the corresponding third-party cryptographic library provided by the unified cryptographic component library UCCL. Taking symmetric encryption as an example, the following describes in detail the usage process of the unified cryptographic component library UCCL cryptographic application in the above two scenarios.
[0153] like Figure 6 As shown, for the scenario in which the first application software AppCode calls the universal password interface defined by the universal interface UCCA, the specific process is as follows:
[0154] Step A: When the application software AppCode of the application layer wants to use the encryption algorithm, it calls the universal cryptographic interface provided by the universal interface UCCA, that is, sends the first encryption request to the universal cryptographic interface defined by the universal interface UCCA, wherein the first encryption request encrypt includes key, data, and algID, where key represents the encryption key, data represents the data to be encrypted, and algID represents the cryptographic algorithm to be used, such as AES-128.
[0155] Step B: The universal interface UCCA sends the first encryption request to the unified cryptographic service agent UCSA.
[0156] Step C: The unified cryptographic service agent UCSA selects a suitable third-party cryptographic library as the target cryptographic library, such as UCSC_lib1, according to algID, and converts the first encryption request into the interface and parameters corresponding to UCSC_lib1 (i.e., into a call to UCSC_lib1). It should be understood that when the application software AppCode specifies the identification information of the third-party cryptographic library to be used as UCSC_lib ID during initialization, the UCSC_lib is used; if not specified, the unified cryptographic service agent UCSA selects a suitable third-party cryptographic library UCSC_lib according to the initialized cryptographic usage requirements and security policies. Among them, different third-party cryptographic libraries contain different encryption algorithms, and different third-party cryptographic libraries are pre-configured with different usage priorities. Based on algID and the usage priority of each third-party cryptographic library, it can be selected from high to low according to the priority order.
[0157] Step D: The unified cryptographic service agent UCSA calls the third-party cryptographic library UCSC_lib1.
[0158] Step E: The third-party cryptographic library UCSC_lib1 performs encryption operation on the data in the first encryption request and returns the encrypted data to the unified cryptographic service agent UCSA.
[0159] Step F: The unified cryptographic service agent UCSA converts the returned encrypted data into the interface and parameters defined by the universal interface UCCA (ie, converts it into a call to the universal interface UCCA), and returns the encrypted data to the universal interface UCCA.
[0160] Step G: The universal interface UCCA returns the returned encrypted data to the application software AppCode through the function call interface.
[0161] like Figure 7 As shown, for the above second scenario where the application software AppCode calls a third-party cryptographic library interface UCCA_lib of a third-party cryptographic library UCSC_lib, the specific process is as follows:
[0162] Step a: The application software AppCode of the application layer calls the third-party secret library interface UCCA_lib1, and sends the first encryption request to the third-party secret library interface UCCA_lib1, wherein the first encryption request encrypt_lib1 includes key, data, algID, key represents the encryption key, data represents the data to be encrypted, and algID represents the cryptographic algorithm to be used, such as AES-128.
[0163] Step b: The call of the third-party secret library interface UCCA_lib1 is converted into the call of the universal interface UCCA, and the first encryption request (carrying encrypt, including key, data, algID) is sent to the universal interface UCCA).
[0164] Step c: The universal interface UCCA sends the first encryption request to the unified cryptographic service agent UCSA.
[0165] Step d: The unified cryptographic service agent UCSA selects a suitable cryptographic library according to algID. For example, if the application software AppCode does not specify a third-party cryptographic library to be used during initialization, the unified cryptographic service agent UCSA selects a suitable third-party cryptographic library as CSC_lib2 according to the initialized cryptographic usage requirements and security policies; and converts the first encryption request into the interface and parameters corresponding to UCSC_lib2 (i.e., into a call to UCSC_lib2).
[0166] Step e: The unified cryptographic service agent UCSA calls the third-party cryptographic library UCSC_lib2.
[0167] Step f: The third-party secret library UCSC_lib2 performs encryption operation on the data of the first encryption request and returns the encrypted data to UCSA.
[0168] Step g: The unified cryptographic service agent UCSA converts the returned encrypted data into the interface and parameters defined by the universal interface UCCA (ie, converts it into a call to the universal interface UCCA), and returns the encrypted data to the universal interface UCCA.
[0169] Step h: The universal interface UCCA converts the returned encrypted data into a call to the third-party cryptographic library interface UCCA_lib1.
[0170] Step g: The third-party cryptographic library interface UCCA_lib1 returns the returned encrypted data to the application software AppCode through the function call interface.
[0171] Compared with the prior art, the embodiment of the present invention integrates the unified cryptographic component library UCCL. Since the interface layer and the implementation layer in the unified cryptographic component library UCCL are low-coupled, if the existing application needs to implement migration between cryptographic libraries, that is, when the cryptographic library is migrated to the unified cryptographic component library UCCL, the call to the interface of the original cryptographic library is converted into the call of the universal cryptographic interface of the corresponding cryptographic library defined by the universal interface UCCA at the interface layer. At this time, the core cryptographic library has used the local third-party cryptographic library provided by the application layer in the unified cryptographic component library UCCL. Various cryptographic functions are implemented through the local third-party cryptographic library provided by the unified cryptographic component library UCCL, so there is no need to modify the cryptographic call interface of the relevant cryptographic library, but the interface of the original cryptographic library is used, thereby reducing the migration cost of the cryptographic library. At the same time, it has high compatibility with existing applications, and the unified cryptographic component library UCCL can be integrated without making major modifications or adjusting the interface, which can effectively reduce the integration and use costs of the cryptographic library.
[0172] Secondly, since the unified cryptographic service component UCSC runs as a separate process, it can update and migrate third-party cryptographic libraries independently of the application software AppCode at the application layer. It is unaware of the upper-layer application and does not need to recompile, package and deploy the application. In other words, the upgrade of the third-party cryptographic library does not rely on the repackaging of the application, which improves the independence and convenience of the update and migration of the third-party cryptographic library.
[0173] See also Figure 8 , Figure 8 2 is a block diagram of a cryptographic application device provided in an embodiment of the present invention. The cryptographic application device includes a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned embodiments of the cryptographic application method are implemented, such as steps S11 to S14 or steps S21 to S23.
[0174] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the cryptographic application device.
[0175] The cryptographic application device may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of a cryptographic application device and does not constitute a limitation on the cryptographic application device. The cryptographic application device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the cryptographic application device may also include an input / output device, a network access device, a bus, etc.
[0176] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the cryptographic application device, and uses various interfaces and lines to connect various parts of the entire cryptographic application device.
[0177] The memory 22 can be used to store the computer program and / or module, and the processor 21 realizes various functions of the password application device by running or executing the computer program and / or module stored in the memory 22, and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0178] Wherein, if the module / unit integrated in the password application device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 21. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0179] It should be noted that the working process of each module in the cryptographic application device described in the embodiment of the present invention can refer to the working process of the cryptographic application method described in the above embodiment, and the technical effect achieved is the same as the cryptographic application method described in the above embodiment, which will not be repeated here.
[0180] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0181] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, many improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A password application system, characterized in that: include: A unified cryptographic component library for providing cryptographic functions for an application layer, wherein the unified cryptographic component library comprises an interface layer and an implementation layer; the interface layer is configured with a general interface and a third-party cryptographic library interface; the implementation layer comprises a unified cryptographic service agent and a third-party cryptographic library; The third-party cryptographic library interface is used to convert the application layer's call to the third-party cryptographic library interface into a call to the general interface; The unified cryptographic service agent is used to determine the target cryptographic library according to the call to the general interface definition, and call the cryptographic function of the target cryptographic library to perform cryptographic processing business.
2. The password application system as claimed in claim 1, characterized in that: The unified password service agent is further used to update the local third-party password library and / or password policy according to the third-party password library update information and / or password policy update information sent by the unified password service function network element on the network side.
3. The password application system as claimed in claim 1, characterized in that: The implementation layer includes a unified cryptographic service component, which includes the unified cryptographic service agent and the third-party cryptographic library; the unified cryptographic service component exists in the unified cryptographic component library in the form of a resource file; wherein, when the application is run for the first time, the resource file is released to a local directory through the universal interface, and the process of the unified cryptographic service component is created and started.
4. A password application method, characterized in that: Applied to the cryptographic application system according to any one of claims 1 to 3, the method comprises: The application layer calls the general interface or the third-party cryptographic library interface to send the first encryption request to the unified cryptographic service agent; The unified cryptographic service agent determines a target cryptographic library according to the first encryption request, and calls a cryptographic function of the target cryptographic library to perform an encryption operation on the to-be-processed data indicated by the first encryption request to obtain encrypted data; The unified cryptographic service agent returns the encrypted data to the application layer.
5. The password application method according to claim 4, characterized in that: When the application layer calls the general interface, the application layer calls the general interface to send the first encryption request to the unified cryptographic service agent, including: The application layer calls the universal interface and sends the first encryption request to the universal interface; The universal interface receives the call of the application layer and sends the first encryption request to the unified cryptographic service agent.
6. The password application method according to claim 4, characterized in that: When the application layer calls the third-party cryptographic library interface, the application layer calls the third-party cryptographic library interface to send the first encryption request to the unified cryptographic service agent, including: The application layer calls the third-party cryptographic library interface and sends the first encryption request to the third-party cryptographic library interface; The third-party cryptographic library interface converts the call to the third-party cryptographic library into a call to the universal interface, and sends the first encryption request to the universal interface; The third-party cryptographic library interface sends the first encryption request to the universal interface; The universal interface receives the call of the application layer and sends the first encryption request to the unified cryptographic service agent.
7. The password application method according to claim 4, characterized in that: The first encryption request includes the data to be processed, the encryption key, and the target encryption algorithm to be used.
8. The password application method according to claim 7, characterized in that: The unified cryptographic service agent determines a target cryptographic library according to the first encryption request, and calls a cryptographic function of the target cryptographic library to perform an encryption operation on the to-be-processed data indicated by the first encryption request to obtain encrypted data, including: The unified cryptographic service agent determines a target cryptographic library according to the target encryption algorithm indicated by the first encryption request, and converts the first encryption request into a calling parameter of the target cryptographic library; The unified cryptographic service agent calls the encryption interface of the target cryptographic library according to the calling parameters, so that the target cryptographic library adopts the target encryption algorithm to perform encryption operation on the data to be processed to obtain encrypted data.
9. The password application method according to claim 5, characterized in that: The unified cryptographic service agent returns the encrypted data to the application layer, including: The unified cryptographic service agent sends the encrypted data to the universal interface; The universal interface returns the encrypted data to the application layer through a function call interface.
10. The password application method according to claim 6, characterized in that: The unified cryptographic service agent returns the encrypted data to the application layer, including: The unified cryptographic service agent sends the encrypted data to the universal interface; The universal interface sends the encrypted data to the third-party cryptographic library interface; The third-party cryptographic library interface returns the encrypted data to the application layer through a function call interface.
11. The password application method according to claim 4, characterized in that: The method further comprises: The application layer sends a password usage requirement to the initialization interface defined by the general interface; The universal interface sends a first initialization request carrying the password usage requirement to the unified password service agent; The unified cryptographic service agent generates a cryptographic library update requirement list according to the cryptographic usage requirement in the first initialization request, and sends a second initialization request carrying the local cryptographic library list and the cryptographic library update requirement list to the unified cryptographic service function network element on the network side, so that the unified cryptographic service function network element generates third-party cryptographic library update information according to the local cryptographic library list and the cryptographic library update requirement list; The unified cryptographic service agent updates the local third-party cryptographic library according to the third-party cryptographic library update information, and initializes all the locally updated third-party cryptographic libraries.
12. The password application method according to claim 11, characterized in that: The password usage requirements include: a list of password algorithms that the application needs to use during business processing.
13. The password application method according to claim 12, characterized in that: The password usage requirements also include: a first password library list indicating third-party password libraries that the application needs to use during business processing and / or a second password library list indicating third-party password libraries that the application does not need to use during business processing.
14. The password application method according to claim 4, characterized in that: The universal interface sends the first initialization request carrying the password usage requirement to the unified password service agent, including: The universal interface determines whether the process of the unified cryptographic service agent is running; If so, sending a first initialization request carrying the password usage requirement to the unified password service agent; If not, the resource file of the unified password service agent is released to the local directory through the universal interface, and after the process of the unified password service agent is created and started, the first initialization request carrying the password usage requirement is sent to the unified password service agent.
15. The password application method according to claim 12 or 13, characterized in that: The unified password service agent generates a password library update requirement list according to the password usage requirement in the first initialization request, including: The unified password service agent performs a difference analysis on the password usage requirement and the local password library list to determine the difference data between the password usage requirement and the local password library list; The unified cryptographic service agent generates the cryptographic library update requirement list according to the difference data.
16. The password application method according to claim 15, characterized in that: The third-party password library update information includes: the third-party password libraries indicated by the password library update requirement list and / or the third-party password libraries marked as updateable in the local password library list.
17. A password application device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the cryptographic application method as described in any one of claims 4 to 16 when executing the computer program.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the cryptographic application method according to any one of claims 4 to 16.
19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the cryptographic application method as described in any one of claims 4 to 16 is implemented.
