Home
last modified time | relevance | path

Searched refs:cipherBlob (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/upgrade_key_test/src/
H A Dhks_upgrade_key_test.cpp169 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 Dhks_ce_update_test.cpp381 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 Dhks_backup_test.cpp242 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 Dhks_compatibility_test.cpp206 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 Dhks_openssl_sm2.h50 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 Dhks_openssl_sm2.c468 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 Dhks_compatibility_module_test.cpp309 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 Dcrypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md92 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 Dcrypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md90 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 Dcrypto-aes-sym-encrypt-decrypt-gcm-by-segment.md97 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
98 return cipherBlob;
197 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
198 return cipherBlob;
H A Dcrypto-rsa-asym-encrypt-decrypt-by-segment.md56 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
57 return cipherBlob;
122 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
123 return cipherBlob;
H A Dcrypto-sm4-sym-encrypt-decrypt-gcm-by-segment.md97 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 Dcrypto-rsa-asym-encrypt-decrypt-by-segment.md56 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
57 return cipherBlob;
122 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
123 return cipherBlob;
H A Dcrypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md91 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 Dcrypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md90 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 Dcrypto-sm4-sym-encrypt-decrypt-gcm-by-segment.md97 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
98 return cipherBlob;
197 let cipherBlob: cryptoFramework.DataBlob = { data: cipherText };
198 return cipherBlob;
H A Dcrypto-aes-sym-encrypt-decrypt-gcm-by-segment.md97 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 Dhuks_adapter.c1031 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()