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
阅读全文
openharmony 鸿蒙 crypto-convert-compressed-or-uncompressed-ECC-point-ndk
Converting Compressed or Uncompressed ECC Point Data (C/C++) You can convert compressed or uncompressed point data into a Point object for generating a key object, or convert a Point object into compr
阅读全文
openharmony 鸿蒙 crypto-key-derivation-using-x963kdf-ndk
Key Derivation Using X963KDF (C/C++) From API version 22, the crypto algorithm library supports key derivation with X963KDF. For details about the corresponding algorithm specifications, see X963KDF.
阅读全文