/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
H A D | hks_mbedtls_kdf.c | 40 …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 D | hks_core_service_key_other.c | 109 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 D | hks_core_service_key_operate_one_stage.c | 391 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 D | hks_keyblob_lite.c | 83 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 D | hks_sm_import_wrap_key.c | 326 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 D | hks_keyblob.c | 130 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 D | hks_core_service_three_stage.c | 1461 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 D | hks_crypto_hal_sm3_cipher.cpp | 48 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 D | hks_rkc_v1.c | 137 struct HksKeyDerivationParam derParam = { in RkcPbkdf2Hmac() local 142 const struct HksKeySpec derivationSpec = { HKS_ALG_PBKDF2, dk->size, &derParam }; in RkcPbkdf2Hmac()
|
H A D | hks_rkc.c | 154 struct HksKeyDerivationParam derParam = { in RkcHkdfHmac() local 159 const struct HksKeySpec derivationSpec = { HKS_ALG_HKDF, dk->size, &derParam }; in RkcHkdfHmac()
|