/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/ |
D | run_integration_ecdh.c | 179 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 …]
|
D | run_integration_ecies.c | 71 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 …]
|
D | run_integration_asset_prov.c | 137 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()
|
D | run_integration_gcm.c | 140 …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 …]
|
D | run_integration_ecdsa.c | 73 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/ |
D | pki_dbg.h | 52 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)
|
D | pki_dbg.c | 68 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/ |
D | run_integration_helper.c | 214 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()
|
D | run_integration_helper.h | 247 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/ |
D | mbedtls_cc_ecies.c | 64 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()
|