Home
last modified time | relevance | path

Searched refs:ksfDataRkcWithVer (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/
H A Dhks_rkc.c446 int32_t FillKsfDataRkcWithVer(struct HksKsfDataRkcWithVer *ksfDataRkcWithVer) in FillKsfDataRkcWithVer() argument
448 HKS_IF_NULL_LOGE_RETURN(ksfDataRkcWithVer, HKS_ERROR_INVALID_ARGUMENT, "Invalid rkc ksf"); in FillKsfDataRkcWithVer()
450 …(void)memset_s(ksfDataRkcWithVer, sizeof(struct HksKsfDataRkcWithVer), 0, sizeof(struct HksKsfData… in FillKsfDataRkcWithVer()
451 ksfDataRkcWithVer->rkVersion = g_hksRkcCfg.rkVersion; in FillKsfDataRkcWithVer()
452 ksfDataRkcWithVer->ksfDataRkc.rmkIter = g_hksRkcCfg.rmkIter; in FillKsfDataRkcWithVer()
453 ksfDataRkcWithVer->ksfDataRkc.rmkHashAlg = g_hksRkcCfg.rmkHashAlg; in FillKsfDataRkcWithVer()
457 ret = RkcMakeRandomMaterial(&(ksfDataRkcWithVer->ksfDataRkc)); in FillKsfDataRkcWithVer()
461 struct HksBlob salt = { HKS_RKC_SALT_LEN, ksfDataRkcWithVer->ksfDataRkc.rmkSalt }; in FillKsfDataRkcWithVer()
467 …(void)memset_s(ksfDataRkcWithVer, sizeof(struct HksKsfDataRkcWithVer), 0, sizeof(struct HksKsfData… in FillKsfDataRkcWithVer()
479 int32_t RkcWriteAllKsf(const struct HksKsfDataRkcWithVer *ksfDataRkcWithVer, in RkcWriteAllKsf() argument
[all …]
H A Dhks_rkc_rw.c278 …ExtractKsfBufRkc(const struct HksBlob *ksfFromFile, struct HksKsfDataRkcWithVer *ksfDataRkcWithVer) in ExtractKsfBufRkc() argument
287 ret = ExtractFieldFromBuffer(ksfFromFile, &ksfBufOffset, &(ksfDataRkcWithVer->rkVersion), in ExtractKsfBufRkc()
288 sizeof(ksfDataRkcWithVer->rkVersion)); in ExtractKsfBufRkc()
292 ret = ExtractKsfDataRkc(ksfFromFile, &ksfBufOffset, &(ksfDataRkcWithVer->ksfDataRkc)); in ExtractKsfBufRkc()
437 static int32_t FillKsfVerRkc(const struct HksKsfDataRkcWithVer *ksfDataRkcWithVer, in FillKsfVerRkc() argument
441 …int32_t ret = FillFieldToBuffer(&(ksfDataRkcWithVer->rkVersion), sizeof(ksfDataRkcWithVer->rkVersi… in FillKsfVerRkc()
445 ret = FillKsfDataRkc(&(ksfDataRkcWithVer->ksfDataRkc), ksfBuf, ksfBufOffset); in FillKsfVerRkc()
482 static int32_t FillKsfBufRkc(const struct HksKsfDataRkcWithVer *ksfDataRkcWithVer, struct HksBlob *… in FillKsfBufRkc() argument
491 ret = FillKsfVerRkc(ksfDataRkcWithVer, ksfBuf, &ksfBufOffset); in FillKsfBufRkc()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/include/
H A Dhks_rkc.h78 int32_t FillKsfDataRkcWithVer(struct HksKsfDataRkcWithVer *ksfDataRkcWithVer);
82 int32_t RkcWriteAllKsf(const struct HksKsfDataRkcWithVer *ksfDataRkcWithVer,