diff --git a/frameworks/crypto_operation/mac.c b/frameworks/crypto_operation/mac.c index 785b756b804eebe888c2741f46b1f701c4156423..06d60cb6564437b8f9ef08d90a978f4e9b451bc1 100644 --- a/frameworks/crypto_operation/mac.c +++ b/frameworks/crypto_operation/mac.c @@ -158,8 +158,8 @@ HcfResult HcfMacCreate(const char *algoName, HcfMac **mac) } HcfMacSpiCreateFunc createSpiFunc = FindAbility(algoName); if (createSpiFunc == NULL) { - LOGE("Algo not supported!"); - return HCF_NOT_SUPPORT; + LOGE("Algo name is error!"); + return HCF_INVALID_PARAMS; } HcfMacImpl *returnMacApi = (HcfMacImpl *)HcfMalloc(sizeof(HcfMacImpl), 0); if (returnMacApi == NULL) { diff --git a/frameworks/crypto_operation/md.c b/frameworks/crypto_operation/md.c index fb85429c47a729809e79cabcfca5cc99476d21b5..5db5b77ab152b87a0391a34b24b128cfa1fb5257 100644 --- a/frameworks/crypto_operation/md.c +++ b/frameworks/crypto_operation/md.c @@ -146,8 +146,8 @@ HcfResult HcfMdCreate(const char *algoName, HcfMd **md) } HcfMdSpiCreateFunc createSpiFunc = FindAbility(algoName); if (createSpiFunc == NULL) { - LOGE("Algo not supported!"); - return HCF_NOT_SUPPORT; + LOGE("Algo name is error!"); + return HCF_INVALID_PARAMS; } HcfMdImpl *returnMdApi = (HcfMdImpl *)HcfMalloc(sizeof(HcfMdImpl), 0); if (returnMdApi == NULL) {