Generating a CMAC (C/C++) A block cipher (such as AES) and a key are used to generate an authentication code, which verifies that a message has not been alerted during transmission. How to Develop In
阅读全文
openharmony 鸿蒙 crypto-sm2-ciphertext-conversion-ndk
Converting SM2 Ciphertext (C/C++) The Crypto framework supports the SM2 ciphertext in ASN.1 format. The SM2 ciphertext consists of C1, C3 (the hash value), and C2 (the encrypted data). For details abo
阅读全文
openharmony 鸿蒙 crypto-compute-hmac-ndk
Generating an HMAC (C/C++) A hash-based message authentication code (HMAC) uses a specified digest algorithm to generate a MAC based on the key and message shared by communicating parties. The MAC is
阅读全文
openharmony 鸿蒙 crypto-chacha20-encrypt-decrypt
Encryption and Decryption with a ChaCha20 Symmetric Key Pair (ArkTS) The Crypto framework supports this algorithm since API version 22. For details about the algorithm specifications, see ChaCha20. Ho
阅读全文
openharmony 鸿蒙 crypto-rsa-encoded-decoded-ndk
Encoding and Decoding with an RSA Private Key (C/C++) Encoding Call OH_CryptoAsymKeyGenerator_Create and OH_CryptoAsymKeyGenerator_Generate to generate an asymmetric key pair (keyPair) of the RSA2048
阅读全文
openharmony 鸿蒙 crypto-chacha20-encrypt-decrypt-poly1305
Encryption and Decryption with a ChaCha20 Symmetric Key Pair (Poly1305) (ArkTS) The Crypto framework supports this algorithm since API version 22. For details about the algorithm specifications, see C
阅读全文
openharmony 鸿蒙 crypto-des-sym-encrypt-decrypt-ecb
Encryption and Decryption with a DES Symmetric Key (ECB Mode) (ArkTS) For details about the algorithm specifications, see DES. Encryption Call cryptoFramework.createSymKeyGenerator and SymKeyGenerator
阅读全文
openharmony 鸿蒙 crypto-aes-decryption-error-faq
AES Decryption Failure Returning 17630001 When using the encryption and decryption algorithm library, developers often encounter symmetric algorithm decryption error 17630001. The following describes
阅读全文
openharmony 鸿蒙 crypto-key-agreement-using-x25519-ndk
Key Agreement Using X25519 (C/C++) For details about the algorithm specifications, see X25519. How to Develop Call OH_CryptoAsymKeyGenerator_Create, OH_CryptoAsymKeyGenerator_Generate, and OH_CryptoAs
阅读全文
openharmony 鸿蒙 crypto-sm2-asym-encrypt-decrypt-ndk
Encryption and Decryption with an SM2 Asymmetric Key Pair (C/C++) For details about the algorithm specifications, see SM2. Encryption Call OH_CryptoAsymKeyGenerator_Create and OH_CryptoAsymKeyGenerato
阅读全文