HarmonyOS Read the original article:What is the Crypto Architecture Kit? Context Crypto...
Read the original article:What is the Crypto Architecture Kit?
Crypto Architecture Kit is designed to provide essential cryptographic functionalities for applications, such as encryption/decryption, signing/signature verification, MAC generation, hash computation, random number generation, and key derivation. It abstracts the differences between third-party cryptographic libraries, simplifying development and ensuring consistency in cryptographic operations.
The kit supports most common cryptographic algorithms, though some older or less secure algorithms (e.g., MD5) are not recommended for high-security scenarios. Currently, it supports only OpenSSL and does not allow multi-thread concurrent operations. While it handles cryptographic computations, it does not manage key storage—applications must securely manage their own keys.
Key capabilities include:
Basic Concepts:
Applications can integrate Crypto Architecture Kit to perform secure cryptographic operations without worrying about underlying library differences. Typical use cases include:
Developers must choose algorithms according to security requirements and avoid insecure options like MD5 for critical scenarios. All operations should be performed sequentially due to lack of multi-thread support.
https://developer.huawei.com/consumer/en/doc/harmonyos-guides/crypto-architecture-kit