Home
last modified time | relevance | path

Searched refs:scalar (Results 1 – 9 of 9) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_mont/
Dec_mont.c40 … uint32_t *scalar, /* [in] pointer to the scalar, the size = ec order size) */ in EcMontScalarmult() argument
80 scalar, pEcDomain->ecOrdSizeInWords); in EcMontScalarmult()
85 scalar, in EcMontScalarmult()
Dec_mont.h39 … uint32_t *scalar, /* [in] pointer to the scalar, the size = ec order size) */
64 uint32_t *scalar, /*!< [in] pointer to scalar. */
Dpka_ec_mont.c44 … uint32_t *scalar, /*!< [in] pointer to scalar in LE order of bytes. */ in EcMontPkaScalarMultWithLadderExe() argument
72 tmp = scalar[(i+CC_BITS_IN_32BIT_WORD-1) / CC_BITS_IN_32BIT_WORD - 1]; in EcMontPkaScalarMultWithLadderExe()
78 tmp = scalar[i / CC_BITS_IN_32BIT_WORD]; in EcMontPkaScalarMultWithLadderExe()
140 uint32_t *scalar, /*!< [in] pointer to scalar. */ in EcMontPkaScalMultWithLadder() argument
177 err = EcMontPkaScalarMultWithLadderExe(scalar, scalarSizeBits); in EcMontPkaScalMultWithLadder()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dcc_ecp_internal.c75 static int ecc_conv_scalar_to_mpi( uint8_t * scalar, size_t scalarSize, mbedtls_mpi * X) in ecc_conv_scalar_to_mpi() argument
87 if (CC_OK != (status = CC_CommonReverseMemcpy(outArr, scalar, scalarSize))) in ecc_conv_scalar_to_mpi()
108 static int ecc_conv_mpi_to_scalar( const mbedtls_mpi * X, uint8_t *scalar, size_t *scalarSize) in ecc_conv_mpi_to_scalar() argument
129 if (CC_OK != (status = CC_CommonReverseMemcpy(scalar, outArr, *scalarSize))) in ecc_conv_mpi_to_scalar()
150 uint8_t scalar[MBEDTLS_ECP_MAX_BYTES]; in ecp_mont_mul() local
159 ret = ecc_conv_mpi_to_scalar(m, scalar, &scalarSize); in ecp_mont_mul()
179 …rc = CC_EcMontScalarmult(resPoint, &resPointSize, scalar, scalarSize, px, CC_EC_MONT_MOD_SIZE_IN_B… in ecp_mont_mul()
183 mbedtls_zeroize_internal(scalar,scalarSize); in ecp_mont_mul()
342 uint8_t scalar[MBEDTLS_ECP_MAX_BYTES]; in ecp_mont_gen_keypair_base() local
376 …rc = CC_EcMontKeyPairBase(resPoint, &resPointSize, scalar, &scalarSize, px, CC_EC_MONT_MOD_SIZE_IN… in ecp_mont_gen_keypair_base()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nxp/common/Native_Driver/drivers/
Dfsl_casper.h243 …_Type *base, uint32_t resX[8], uint32_t resY[8], uint32_t X[8], uint32_t Y[8], uint32_t scalar[8]);
293 … *base, uint32_t resX[12], uint32_t resY[12], uint32_t X[12], uint32_t Y[12], uint32_t scalar[12]);
343 … *base, uint32_t resX[18], uint32_t resY[18], uint32_t X[18], uint32_t Y[18], uint32_t scalar[18]);
Dfsl_casper.c1160 …R_Type *base, uint32_t resX[8], uint32_t resY[8], uint32_t X[8], uint32_t Y[8], uint32_t scalar[8]) in CASPER_ECC_SECP256R1_Mul()
1180 scalar, NISTp256, NISTp256_q); in CASPER_ECC_SECP256R1_Mul()
1307 …e *base, uint32_t resX[12], uint32_t resY[12], uint32_t X[12], uint32_t Y[12], uint32_t scalar[12]) in CASPER_ECC_SECP384R1_Mul()
1327 scalar, NISTp384, NISTp384_q); in CASPER_ECC_SECP384R1_Mul()
1441 …e *base, uint32_t resX[18], uint32_t resY[18], uint32_t X[18], uint32_t Y[18], uint32_t scalar[18]) in CASPER_ECC_SECP521R1_Mul()
1468 scalar, NISTp521, NISTp521_q); in CASPER_ECC_SECP521R1_Mul()
2259 uint32_t *scalar, *M, *X, *Y, *Z, *mem; in Jac_scalar_multiplication() local
2291 scalar = &CASPER_MEM[(20U * N_wordlen + 80U) + 12U * (N_wordlen + 4U)]; in Jac_scalar_multiplication()
2299 CASPER_MEMCPY(scalar, k, sizeof(uint32_t) * N_wordlen); in Jac_scalar_multiplication()
2325 odd = (int32_t)((uint32_t)(casper_get_word(&scalar[0]) & 1U)); in Jac_scalar_multiplication()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dpka_ec_wrst_smul_no_scap.c319 … const uint32_t *scalar, /*!< [in] Pointer to the scalar buffer. */ in PkaEcWrstScalarMult() argument
333 scalarSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(scalar, scalSizeInWords); in PkaEcWrstScalarMult()
336 cmp = CC_CommonCmpLsWordsUnsignedCounters(scalar, scalSizeInWords, in PkaEcWrstScalarMult()
346 scalar, scalarSizeInBits, in PkaEcWrstScalarMult()
Dpka_ec_wrst_smul_scap.c387 … const uint32_t *scalar, /*!< [in] Pointer to the scalsr buffer. */ in PkaEcWrstScalarMult() argument
402 scalarSizeInBits = CC_CommonGetWordsCounterEffectiveSizeInBits(scalar, scalSizeInWords); in PkaEcWrstScalarMult()
405 cmp = CC_CommonCmpLsWordsUnsignedCounters(scalar, scalSizeInWords, in PkaEcWrstScalarMult()
414 scalar, scalarSizeInBits, in PkaEcWrstScalarMult()
Dpka_ec_wrst.h90 const uint32_t *scalar,