/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/upgrade_key_test/src/ |
H A D | hks_upgrade_key_test.cpp | 169 struct HksBlob *plainBlob, struct HksBlob *cipherBlob) in TestDoEncrypt() argument 179 ret = HksEncrypt(keyAlias, encryptParamSet, plainBlob, cipherBlob); in TestDoEncrypt() 186 struct HksBlob *cipherBlob, struct HksBlob *decryptedBlob) in TestDoDecrypt() argument 196 ret = HksDecrypt(keyAlias, decryptParamSet, cipherBlob, decryptedBlob); in TestDoDecrypt() 249 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable 252 &cipherBlob); 260 &cipherBlob, &decryptedBlob);
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_ce_update_test.cpp | 381 struct HksBlob *plainBlob, struct HksBlob *cipherBlob, bool expectSuccess) in EncryptOnThreeStage() argument 392 ret = TestUpdateLoopFinish(&handleEncrypt, encryptParamSet, plainBlob, cipherBlob); in EncryptOnThreeStage() 401 struct HksBlob *cipherBlob, struct HksBlob *decryptedBlob, bool expectSuccess) in DecryptOnThreeStage() argument 412 ret = TestUpdateLoopFinish(&handleDecrypt, decryptParamSet, cipherBlob, decryptedBlob); in DecryptOnThreeStage() 517 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable 518 ret = HksEncryptForDe(&g_validKeyAlias[i], encryptParamSet, &plainBlob, &cipherBlob); 526 ret = HksDecryptForDe(&g_validKeyAlias[i], decryptParamSet, &cipherBlob, &decryptedBlob); 557 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable 558 ret = HksEncryptForDe(&g_invalidKeyAlias[i], encryptParamSet, &plainBlob, &cipherBlob); 593 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable [all …]
|
H A D | hks_backup_test.cpp | 242 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText }; variable 243 ret = HksEncrypt(&keyAlias, paramSet1, &plainBlob, &cipherBlob); 251 ret = HksDecrypt(&keyAlias, paramSet2, &cipherBlob, &decryptedBlob); 293 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText }; variable 294 ret = HksEncrypt(&keyAlias, paramSet1, &plainBlob, &cipherBlob); 302 ret = HksDecrypt(&keyAlias, paramSet2, &cipherBlob, &decryptedBlob);
|
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/ |
H A D | hks_compatibility_test.cpp | 206 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable 207 ret = HksEncryptForDe(&keyAlias, paramSet, &plainBlob, &cipherBlob); 249 struct HksBlob *plainBlob, struct HksBlob *cipherBlob) in TestDoEncrypt() argument 259 ret = HksEncryptForDe(keyAlias, encryptParamSet, plainBlob, cipherBlob); in TestDoEncrypt() 266 struct HksBlob *cipherBlob, struct HksBlob *decryptedBlob) in TestDoDecrypt() argument 276 ret = HksDecryptForDe(keyAlias, decryptParamSet, cipherBlob, decryptedBlob); in TestDoDecrypt() 303 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable 306 &cipherBlob); 313 …oDecrypt(&keyAlias, DECRYPT_AES_PARAMS, sizeof(DECRYPT_AES_PARAMS) / sizeof(HksParam), &cipherBlob, 450 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable [all …]
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/include/ |
H A D | hks_openssl_sm2.h | 50 const struct HksBlob *plainBlob, struct HksBlob *cipherBlob); 52 const struct HksBlob *cipherBlob, struct HksBlob *plainBlob);
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_sm2.c | 468 const struct HksBlob *plainBlob, struct HksBlob *cipherBlob) in HksOpensslSm2Encrypt() argument 475 if (EVP_PKEY_encrypt(ctx, cipherBlob->data, &cipherSize, plainBlob->data, in HksOpensslSm2Encrypt() 482 cipherBlob->size = (uint32_t)cipherSize; in HksOpensslSm2Encrypt() 488 const struct HksBlob *cipherBlob, struct HksBlob *plainBlob) in HksOpensslSm2Decrypt() argument 495 HKS_IF_NOT_SUCC_LOGE_RETURN(HksOpensslCheckBlob(cipherBlob), in HksOpensslSm2Decrypt() 501 if (EVP_PKEY_decrypt(ctx, plainBlob->data, &decryptSize, cipherBlob->data, in HksOpensslSm2Decrypt() 502 cipherBlob->size) != HKS_OPENSSL_SUCCESS) { in HksOpensslSm2Decrypt()
|
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/module_test/src/ |
H A D | hks_compatibility_module_test.cpp | 309 uint32_t encParamsCnt, struct HksBlob *plainBlob, struct HksBlob *cipherBlob) in TestDoServiceEncryptWithOtherUid() argument 332 ret = HksServiceEncrypt(&processInfo, keyAlias, encryptParamSet, plainBlob, cipherBlob); in TestDoServiceEncryptWithOtherUid() 339 uint32_t decParamsCnt, struct HksBlob *cipherBlob, struct HksBlob *decryptedBlob) in TestDoServiceDecryptWithOtherUid() argument 362 ret = HksServiceDecrypt(&processInfo, keyAlias, decryptParamSet, cipherBlob, decryptedBlob); in TestDoServiceDecryptWithOtherUid() 438 struct HksBlob cipherBlob = { .size = HKS_ARRAY_SIZE(cipherText), .data = cipherText}; variable 441 &plainBlob, &cipherBlob); 449 &cipherBlob, &decryptedBlob);
|
/ohos5.0/docs/zh-cn/application-dev/security/CryptoArchitectureKit/ |
H A D | crypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 92 Crypto_DataBlob cipherBlob; 158 cipherBlob = {.data = reinterpret_cast<uint8_t *>(cipherText), .len = (size_t)cipherLen}; 173 ret = OH_CryptoSymCipher_Final(decCtx, &cipherBlob, &decUpdate);
|
H A D | crypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 90 Crypto_DataBlob cipherBlob; 156 cipherBlob = {.data = reinterpret_cast<uint8_t *>(cipherText), .len = (size_t)cipherLen}; 171 ret = OH_CryptoSymCipher_Final(decCtx, &cipherBlob, &decUpdate);
|
H A D | crypto-aes-sym-encrypt-decrypt-gcm-by-segment.md | 97 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 98 return cipherBlob; 197 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 198 return cipherBlob;
|
H A D | crypto-rsa-asym-encrypt-decrypt-by-segment.md | 56 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 57 return cipherBlob; 122 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 123 return cipherBlob;
|
H A D | crypto-sm4-sym-encrypt-decrypt-gcm-by-segment.md | 97 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 98 return cipherBlob; 197 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 198 return cipherBlob;
|
/ohos5.0/docs/en/application-dev/security/CryptoArchitectureKit/ |
H A D | crypto-rsa-asym-encrypt-decrypt-by-segment.md | 56 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 57 return cipherBlob; 122 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 123 return cipherBlob;
|
H A D | crypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 91 Crypto_DataBlob cipherBlob; 157 cipherBlob = {.data = reinterpret_cast<uint8_t *>(cipherText), .len = (size_t)cipherLen}; 172 ret = OH_CryptoSymCipher_Final(decCtx, &cipherBlob, &decUpdate);
|
H A D | crypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 90 Crypto_DataBlob cipherBlob; 156 cipherBlob = {.data = reinterpret_cast<uint8_t *>(cipherText), .len = (size_t)cipherLen}; 171 ret = OH_CryptoSymCipher_Final(decCtx, &cipherBlob, &decUpdate);
|
H A D | crypto-sm4-sym-encrypt-decrypt-gcm-by-segment.md | 97 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 98 return cipherBlob; 197 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 198 return cipherBlob;
|
H A D | crypto-aes-sym-encrypt-decrypt-gcm-by-segment.md | 97 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 98 return cipherBlob; 197 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText }; 198 return cipherBlob;
|
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 1031 struct HksBlob cipherBlob = { outCipher->length, outCipher->val }; in AesGcmEncrypt() local 1040 res = HksEncrypt(&keyBlob, paramSet, &plainBlob, &cipherBlob); in AesGcmEncrypt() 1118 struct HksBlob cipherBlob = { cipher->length, cipher->val }; in AesGcmDecrypt() local 1128 res = HksDecrypt(&keyBlob, paramSet, &cipherBlob, &plainBlob); in AesGcmDecrypt()
|