Home
last modified time | relevance | path

Searched refs:derivationSpec (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A Dhks_openssl_kdf.c51 int32_t HksOpensslPbkdf2(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec, in HksOpensslPbkdf2() argument
54 …struct HksKeyDerivationParam *deriveParam = (struct HksKeyDerivationParam *)derivationSpec->algPar… in HksOpensslPbkdf2()
64 int32_t HksOpensslHkdf(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec, in HksOpensslHkdf() argument
67 …struct HksKeyDerivationParam *deriveParam = (struct HksKeyDerivationParam *)derivationSpec->algPar… in HksOpensslHkdf()
123 int32_t HksOpensslSmKdf(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec, in HksOpensslSmKdf() argument
129 …struct HksKeyDerivationParam *deriveParam = (struct HksKeyDerivationParam *)derivationSpec->algPar… in HksOpensslSmKdf()
H A Dhks_openssl_engine.c79 …const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec, const struct HksBlob *deri… in DeriveKeyCheckParam() argument
84 if ((derivationSpec == NULL) || (derivationSpec->algParam == NULL)) { in DeriveKeyCheckParam()
369 …const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec, struct HksBlob *derivedKey) in HksCryptoHalDeriveKey() argument
371 int32_t ret = DeriveKeyCheckParam(mainKey, derivationSpec, derivedKey); in HksCryptoHalDeriveKey()
374 DeriveKey func = (DeriveKey)GetAbility(HKS_CRYPTO_ABILITY_DERIVE_KEY(derivationSpec->algType)); in HksCryptoHalDeriveKey()
376 return func(mainKey, derivationSpec, derivedKey); in HksCryptoHalDeriveKey()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/include/
H A Dhks_openssl_kdf.h30 int32_t HksOpensslHkdf(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec,
33 int32_t HksOpensslPbkdf2(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec,
37 int32_t HksOpensslSmKdf(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec,
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
H A Dhks_mbedtls_kdf.c84 const struct HksKeySpec *derivationSpec, struct HksBlob *derivedKey) in HksMbedtlsDeriveKey() argument
86 …const struct HksKeyDerivationParam *derParam = (struct HksKeyDerivationParam *)(derivationSpec->al… in HksMbedtlsDeriveKey()
96 switch (derivationSpec->algType) { in HksMbedtlsDeriveKey()
106 … HKS_LOG_E("Unsupport derive key alg! mode = 0x%" LOG_PUBLIC "X", derivationSpec->algType); in HksMbedtlsDeriveKey()
H A Dhks_mbedtls_engine.c199 const struct HksKeySpec *derivationSpec, struct HksBlob *derivedKey) in HksCryptoHalDeriveKey() argument
201 DeriveKey func = (DeriveKey)GetAbility(HKS_CRYPTO_ABILITY_DERIVE_KEY(derivationSpec->algType)); in HksCryptoHalDeriveKey()
203 return func(mainKey, derivationSpec, derivedKey); in HksCryptoHalDeriveKey()
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_core_service_key_other.c114 …struct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, HKS_KEY_BYTES(HKS_AES_KEY_SIZE_256), &derPara… in GetMacKey() local
115 ret = HksCryptoHalDeriveKey(&mk, &derivationSpec, macKey); in GetMacKey()
H A Dhks_core_service_key_operate_one_stage.c392 struct HksKeySpec derivationSpec = { 0, 0, &derParam }; in HksCoreDeriveKey() local
393 HksFillKeySpec(paramSet, &derivationSpec); in HksCoreDeriveKey()
396 ret = HksCryptoHalDeriveKey(&key, &derivationSpec, derivedKey); in HksCoreDeriveKey()
H A Dhks_keyblob.c136 …struct HksKeySpec derivationSpec = { HKS_ALG_HKDF, HKS_KEY_BYTES(HKS_AES_KEY_SIZE_256), &derParam … in GetDeriveKey() local
137 GetDeriveKeyAlg(paramSet, &derivationSpec.algType); in GetDeriveKey()
157 ret = HksCryptoHalDeriveKey(&encryptKey, &derivationSpec, derivedKey); in GetDeriveKey()
H A Dhks_keyblob_lite.c88 …struct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, HKS_KEY_BYTES(HKS_AES_KEY_SIZE_256), &derPara… in GetDeriveMaterial() local
89 ret = HksCryptoHalDeriveKey(&mk, &derivationSpec, derivedMaterial); in GetDeriveMaterial()
H A Dhks_sm_import_wrap_key.c330 …struct HksKeySpec derivationSpec = { HKS_ALG_GMKDF, HKS_KEY_BYTES(HKS_SM4_KEY_SIZE_128), &derParam… in DeriveKeyBySm3() local
331 int32_t ret = HksCryptoHalDeriveKey(srcData, &derivationSpec, &deriveBlob); in DeriveKeyBySm3()
H A Dhks_core_service_three_stage.c1462 struct HksKeySpec derivationSpec = { 0, 0, &derParam }; in HksCoreDeriveThreeStageUpdate() local
1463 HksFillKeySpec(keyNode->runtimeParamSet, &derivationSpec); in HksCoreDeriveThreeStageUpdate()
1466 ret = HksCryptoHalDeriveKey(&rawKey, &derivationSpec, deriveBlob); in HksCoreDeriveThreeStageUpdate()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_sm3_cipher.cpp55 …struct HksKeySpec derivationSpec = { HKS_ALG_GMKDF, HKS_KEY_BYTES(HKS_SM4_KEY_SIZE_128), &derParam… in RunTestCase() local
56 EXPECT_EQ(HksOpensslSmKdf(mainKey, &derivationSpec, derivedKey), HKS_SUCCESS); in RunTestCase()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/include/
H A Dhks_mbedtls_kdf.h33 const struct HksKeySpec *derivationSpec, struct HksBlob *derivedKey);
/ohos5.0/base/security/huks/frameworks/huks_standard/main/core/src/
H A Dhks_local_engine.c242 struct HksKeySpec derivationSpec = { 0, 0, &derivationParam }; in HksLocalDeriveKey() local
244 HksFillKeySpec(paramSet, &derivationSpec); in HksLocalDeriveKey()
247 return HksCryptoHalDeriveKey(mainKey, &derivationSpec, derivedKey); in HksLocalDeriveKey()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/
H A Dhks_rkc_v1.c142 const struct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, dk->size, &derParam }; in RkcPbkdf2Hmac() local
143 int32_t ret = HksCryptoHalDeriveKey(rawKey, &derivationSpec, dk); in RkcPbkdf2Hmac()
H A Dhks_rkc.c159 const struct HksKeySpec derivationSpec = { HKS_ALG_HKDF, dk->size, &derParam }; in RkcHkdfHmac() local
160 int32_t ret = HksCryptoHalDeriveKey(rawKey, &derivationSpec, dk); in RkcHkdfHmac()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/common/include/
H A Dhks_crypto_hal.h183 …t32_t HksCryptoHalDeriveKey(const struct HksBlob *mainKey, const struct HksKeySpec *derivationSpec,