Key Agreement Using ECDH (C/C++) For details about the algorithm specifications, see ECDH. How to Develop Call OH_CryptoAsymKeyGenerator_Create, OH_CryptoAsymKeyGenerator_Generate, and OH_CryptoAsymKe
阅读全文
openharmony 鸿蒙 crypto-chacha20-encrypt-decrypt-ndk
Encryption and Decryption with a ChaCha20 Symmetric Key Pair (C/C++) The Crypto framework supports this algorithm since API version 22. For details about the algorithm specifications, see ChaCha20. Ad
阅读全文
openharmony 鸿蒙 crypto-sm2-sign-data-format-conversion
Converting SM2 Signature Formats (ArkTS) HarmonyOS supports the conversion between the DER and R|S formats. You can specify SM2 signature parameters and convert them to DER ciphertext. You can also ex
阅读全文
openharmony 鸿蒙 crypto-aes-wrap-encrypt-decrypt
Encryption and Decryption of Symmetric Keys with AES-WRAP (ArkTS) From API version 22, the crypto algorithm library supports encryption and decryption with AES-WRAP. For details, see AES-WRAP encrypti
阅读全文
openharmony 鸿蒙 crypto-generate-random-number-hardware-ndk
Generating Secure Random Numbers with Hardware Entropy Sources (C/C++) From API version 21, you can generate secure random number with hardware entropy sources. Random numbers are used to generate tem
阅读全文
openharmony 鸿蒙 crypto-des-sym-encrypt-decrypt-ecb-ndk
Encryption and Decryption with a DES Symmetric Key (ECB Mode) (C/C++) For details about the algorithm specifications, see DES. Adding the Dynamic Library in the CMake Script target_link_libraries(entr
阅读全文
openharmony 鸿蒙 crypto-rsa-asym-encrypt-decrypt-by-segment-ndk
Encryption and Decryption by Segment with an RSA Asymmetric Key Pair (C/C++) For details about the algorithm specifications, see RSA. Encryption Call OH_CryptoAsymKeyGenerator_Create and OH_CryptoAsym
阅读全文
openharmony 鸿蒙 crypto-generate-random-number-ndk
Generating Secure Random Numbers (C/C++) NOTE Since API version 12, wearable devices support operations related to obtaining random numbers. Random numbers are used to generate temporary session keys
阅读全文
openharmony 鸿蒙 crypto-generate-asym-key-pair-from-key-spec-ndk
Generating an Asymmetric Key Pair Based on Key Parameters (C/C++) This topic walks you through on how to generate an RSA, an ECC, and an SM2 asymmetric key pair (KeyPair) based on the specified key pa
阅读全文
openharmony 鸿蒙 crypto-generate-message-digest-sha3
Generating an MD Using SHA-3 (ArkTS) From API version 22, the crypto algorithm library supports digest operation with SHA-3. For details about the algorithm specifications, see Supported Algorithms an
阅读全文