add an interface,determine whether there is device key.

Signed-off-by: zhao-zhen-zhou <zhaozhenzhou@huawei.com>
This commit is contained in:
zhao-zhen-zhou 2021-11-03 10:43:52 +08:00
parent 391f408220
commit a63e6ec9c9
2 changed files with 9 additions and 0 deletions

View File

@ -88,6 +88,8 @@ HKS_API_EXPORT int32_t HksUnwrapKey(const struct HksBlob *keyAlias, const struct
HKS_API_EXPORT int32_t HksBnExpMod(struct HksBlob *x, const struct HksBlob *a,
const struct HksBlob *e, const struct HksBlob *n);
HKS_API_EXPORT int32_t HcmIsDeviceKeyExist(const struct HksParamSet *paramSet);
#ifdef __cplusplus
}
#endif

View File

@ -568,3 +568,10 @@ HKS_API_EXPORT int32_t HksBnExpMod(struct HksBlob *x, const struct HksBlob *a,
return HKS_ERROR_NOT_SUPPORTED;
#endif
}
HKS_API_EXPORT int32_t HcmIsDeviceKeyExist(const struct HksParamSet *paramSet)
{
(void)paramSet;
return HKS_ERROR_NOT_SUPPORTED;
}