Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 13 of 13) sorted by relevance

/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/poly/
Dpoly.c121 uint32_t shift, shift_; /* shift left (in bits) needed for aligning data to 32-bit words */ in PolyAccCalcFullBlocks() local
142 shift = (size_t)pSrc % CC_32BIT_WORD_SIZE; in PolyAccCalcFullBlocks()
143 shift_ = CC_32BIT_WORD_SIZE - shift; in PolyAccCalcFullBlocks()
144 pSrc32 = (uint32_t*)((uint32_t)pSrc - shift); in PolyAccCalcFullBlocks()
147 if(shift) { in PolyAccCalcFullBlocks()
157 shift = shift << 3; /*now shift is in bits*/ in PolyAccCalcFullBlocks()
159 word0 <<= shift; in PolyAccCalcFullBlocks()
176 if(shift) { in PolyAccCalcFullBlocks()
178 … (uint32_t)GET_NON_ALIGNED_WORD(word0, pSrc32[1], shift, shift_)); in PolyAccCalcFullBlocks()
180 … (uint32_t)GET_NON_ALIGNED_WORD(pSrc32[1], pSrc32[2], shift, shift_)); in PolyAccCalcFullBlocks()
[all …]
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_ecdh.c105 unsigned char shift = 8 - (pGrp->nbits % 8); in runIt_ecdhPrimRandom() local
109 pRndBufA[i] = pRndBufA[i] << shift | pRndBufA[i + 1] >> (8 - shift); in runIt_ecdhPrimRandom()
111 pRndBufA[rnd_info_A.length - 1] <<= shift; in runIt_ecdhPrimRandom()
120 unsigned char shift = 8 - (pGrp->nbits % 8); in runIt_ecdhPrimRandom() local
124 pRndBufB[i] = pRndBufB[i] << shift | pRndBufB[i + 1] >> (8 - shift); in runIt_ecdhPrimRandom()
126 pRndBufB[rnd_info_B.length - 1] <<= shift; in runIt_ecdhPrimRandom()
Drun_integration_ecdsa.c225 unsigned char shift = 8 - (pGrp->nbits % 8); in runIt_ecdsaPrimVectorsTest() local
229 pRndBuf[i] = pRndBuf[i] << shift | pRndBuf[i + 1] >> (8 - shift); in runIt_ecdsaPrimVectorsTest()
231 pRndBuf[rnd_info.length - 1] <<= shift; in runIt_ecdsaPrimVectorsTest()
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dec_wrst_dsa.c154 uint32_t i, shift; in EcWrstDsaTruncateMsg() local
163 shift = (8 - (outSizeBits & 7UL)) & 7UL; in EcWrstDsaTruncateMsg()
164 if (shift) { in EcWrstDsaTruncateMsg()
166 pMsgOut[i] = (pMsgOut[i] >> shift) | in EcWrstDsaTruncateMsg()
167 (pMsgOut[i+1] << (32-shift)); in EcWrstDsaTruncateMsg()
169 pMsgOut[i] = pMsgOut[i] >> shift; in EcWrstDsaTruncateMsg()
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rnd_dma/
Dcc_rnd_common.c171 int8_t shift; in CC_RndGenerateVectorInRange() local
264 shift = (int8_t)(8 - (maxVectSizeBits & 7))&7; in CC_RndGenerateVectorInRange()
265 mask = 0xFF >> shift; in CC_RndGenerateVectorInRange()
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/
Dcc_dh.c111 uint8_t tmpByte, mask, mask1, shift; in CC_DhGeneratePubPrv() local
251 shift = ((8 - (L & 7)) & 7); in CC_DhGeneratePubPrv()
256 mask = 0x7F >> shift; in CC_DhGeneratePubPrv()
257 mask1 = 0x80 >> shift; in CC_DhGeneratePubPrv()
287 mask = 0xFF >> shift; in CC_DhGeneratePubPrv()
288 mask1 = 0x80 >> shift; in CC_DhGeneratePubPrv()
Dcc_dh_kg.c213 uint32_t shift; in DhX942FindPrimeQ() local
299 shift = 8*seedSizeBytes - seedSizeBits; in DhX942FindPrimeQ()
300 mask = 0xFF >> shift; in DhX942FindPrimeQ()
301 mask1 = 0x80 >> shift; in DhX942FindPrimeQ()
/trusted-firmware-m-3.5.0/platform/ext/target/arm/rss/common/native_drivers/
Datu_rss_drv.c133 enum atu_roba_t val, uint8_t region, uint8_t shift) in _set_bus_attribute() argument
140 p_atu->aturoba[region] = ((p_atu->aturoba[region] & ~(0x3u << shift)) | in _set_bus_attribute()
141 (val << shift)); in _set_bus_attribute()
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/
Dec_edw.c589 uint32_t isOddX = 0, shift; in EcEdwAddTwoScalarMult() local
592 shift = 31; in EcEdwAddTwoScalarMult()
613 isOddX = (pPointY[edwSizeWords-1] >> shift) & 1; in EcEdwAddTwoScalarMult()
614 pPointY[edwSizeWords-1] &= ~(1UL << shift); /*clean MSBit in Y-buffer*/ in EcEdwAddTwoScalarMult()
648 pResPoint[edwSizeWords-1] |= (isOddX << shift); in EcEdwAddTwoScalarMult()
/trusted-firmware-m-3.5.0/platform/ext/target/stm/common/hal/accelerator/
Decp_curves_alt.c1430 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument
1455 if( shift != 0 ) in ecp_mod_koblitz()
1456 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
1477 if( shift != 0 ) in ecp_mod_koblitz()
1478 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
/trusted-firmware-m-3.5.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dcrypto.c52 static void Hex2RegEx(char input[], uint32_t volatile reg[], int shift);
896 static void Hex2RegEx(char input[], uint32_t volatile reg[], int shift) in Hex2RegEx() argument
911 hex <<= shift; in Hex2RegEx()
/trusted-firmware-m-3.5.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Dcrypto.c53 static void Hex2RegEx(char input[], uint32_t volatile reg[], int shift);
838 static void Hex2RegEx(char input[], uint32_t volatile reg[], int shift) in Hex2RegEx() argument
853 hex <<= shift; in Hex2RegEx()
/trusted-firmware-m-3.5.0/platform/ext/target/cypress/psoc64/libs/core-lib/docs/html/
Djquery.js44shift();bD.fireWith(bx[0],bx[1])}}else{if(bx===true){bD.disable()}else{bB=[]}}}},bD={add:function(…
51shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}els…
96 ….b,V.a)*E;R=Math.ceil(((X%360)-22.5)/45);if(R<1){R+=8}while(R--){I.push(I.shift())}}for(T=0;T<P.le…
115 …us=function(m){if(typeof m=="string"){var l=arguments,o=m;Array.prototype.shift.call(l);return thi… method in Array