Home
last modified time | relevance | path

Searched defs:keyMaterial (Results 1 – 25 of 33) sorted by relevance

12

/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ecc.c75 static int32_t EccKeyMaterialXyzSizeCheck(const struct KeyMaterialEcc *keyMaterial) in EccKeyMaterialXyzSizeCheck()
90 const struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)(key->data); in EccKeyCheck() local
106 int32_t HksMbedtlsEccGetKeyCurveNist(const struct KeyMaterialEcc *keyMaterial, mbedtls_ecp_group_id… in HksMbedtlsEccGetKeyCurveNist()
118 const struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)(key->data); in HksEccKeyMaterialToPub() local
146 const struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)(key->data); in HksEccKeyMaterialToPri() local
171 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)rawMaterial; in EccSaveKeyMaterial() local
255 const struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)(keyIn->data); in GetEccPubKeyCheckParams() local
275 const struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)(keyIn->data); in HksMbedtlsGetEccPubKey() local
Dhks_mbedtls_rsa.c63 static int32_t RsaKeyMaterialNedSizeCheck(const struct KeyMaterialRsa *keyMaterial) in RsaKeyMaterialNedSizeCheck()
81 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(key->data); in RsaKeyCheck() local
107 struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)rawMaterial; in RsaSaveKeyMaterial() local
189 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(key->data); in RsaKeyMaterialToCtx() local
422 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(keyIn->data); in GetRsaPubKeyCheckParams() local
437 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(keyIn->data); in HksMbedtlsGetRsaPubKey() local
Dhks_mbedtls_dh.c79 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)rawMaterial; in DhSaveKeyMaterial() local
164 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)input->data; in HksMbedtlsGetDhPubKey() local
187 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in DhKeyMaterialToCtx() local
Dhks_mbedtls_x25519.c110 static int32_t X25519CheckKeyMaterialPubPriSize(const struct KeyMaterial25519 *keyMaterial) in X25519CheckKeyMaterialPubPriSize()
141 … int32_t X25519CheckKeySize(const struct HksBlob *key, const struct KeyMaterial25519 *keyMaterial,… in X25519CheckKeySize()
179 struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)rawMaterial; in X25519SaveKeyMaterial() local
263 const struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)(pubKey->data); in X25519KeyMaterialToPub() local
298 const struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)(nativeKey->data); in X25519KeyMaterialToPri() local
372 const struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)(keyIn->data); in GetX25519PubKeyCheckParams() local
393 const struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)(keyIn->data); in HksMbedtlsGetX25519PubKey() local
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_crypto_adapter.c316 struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)keyIn->data; in CheckCurve25519KeySize() local
332 struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)keyIn->data; in CheckFormatCurve25519Key() local
351 struct KeyMaterial25519 *keyMaterial = (struct KeyMaterial25519 *)keyIn->data; in FormatCurve25519Key() local
367 int32_t GetCurve25519FromKeyMaterial(const bool isPubKey, const struct HksBlob *keyMaterial, in GetCurve25519FromKeyMaterial()
413 struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)keyIn->data; in FormatRsaKey() local
440 struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)keyIn->data; in FormatDsaKey() local
471 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)keyIn->data; in FormatEccKey() local
497 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)keyIn->data; in FormatDhKey() local
516 …tKeyToMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *key, struct HksBlob *keyMaterial) in HksSetKeyToMaterial()
542 int32_t HksGetKeyFromMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *keyMaterial, struc… in HksGetKeyFromMaterial()
[all …]
Dhks_check_paramset.c369 struct HksPubKeyInfo *keyMaterial = (struct HksPubKeyInfo *)(key->data); in CheckImportKeySize() local
472 struct HksKeyMaterialRsa *keyMaterial = (struct HksKeyMaterialRsa *)(key->data); in CheckRsaKeyLen() local
502 struct HksKeyMaterialEcc *keyMaterial = (struct HksKeyMaterialEcc *)(key->data); in CheckEccKeyLen() local
540 struct HksKeyMaterialDsa *keyMaterial = (struct HksKeyMaterialDsa *)(key->data); in CheckDsaKeyLen() local
582 struct HksKeyMaterial25519 *keyMaterial = (struct HksKeyMaterial25519 *)(key->data); in CheckCurve25519KeyLen() local
621 struct HksKeyMaterialDh *keyMaterial = (struct HksKeyMaterialDh *)(key->data); in CheckDHKeyLen() local
/base/security/crypto_framework/test/unittest/src/
Dcrypto_sm4_generator_test.cpp286 uint8_t keyMaterial[] = { variable
325 uint8_t keyMaterial[] = { variable
364 uint8_t keyMaterial[] = { variable
409 uint8_t keyMaterial[] = { variable
560 uint8_t keyMaterial[] = { variable
588 uint8_t keyMaterial[] = { variable
623 uint8_t keyMaterial[] = { variable
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_inner_test.cpp273 HksBlob keyMaterial = {.size = 0, .data = nullptr}; variable
291 HksBlob keyMaterial = {.size = 0, .data = nullptr}; variable
355 KeyMaterialRsa keyMaterial = {.keyAlg = HKS_ALG_RSA, .keySize = HKS_RSA_KEY_SIZE_512}; variable
394 KeyMaterialDsa *keyMaterial = (KeyMaterialDsa *)publicKey.data; variable
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_dh.c59 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in InitDhStruct() local
101 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)rawMaterial; in DhSaveKeyMaterial() local
148 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)input->data; in HksOpensslGetDhPubKey() local
Dhks_openssl_dsa.c52 const struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)(key->data); in InitDsaStructKey() local
93 const struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)(key->data); in InitDsaStructParameter() local
188 struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)rawMaterial; in DsaKeyMaterialParam() local
203 struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)rawMaterial; in DsaKeyMaterialData() local
309 struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)input->data; in HksOpensslGetDsaPubKey() local
Dhks_openssl_rsa.c70 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(key->data); in RsaCheckKeyMaterial() local
80 int32_t InitRsaKeyBuf(const struct KeyMaterialRsa *keyMaterial, struct HksBlob *bufBlob) in InitRsaKeyBuf()
102 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(key->data); in InitRsaStruct() local
165 struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)rawMaterial; in RsaSaveKeyMaterial() local
240 struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)input->data; in HksOpensslGetRsaPubKey() local
Dhks_openssl_ecc.c74 …const EC_KEY *eccKey, const struct KeyMaterialEcc *keyMaterial, BIGNUM *pubX, BIGNUM *pubY, uint8_… in TransEccKeyToKeyBlob()
124 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)rawMaterial; in EccSaveKeyMaterial() local
208 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)input->data; in HksOpensslGetEccPubKey() local
234 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)key; in GetEccModules() local
Dhks_openssl_sm2.c81 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)rawMaterial; in EvpPkeyToKeyMaterialEc() local
153 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)keyBlob->data; in GetSm2Modules() local
265 struct KeyMaterialEcc keyMaterial = {0}; in Sm2InitKey() local
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_dh_helper.c58 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)rawMaterial; in DhSaveKeyMaterial() local
108 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in InitDhStruct() local
198 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)input->data; in DhGetDhPubKey() local
244 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)keyBuffer; in DhX509ToHksBlob() local
Dopenssl_dsa_helper.c79 const struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)(key->data); in InitDsa() local
287 struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)publicKey->data; in X509ToDsaPublicKey() local
354 struct KeyMaterialDsa *keyMaterial = (struct KeyMaterialDsa *)key->data; in SaveDsaKeyToHksBlob() local
Dopenssl_ecc_helper.c54const struct KeyMaterialEcc *keyMaterial, BIGNUM *pubX, BIGNUM *pubY, const BIGNUM *priv, uint8_t … in TransEccKeyToKeyBlob()
80 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)rawMaterial; in EccSaveKeyMaterial() local
161 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)key; in GetEccModules() local
432 struct KeyMaterialEcc *keyMaterial = (struct KeyMaterialEcc *)input->data; in GetEccPubKey() local
Dopenssl_rsa_helper.c33 struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)key->data; in SaveRsaKeyToHksBlob() local
165 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)(key->data); in InitRsa() local
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_app_cert_process.c45 …tic int32_t TransEccKeyToKeyBlob(const EC_KEY *eccKey, const struct HksKeyMaterialEcc *keyMaterial, in TransEccKeyToKeyBlob()
114 struct HksKeyMaterialEcc *keyMaterial = (struct HksKeyMaterialEcc *)rawMaterial.data; in SaveKeyMaterialEcc() local
144 struct HksKeyMaterialRsa *keyMaterial = (struct HksKeyMaterialRsa *)rawMaterial; in SaveKeyMaterialRsa() local
217 struct HksKeyMaterial25519 *keyMaterial = (struct HksKeyMaterial25519 *)buffer; in SaveKeyMaterialCurve25519() local
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_api_mbedtls.cpp305 KeyMaterialRsa *keyMaterial = (KeyMaterialRsa *)key.data; variable
346 KeyMaterialRsa *keyMaterial = (KeyMaterialRsa *)key.data; variable
401 KeyMaterialEcc *keyMaterial = (KeyMaterialEcc *)key.data; variable
466 KeyMaterialDh *keyMaterial = (KeyMaterialDh *)key.data; variable
500 KeyMaterialDh *keyMaterial = (KeyMaterialDh *)key.data; variable
Dhks_crypto_hal_dsa_key.cpp118 KeyMaterialDsa *keyMaterial = (KeyMaterialDsa *)key.data; variable
Dhks_crypto_hal_ecc_key.cpp192 KeyMaterialEcc *keyMaterial = (KeyMaterialEcc *)key.data; variable
Dhks_crypto_hal_rsa_key.cpp238 KeyMaterialRsa *keyMaterial = (KeyMaterialRsa *)key.data; variable
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/inc/
Dsym_common_defines.h31 HcfBlob keyMaterial; member
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
Dsym_key_openssl.c118 uint8_t *keyMaterial = (uint8_t *)HcfMalloc(keyLen, 0); in RandomSymmKey() local
240 uint8_t *keyMaterial = (uint8_t *)HcfMalloc(srcKey->len, 0); in CopySymmKey() local
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c185 const struct KeyMaterialRsa *keyMaterial = (struct KeyMaterialRsa *)key->data; in CheckLocalCipherParams() local
325 struct HksBlob keyMaterial = { 0, NULL }; in HksLocalSign() local
358 struct HksBlob keyMaterial = { 0, NULL }; in HksLocalVerify() local

12