/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/ |
D | cc_ecies.c | 128 CCEciesTempData_t *pTempBuff, /*in*/ in EciesKemEncrypt() argument 204 if (pTempBuff == NULL) in EciesKemEncrypt() 230 &pTempBuff->PrivKey, in EciesKemEncrypt() 231 &pTempBuff->PublKey, in EciesKemEncrypt() 232 &pTempBuff->tmp.KgTempBuff, in EciesKemEncrypt() 239 pEphUzPrivKey = &pTempBuff->PrivKey; // r in EciesKemEncrypt() 240 pEphUzPublKey = &pTempBuff->PublKey; // g~ = r*G in EciesKemEncrypt() 251 (uint8_t*)&pTempBuff->zz, /*out*/ in EciesKemEncrypt() 262 …&((uint8_t*)&pTempBuff->zz)[*pCipherDataSize], /*out*/ /* Next available space in zz where the (SV… in EciesKemEncrypt() 263 &pTempBuff->tmp.DhTempBuff); /*in*/ in EciesKemEncrypt() [all …]
|
D | cc_ecpki_kg.c | 57 CCEcpkiKgTempData_t *pTempBuff, /*in*/ in CC_EcpkiKeyPairGenerateBase() argument 85 if (pTempBuff == NULL) in CC_EcpkiKeyPairGenerateBase() 98 CC_PalMemCopy(pTempBuff, pDomain->ecR, sizeof(uint32_t)*orderSizeInWords); in CC_EcpkiKeyPairGenerateBase() 105 … (uint8_t*)pTempBuff/*MaxVect*/, (uint8_t*)pPrivKey->PrivKey/*RndVect*/); in CC_EcpkiKeyPairGenerateBase() 110 … err = EcWrstGenKeyPairBase(pDomain, ecX_ptr, ecY_ptr, pUserPrivKey, pUserPublKey, pTempBuff); in CC_EcpkiKeyPairGenerateBase() 126 CC_PalMemSetZero(pTempBuff, sizeof(CCEcpkiKgTempData_t)); in CC_EcpkiKeyPairGenerateBase() 163 CCEcpkiKgTempData_t *pTempBuff, /*in*/ in CC_EcpkiKeyPairGenerate() argument 172 pUserPrivKey, pUserPublKey, pTempBuff, pFipsCtx); in CC_EcpkiKeyPairGenerate()
|
D | cc_ecdsa_sign.c | 353 uint32_t *pTempBuff; in EcdsaSignFinishInt() local 421 pTempBuff = pSignD + orderSizeInWords; in EcdsaSignFinishInt() 462 pSignC, pSignD, pTempBuff); in EcdsaSignFinishInt()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/ |
D | mbedtls_cc_ecies.c | 200 CCEciesTempData_t *pTempBuff = NULL; in mbedtls_ecies_kem_encrypt_full() local 277 pTempBuff = (CCEciesTempData_t *)pBuff; in mbedtls_ecies_kem_encrypt_full() 287 …convert_mbed_to_cc_public_key(pGrp, pDomain, pRecipUzPublKey, pCcReciptUzPublKey, pTempBuff)) != 0) in mbedtls_ecies_kem_encrypt_full() 330 &pTempBuff->PrivKey, in mbedtls_ecies_kem_encrypt_full() 331 &pTempBuff->PublKey, in mbedtls_ecies_kem_encrypt_full() 332 &pTempBuff->tmp.KgTempBuff, in mbedtls_ecies_kem_encrypt_full() 341 pEphUzPrivKey = &pTempBuff->PrivKey; // r in mbedtls_ecies_kem_encrypt_full() 342 pEphUzPublKey = &pTempBuff->PublKey; // g~ = r*G in mbedtls_ecies_kem_encrypt_full() 346 pEphUzPrivKey = &pTempBuff->PrivKey; in mbedtls_ecies_kem_encrypt_full() 347 pEphUzPublKey = &pTempBuff->PublKey; in mbedtls_ecies_kem_encrypt_full() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_edw/ |
D | cc_ec_edw.c | 42 CCEcEdwTempBuff_t *pTempBuff) /*!< [in] pointer to the temp buffer. */ in CC_EcEdwSign() argument 54 pTempBuff == NULL) { in CC_EcEdwSign() 76 pSignSecrKey, pEcDomain, pTempBuff); in CC_EcEdwSign() 111 CCEcEdwTempBuff_t *pTempBuff) /*!< [in] the pointer to temp buffer. */ in CC_EcEdwVerify() argument 121 ((pMsg == NULL)^(msgSize == 0)) || pTempBuff == NULL) { in CC_EcEdwVerify() 141 pSignPublKey, pEcDomain, pTempBuff); in CC_EcEdwVerify() 171 CCEcEdwTempBuff_t *pTempBuff) in CC_EcEdwSeedKeyPair() argument 184 if(pTempBuff == NULL) in CC_EcEdwSeedKeyPair() 203 pSeed, pEcDomain, (uint32_t*)pTempBuff); in CC_EcEdwSeedKeyPair() 236 CCEcEdwTempBuff_t *pTempBuff) in CC_EcEdwKeyPair() argument [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/ |
D | cc_ecpki_build.h | 105 …CCEcpkiBuildTempData_t *pTempBuff /*!< [in] Pointer for a temporary buffer requ… 127 …C_EcpkiPubKeyBuildAndPartlyCheck(pDomain, pPubKeyIn, PublKeySizeInBytes, pUserPublKey, pTempBuff) \ argument 128 …ck((pDomain), (pPubKeyIn), (PublKeySizeInBytes), ECpublKeyPartlyCheck, (pUserPublKey), (pTempBuff)) 138 …CC_EcpkiPubKeyBuildAndFullCheck(pDomain, pPubKeyIn, PublKeySizeInBytes, pUserPublKey, pTempBuff) \ argument 139 …k((pDomain), (pPubKeyIn), (PublKeySizeInBytes), (ECpublKeyFullCheck), (pUserPublKey), (pTempBuff))
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | ec_wrst_genkey.c | 35 CCEcpkiKgTempData_t *pTempBuff) in EcWrstGenKeyPairBase() argument 51 if (pTempBuff == NULL) in EcWrstGenKeyPairBase() 68 (uint32_t*)pTempBuff); in EcWrstGenKeyPairBase() 112 CCEcpkiKgTempData_t *pTempBuff) /*!< [in] Pointer to temporary buffer.*/ in EcWrstGenKeyPair() argument 118 …EcWrstGenKeyPairBase(pDomain, pDomain->ecGx, pDomain->ecGy, pUserPrivKey, pUserPublKey, pTempBuff); in EcWrstGenKeyPair()
|
D | ec_wrst.h | 82 uint32_t *pTempBuff); 92 uint32_t *pTempBuff); 106 CCEcdhTempData_t *pTempBuff); 115 CCEcpkiKgTempData_t *pTempBuff); 123 CCEcpkiKgTempData_t *pTempBuff);
|
D | ec_wrst.c | 133 …uint32_t *pTempBuff) /*!< [in] Pointer to itemp buffer of size not less 2*modulusSize.… in EcWrstFullCheckPublKey() argument 144 outPointX = pTempBuff; in EcWrstFullCheckPublKey() 193 CCEcdhTempData_t *pTempBuff) /*!< [in] Pointer to temp buffer. */ in EcWrstDhDeriveSharedSecret() argument 205 outPointX = (uint32_t*)pTempBuff; in EcWrstDhDeriveSharedSecret() 235 CC_PalMemSetZero ( pTempBuff, sizeof(CCEcdhTempData_t) ); in EcWrstDhDeriveSharedSecret()
|
D | ec_wrst_dsa.c | 195 … uint32_t *pTempBuff) /*!< [in] Pointer to temp buffer. the buffer size must be in EcWrstDsaSign() argument 218 pEphemPublX = pTempBuff; //?? use pSignC to save mem in EcWrstDsaSign()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/ |
D | cc_ec_edw_api.h | 88 CCEcEdwTempBuff_t *pTempBuff /*!< [in] pointer to the temp buffer. */); 136 … CCEcEdwTempBuff_t *pTempBuff /*!< [in] Pointer to the temp buffer, for internal use. */); 156 … CCEcEdwTempBuff_t *pTempBuff /*!< [in] Pointer to the temp buffer. */);
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_genkey.c | 270 … uint32_t *pTempBuff) /*!< [in] pointer to temp buffer of size 3*modulusSizeInWords. */ in PkaRsaKgX931MillerRabinTest() argument 283 pTempP = &pTempBuff[pSizeInWords]; in PkaRsaKgX931MillerRabinTest() 284 pTempB = &pTempBuff[2*pSizeInWords]; in PkaRsaKgX931MillerRabinTest() 332 pTempBuff/*temp buff*/); in PkaRsaKgX931MillerRabinTest() 390 CC_PalMemSetZero(pTempBuff, 3*sizeof(uint32_t)*pSizeInWords); in PkaRsaKgX931MillerRabinTest() 553 … uint32_t *pTempBuff) /*!< [in] Temp buffer of size 2 max RSA buffer size. */ in PkaRsaKgX931FindPrime1() argument 590 pTempRem = &pTempBuff[0]; in PkaRsaKgX931FindPrime1() 649 pTempBuff+CALC_PRIME_PRODUCT); in PkaRsaKgX931FindPrime1() 689 … uint32_t *pTempBuff) /*!< [in] Temp buffer of size 2 max RSA buffer size. */ in PkaRsaKgX931FindPrime2() argument 732 pTempRem = &pTempBuff[0]; in PkaRsaKgX931FindPrime2() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | ecdsa_edwards.c | 81 CCEcEdwTempBuff_t *pTempBuff = NULL; // size is 3*ecEdwOrderSizeBytes in mbedtls_ecdsa_genkey_edwards() local 108 …pTempBuff = mbedtls_calloc(1, ((ecEdwOrderSizeBytes + sizeof(CCEcEdwTempBuff_t) + privKeySizeBytes… in mbedtls_ecdsa_genkey_edwards() 109 if (NULL == pTempBuff) in mbedtls_ecdsa_genkey_edwards() 115 pSeed = (uint8_t*)pTempBuff; in mbedtls_ecdsa_genkey_edwards() 116 pFuncTemp = (uint32_t*)pTempBuff + CALC_32BIT_WORDS_FROM_BYTES(ecEdwOrderSizeBytes); in mbedtls_ecdsa_genkey_edwards() 165 …mbedtls_zeroize_internal(pTempBuff, (ecEdwOrderSizeBytes + sizeof(CCEcEdwTempBuff_t) + privKeySize… in mbedtls_ecdsa_genkey_edwards() 166 mbedtls_free(pTempBuff); in mbedtls_ecdsa_genkey_edwards()
|
D | cc_ecp_internal.c | 467 CCEcpkiKgTempData_t *pTempBuff = NULL; in ecp_wrst_gen_keypair_base() local 483 …pTempBuff = mbedtls_calloc(1, (sizeof( CCEcpkiKgTempData_t ) + sizeof( CCRndContext_t ) + sizeof( … in ecp_wrst_gen_keypair_base() 484 if (NULL == pTempBuff) in ecp_wrst_gen_keypair_base() 489 pRndContext = (CCRndContext_t *)(pTempBuff + 1); in ecp_wrst_gen_keypair_base() 523 …PRIVATE(p), G->MBEDTLS_PRIVATE(Y).MBEDTLS_PRIVATE(p), pUserPrivKey, pUserPublKey, pTempBuff, NULL); in ecp_wrst_gen_keypair_base() 527 … rc = CC_EcpkiKeyPairGenerate(pRndContext, pDomain, pUserPrivKey, pUserPublKey, pTempBuff, NULL); in ecp_wrst_gen_keypair_base() 556 …mbedtls_zeroize_internal(pTempBuff, (sizeof( CCEcpkiKgTempData_t ) + sizeof( CCRndContext_t ) + si… in ecp_wrst_gen_keypair_base() 557 mbedtls_free(pTempBuff); in ecp_wrst_gen_keypair_base()
|
D | rsa_alt.c | 632 uint32_t *pTempBuff; /* temp buffer of size 3*key size in words */ in mbedtls_rsa_validate_params_alt() local 658 … if( ( pTempBuff = (uint32_t*)mbedtls_calloc( 3*keySizeWords/2, CC_32BIT_WORD_SIZE ) ) == NULL ) { in mbedtls_rsa_validate_params_alt() 689 &isPrime, pTempBuff/*3*modSizeWords*/, in mbedtls_rsa_validate_params_alt() 699 &isPrime, pTempBuff/*3*modSizeWords*/, in mbedtls_rsa_validate_params_alt() 783 mbedtls_rsa_zeroize( pTempBuff, 3*keySizeWords*CC_32BIT_WORD_SIZE/2 ); in mbedtls_rsa_validate_params_alt() 784 mbedtls_free( pTempBuff ); in mbedtls_rsa_validate_params_alt()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_generation.c | 80 CCEcpkiKgTempData_t *pTempBuff = NULL; in cc3xx_internal_gen_ecc_wstr_keypair() local 104 pTempBuff = mbedtls_calloc(1, pTempBuffsize); in cc3xx_internal_gen_ecc_wstr_keypair() 105 if (NULL == pTempBuff) { in cc3xx_internal_gen_ecc_wstr_keypair() 111 pRndContext = (CCRndContext_t *)(pTempBuff + 1); in cc3xx_internal_gen_ecc_wstr_keypair() 123 pUserPublKey, pTempBuff, NULL); in cc3xx_internal_gen_ecc_wstr_keypair() 137 CC_PalMemSetZero(pTempBuff, pTempBuffsize); in cc3xx_internal_gen_ecc_wstr_keypair() 138 mbedtls_free(pTempBuff); in cc3xx_internal_gen_ecc_wstr_keypair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 54 … uint32_t *pTempBuff) /*!< [in] pointer to the temp buffer. */ in EcEdwSeedKeyPair() argument 62 uint32_t *pPrivKey32/*az*/ = pTempBuff; in EcEdwSeedKeyPair() 137 CC_PalMemSetZero(pTempBuff, 3*edwSizeBytes); in EcEdwSeedKeyPair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/ |
D | cc_ffc_domain.c | 41 int32_t rabinTestsCount, int8_t *pIsPrime, uint32_t *pTempBuff,
|