/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_mbedtls_ecc.c | 75 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
|
D | hks_mbedtls_rsa.c | 63 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
|
D | hks_mbedtls_dh.c | 79 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
|
D | hks_mbedtls_x25519.c | 110 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/ |
D | hks_crypto_adapter.c | 316 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 …]
|
D | hks_check_paramset.c | 369 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/ |
D | crypto_sm4_generator_test.cpp | 286 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/ |
D | hks_inner_test.cpp | 273 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/ |
D | hks_openssl_dh.c | 59 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
|
D | hks_openssl_dsa.c | 52 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
|
D | hks_openssl_rsa.c | 70 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
|
D | hks_openssl_ecc.c | 74 …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
|
D | hks_openssl_sm2.c | 81 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/ |
D | openssl_dh_helper.c | 58 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
|
D | openssl_dsa_helper.c | 79 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
|
D | openssl_ecc_helper.c | 54 …const 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
|
D | openssl_rsa_helper.c | 33 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/ |
D | cert_manager_app_cert_process.c | 45 …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/ |
D | hks_crypto_hal_api_mbedtls.cpp | 305 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
|
D | hks_crypto_hal_dsa_key.cpp | 118 KeyMaterialDsa *keyMaterial = (KeyMaterialDsa *)key.data; variable
|
D | hks_crypto_hal_ecc_key.cpp | 192 KeyMaterialEcc *keyMaterial = (KeyMaterialEcc *)key.data; variable
|
D | hks_crypto_hal_rsa_key.cpp | 238 KeyMaterialRsa *keyMaterial = (KeyMaterialRsa *)key.data; variable
|
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/inc/ |
D | sym_common_defines.h | 31 HcfBlob keyMaterial; member
|
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/ |
D | sym_key_openssl.c | 118 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/ |
D | hks_local_engine.c | 185 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
|