Home
last modified time | relevance | path

Searched refs:pBuf (Results 1 – 10 of 10) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_ecdh.c179 unsigned char *pBuf = NULL; in runIt_ecdhExchange() local
193 ALLOC(bufPtr, pBuf, BUF_SIZE); in runIt_ecdhExchange()
200 memset(pBuf, 0x00, BUF_SIZE); in runIt_ecdhExchange()
201 vbuf = pBuf; in runIt_ecdhExchange()
202 …RUNIT_ASSERT_API(mbedtls_ecdh_make_params(pSrv, &len, pBuf, BUF_SIZE, mbedtls_ctr_drbg_random, gpR… in runIt_ecdhExchange()
203 RUNIT_ASSERT_API(mbedtls_ecdh_read_params(pCli, &vbuf, pBuf + len) == 0); in runIt_ecdhExchange()
205 memset(pBuf, 0x00, BUF_SIZE); in runIt_ecdhExchange()
206 …RUNIT_ASSERT_API(mbedtls_ecdh_make_public(pCli, &len, pBuf, BUF_SIZE, mbedtls_ctr_drbg_random, gpR… in runIt_ecdhExchange()
207 RUNIT_ASSERT_API(mbedtls_ecdh_read_public(pSrv, pBuf, len) == 0); in runIt_ecdhExchange()
208 …RUNIT_ASSERT_API(mbedtls_ecdh_calc_secret(pSrv, &len, pBuf, BUF_SIZE, mbedtls_ctr_drbg_random, gpR… in runIt_ecdhExchange()
[all …]
Drun_integration_ecies.c71 uint32_t *pBuf = NULL; in runIt_eciesRandom() local
94 ALLOC32(bufPtr, pBuf, MBEDTLS_ECIES_MIN_BUFF_LEN_BYTES); in runIt_eciesRandom()
99 memset(pBuf, 0, MBEDTLS_ECIES_MIN_BUFF_LEN_BYTES); in runIt_eciesRandom()
111 …dtls_ecp_point_write_binary(pGrp, pQ, MBEDTLS_ECP_PF_UNCOMPRESSED, &olen, pBuf, MBEDTLS_ECIES_MIN_… in runIt_eciesRandom()
112 RUNIT_PRINT_BUF(pBuf, olen, "public binary"); in runIt_eciesRandom()
114 RUNIT_ASSERT_API(mbedtls_mpi_write_binary(&d, pBuf, mbedtls_mpi_size(&d)) == 0); in runIt_eciesRandom()
115 RUNIT_PRINT_BUF(pBuf, mbedtls_mpi_size(&d), "private binary"); in runIt_eciesRandom()
128 pBuf, in runIt_eciesRandom()
144 pBuf, in runIt_eciesRandom()
202 uint32_t *pBuf = NULL; in runIt_eciesVector() local
[all …]
Drun_integration_asset_prov.c137 uint32_t *pBuf = NULL; in runIt_assetProv() local
148 ALLOC32(bufPtr, pBuf, CC_ASSET_PROV_MAX_ASSET_PKG_SIZE); in runIt_assetProv()
156 pBuf, in runIt_assetProv()
159 RUNIT_ASSERT(memcmp(pBuf, EXP_ASSET_BIN, assetLen) == 0); in runIt_assetProv()
183 uint32_t *pBuf = NULL; in runIt_assetProv() local
194 ALLOC32(bufPtr, pBuf, CC_ASSET_PROV_MAX_ASSET_PKG_SIZE); in runIt_assetProv()
203 pBuf, in runIt_assetProv()
206 RUNIT_ASSERT(memcmp(pBuf, EXP_ASSET_BIN, assetLen) == 0); in runIt_assetProv()
Drun_integration_gcm.c140 …uint8_t *pBuf = NULL, *pCipher = NULL, *pPlainBuf = NULL, *pTagBuf = NULL, *pIvBuf = NULL, *pAddBu… in runIt_gcm() local
146 ALLOC(bufPtr, pBuf, ct_len); in runIt_gcm()
153 memset(pBuf, 0, sizeof(ct)); in runIt_gcm()
170 pBuf, in runIt_gcm()
174 RUNIT_PRINT_BUF(pBuf, ct_len, "pBuf"); in runIt_gcm()
180 RUNIT_ASSERT(memcmp(pBuf, ct, pt_len) == 0); in runIt_gcm()
188 memset(pBuf, 0, sizeof(ct)); in runIt_gcm()
203 pBuf, in runIt_gcm()
208 RUNIT_ASSERT(memcmp(pBuf, pt, pt_len) == 0); in runIt_gcm()
215 memset(pBuf, 0, sizeof(ct)); in runIt_gcm()
[all …]
Drun_integration_ecdsa.c73 unsigned char *pBuf = NULL; in runIt_ecdsaPrimRandomTest() local
82 ALLOC(bufPtr, pBuf, DIGEST_SIZE); in runIt_ecdsaPrimRandomTest()
91 memset(pBuf, 0, DIGEST_SIZE); in runIt_ecdsaPrimRandomTest()
93 RUNIT_ASSERT(mbedtls_ctr_drbg_random(pCtrDrbg, pBuf, DIGEST_SIZE) == 0); in runIt_ecdsaPrimRandomTest()
96 …RUNIT_ASSERT_API(mbedtls_ecdsa_sign(pGrp, &r, &s, &d, pBuf, DIGEST_SIZE, mbedtls_ctr_drbg_random, … in runIt_ecdsaPrimRandomTest()
97 RUNIT_ASSERT_API(mbedtls_ecdsa_verify(pGrp, pBuf, DIGEST_SIZE, pQ, &r, &s) == 0); in runIt_ecdsaPrimRandomTest()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/
Dpki_dbg.h52 const uint32_t *pBuf,
56 const uint8_t *pBuf,
59 const uint8_t *pBuf,
94 #define PkiDbgPrintUint32BuffAsNum(label, pBuf, sizeWords)
95 #define PkiDbgPrintUint8BuffAsNum(label, pBuf, sizeBytes)
96 #define PkiDbgPrintUint8Buff(label, pBuf, sizeBytes)
Dpki_dbg.c68 const uint32_t *pBuf, /*!< [in] 32-bit words buffer to print. */ in PkiDbgPrintUint32BuffAsNum() argument
74 sizeBits = CC_CommonGetWordsCounterEffectiveSizeInBits(pBuf, sizeWords); in PkiDbgPrintUint32BuffAsNum()
78 PKA_PRINTF("%08X", pBuf[i]); in PkiDbgPrintUint32BuffAsNum()
93 const uint8_t *pBuf, /*!< [in] 32-bit words buffer to print. */ in PkiDbgPrintUint8BuffAsNum() argument
99 sizeBits = CC_CommonGetBytesCounterEffectiveSizeInBits(pBuf, sizeBytes); in PkiDbgPrintUint8BuffAsNum()
103 PKA_PRINTF("%02X", pBuf[i]); in PkiDbgPrintUint8BuffAsNum()
117 const uint8_t *pBuf, /*!< [in] 32-bit words buffer to print. */ in PkiDbgPrintUint8Buff() argument
123 sizeBits = CC_CommonGetBytesCounterEffectiveSizeInBits(pBuf, sizeBytes); in PkiDbgPrintUint8Buff()
127 PKA_PRINTF("%02X", pBuf[i]); in PkiDbgPrintUint8Buff()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Drun_integration_helper.c214 int runIt_buildRandomBuffer(uint8_t *pBuf, size_t bufSize) in runIt_buildRandomBuffer() argument
222 … if (gpRndContext->rndGenerateVectFunc(gpRndContext->rndState, pBuf + doneSize, chunkSize) == 0) in runIt_buildRandomBuffer()
Drun_integration_helper.h247 int runIt_buildRandomBuffer(uint8_t *pBuf, size_t bufSize);
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_ecies.c64 uint8_t *pBuf = NULL; in ecies_convert_mbed_to_cc_public_key() local
76 pBuf = (uint8_t*)&tempBuff->ConvPublKey; in ecies_convert_mbed_to_cc_public_key()
84 pBuf, in ecies_convert_mbed_to_cc_public_key()
92 pBuf, in ecies_convert_mbed_to_cc_public_key()