Encryption and Decryption of Symmetric Keys with AES-WRAP (C/C++) From API version 22, the crypto algorithm library supports encryption and decryption with AES-WRAP. For details, see AES-WRAP encrypti
阅读全文
openharmony 鸿蒙 crypto-key-derivation-using-pbkdf2-ndk
Key Derivation Using PBKDF2 (C/C++) For details about the corresponding algorithm specifications, see PBKDF2. How to Develop Call OH_CryptoKdfParams_Create and specify the string parameter PBKDF2 to c
阅读全文
openharmony 鸿蒙 crypto-key-agreement-using-dh-ndk
Key Agreement Using DH (C/C++) For details about the algorithm specifications, see DH. How to Develop Call OH_CryptoAsymKeyGenerator_Create and OH_CryptoAsymKeyGenerator_Generate to generate an asymme
阅读全文
openharmony 鸿蒙 crypto-chacha20-encrypt-decrypt-poly1305-ndk
Encryption and Decryption with a ChaCha20 Symmetric Key Pair (Poly1305) (C/C++) The Crypto framework supports this algorithm since API version 22. For details about the algorithm specifications, see C
阅读全文
openharmony 鸿蒙 crypto-key-derivation-using-hkdf-ndk
Key Derivation Using HKDF (C/C++) For details about the corresponding algorithm specifications, see HKDF. How to Develop Call OH_CryptoKdfParams_Create with the string parameter HKDF to create a key d
阅读全文
openharmony 鸿蒙 crypto-generate-random-number-hardware
Generating Secure Random Numbers with Hardware Entropy Sources (ArkTS) From API version 21, you can generate secure random number with hardware entropy sources. Random numbers are used to generate tem
阅读全文
openharmony 鸿蒙 crypto-generate-message-digest-sha3-ndk
Generating an MD Using SHA3-256 (C/C++) From API version 22, the crypto algorithm library supports digest operation with SHA3-256. For details about the algorithm specifications, see Supported Algorit
阅读全文
openharmony 鸿蒙 crypto-key-derivation-using-x963kdf
Key Derivation Using X963KDF (ArkTS) From API version 22, the crypto algorithm library supports key derivation with X963KDF. For details about the corresponding algorithm specifications, see X963KDF.
阅读全文
openharmony 鸿蒙 crypto-prikey-to-get-pubkey
Obtaining a Public Key from a Private Key (ArkTS) Since API version 23, the algorithm library supports obtaining a public key based on a private key. The following uses RSA as an example to describe h
阅读全文
openharmony 鸿蒙 crypto-sm2-sign-data-format-conversion-ndk
Converting SM2 Signature Formats (C/C++) HarmonyOS supports the conversion between the DER and R|S formats. You can specify SM2 ciphertext parameters and convert them to DER ciphertext. You can also e
阅读全文