Searched refs:CHECK_AND_SET_ERROR (Results 1 – 3 of 3) sorted by relevance
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/ |
| D | cc_ffcdh.c | 70 CHECK_AND_SET_ERROR((*pSizeBytes == 0), CC_FFCDH_INVALID_ARGUMENT_SIZE_ERROR); in LeBytesArrayToBeBytesWithoutZeros() 350 CHECK_AND_SET_ERROR(pDhUserCtx == NULL, CC_FFCDH_INVALID_CONTEXT_PTR_ERROR); in CC_FfcDhInitCtx() 380 CHECK_AND_SET_ERROR(pDhUserCtx == NULL, CC_FFCDH_INVALID_CONTEXT_PTR_ERROR); in CC_FfcDhFreeCtx() 729 …CHECK_AND_SET_ERROR(FFCDH_CHECK_CTX_VALID_TAG_BITS(pDhUserCtx->validTag, FFCDH_CTX_VALID_TAG_INIT_… in CC_FfcDhCtxSetSchemeParams() 733 CHECK_AND_SET_ERROR(pDomain->validTag != CC_FFC_DOMAIN_VALIDATION_TAG, in CC_FfcDhCtxSetSchemeParams() 757 … CHECK_AND_SET_ERROR(pDomain->ffcParamSetId != ffcParamSetId, CC_FFCDH_INVALID_DOMAIN_DATA_ERROR); in CC_FfcDhCtxSetSchemeParams() 767 CHECK_AND_SET_ERROR((pDomain->modLenWords * CC_32BIT_WORD_SIZE != ffcPrimeSize) || in CC_FfcDhCtxSetSchemeParams() 773 CHECK_AND_SET_ERROR(hashSize < minHashSize, CC_FFCDH_INVALID_LOW_HASH_SIZE_ERROR); in CC_FfcDhCtxSetSchemeParams() 779 CHECK_AND_SET_ERROR( in CC_FfcDhCtxSetSchemeParams() 788 CHECK_AND_SET_ERROR((macTagSize > CC_FFCDH_MAX_SIZE_OF_CONFIRM_MAC_TAG_BYTES) || in CC_FfcDhCtxSetSchemeParams() [all …]
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/ |
| D | cc_ffc_domain.c | 383 CHECK_AND_SET_ERROR((pDomain == NULL), CC_FFC_DOMAIN_INVALID_DOMAIN_PTR_ERROR); in FfcFips186v4FindOrderQ() 384 CHECK_AND_SET_ERROR((pRndContext == NULL), CC_FFC_DOMAIN_INVALID_RND_CTX_PTR_ERROR); in FfcFips186v4FindOrderQ() 455 CHECK_AND_SET_ERROR((generateSeed == CC_FFC_USE_GIVEN_SEED) && (isPrime == 0), in FfcFips186v4FindOrderQ() 509 CHECK_AND_SET_ERROR(pDomain == NULL, CC_FFC_DOMAIN_INVALID_DOMAIN_PTR_ERROR); in FfcFips186v4FindPrimeP() 510 CHECK_AND_SET_ERROR(pRndContext == NULL, CC_FFC_DOMAIN_INVALID_RND_CTX_PTR_ERROR); in FfcFips186v4FindPrimeP() 679 CHECK_AND_SET_ERROR((pDomain == NULL), CC_FFC_DOMAIN_INVALID_DOMAIN_PTR_ERROR); in FfcFips186v4CreateGenerator() 680 CHECK_AND_SET_ERROR((pRndContext == NULL), CC_FFC_DOMAIN_INVALID_RND_CTX_PTR_ERROR); in FfcFips186v4CreateGenerator() 681 CHECK_AND_SET_ERROR((pDomain->validTag != CC_FFC_DOMAIN_VALIDATION_TAG), in FfcFips186v4CreateGenerator() 824 CHECK_AND_SET_ERROR((pDomain == NULL), CC_FFC_DOMAIN_INVALID_DOMAIN_PTR_ERROR); in FfcDomainMinCheckInput() 825 CHECK_AND_SET_ERROR((pRndContext == NULL), CC_RND_CONTEXT_PTR_INVALID_ERROR); in FfcDomainMinCheckInput() [all …]
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
| D | cc_ffc_domain.h | 64 #define CHECK_AND_SET_ERROR(expr, errMsg) if((expr)) {err = (errMsg); goto End;} macro
|