Home
last modified time | relevance | path

Searched refs:derParam (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
H A Dhks_mbedtls_kdf.c40 …nt32_t DeriveKeyPbkdf2(const struct HksBlob *mainKey, const struct HksKeyDerivationParam *derParam, in DeriveKeyPbkdf2() argument
55 ret = mbedtls_pkcs5_pbkdf2_hmac(&ctx, mainKey->data, mainKey->size, derParam->salt.data, in DeriveKeyPbkdf2()
56 derParam->salt.size, derParam->iterations, derivedKey->size, derivedKey->data); in DeriveKeyPbkdf2()
69 … int32_t DeriveKeyHkdf(const struct HksBlob *mainKey, const struct HksKeyDerivationParam *derParam, in DeriveKeyHkdf() argument
72 …int32_t ret = mbedtls_hkdf(info, derParam->salt.data, derParam->salt.size, mainKey->data, mainKey-… in DeriveKeyHkdf()
73 derParam->info.data, derParam->info.size, derivedKey->data, derivedKey->size); in DeriveKeyHkdf()
86 …const struct HksKeyDerivationParam *derParam = (struct HksKeyDerivationParam *)(derivationSpec->al… in HksMbedtlsDeriveKey() local
89 int32_t ret = HksToMbedtlsDigestAlg(derParam->digestAlg, &mbedtlsAlg); in HksMbedtlsDeriveKey()
99 return DeriveKeyPbkdf2(mainKey, derParam, info, derivedKey); in HksMbedtlsDeriveKey()
103 return DeriveKeyHkdf(mainKey, derParam, info, derivedKey); in HksMbedtlsDeriveKey()
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_core_service_key_other.c109 struct HksKeyDerivationParam derParam = { in GetMacKey() local
114 …uct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, HKS_KEY_BYTES(HKS_AES_KEY_SIZE_256), &derParam }; in GetMacKey()
H A Dhks_core_service_key_operate_one_stage.c391 struct HksKeyDerivationParam derParam = { { 0, NULL }, { 0, NULL }, 0, 0 }; in HksCoreDeriveKey() local
392 struct HksKeySpec derivationSpec = { 0, 0, &derParam }; in HksCoreDeriveKey()
394 HksFillKeyDerivationParam(paramSet, &derParam); in HksCoreDeriveKey()
H A Dhks_keyblob_lite.c83 struct HksKeyDerivationParam derParam = { in GetDeriveMaterial() local
88 …uct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, HKS_KEY_BYTES(HKS_AES_KEY_SIZE_256), &derParam }; in GetDeriveMaterial()
H A Dhks_sm_import_wrap_key.c326 struct HksKeyDerivationParam derParam = { in DeriveKeyBySm3() local
330 …ruct HksKeySpec derivationSpec = { HKS_ALG_GMKDF, HKS_KEY_BYTES(HKS_SM4_KEY_SIZE_128), &derParam }; in DeriveKeyBySm3()
H A Dhks_keyblob.c130 struct HksKeyDerivationParam derParam = { in GetDeriveKey() local
136 …truct HksKeySpec derivationSpec = { HKS_ALG_HKDF, HKS_KEY_BYTES(HKS_AES_KEY_SIZE_256), &derParam }; in GetDeriveKey()
H A Dhks_core_service_three_stage.c1461 struct HksKeyDerivationParam derParam = { { 0, NULL }, { 0, NULL }, 0, 0 }; in HksCoreDeriveThreeStageUpdate() local
1462 struct HksKeySpec derivationSpec = { 0, 0, &derParam }; in HksCoreDeriveThreeStageUpdate()
1464 HksFillKeyDerivationParam(keyNode->runtimeParamSet, &derParam); in HksCoreDeriveThreeStageUpdate()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_sm3_cipher.cpp48 struct HksKeyDerivationParam derParam = { in RunTestCase() local
55 …ruct HksKeySpec derivationSpec = { HKS_ALG_GMKDF, HKS_KEY_BYTES(HKS_SM4_KEY_SIZE_128), &derParam }; in RunTestCase()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/
H A Dhks_rkc_v1.c137 struct HksKeyDerivationParam derParam = { in RkcPbkdf2Hmac() local
142 const struct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, dk->size, &derParam }; in RkcPbkdf2Hmac()
H A Dhks_rkc.c154 struct HksKeyDerivationParam derParam = { in RkcHkdfHmac() local
159 const struct HksKeySpec derivationSpec = { HKS_ALG_HKDF, dk->size, &derParam }; in RkcHkdfHmac()