Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 8 of 8) 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_gcm.c33 static RunItError_t runIt_gcmProfiling(size_t data_len);
42 static RunItError_t runIt_gcmProfiling(size_t data_len) in runIt_gcmProfiling() argument
66 snprintf(testParam, PARAM_LEN - 1, "%"PRIu32"B", (uint32_t)data_len); in runIt_gcmProfiling()
69 ALLOC(cipherPtr, pCipher, data_len); in runIt_gcmProfiling()
70 ALLOC(plainBufPtr, pPlainBuf, data_len); in runIt_gcmProfiling()
81 RUNIT_ASSERT(runIt_buildRandomBuffer(pPlainBuf, data_len) == 0); in runIt_gcmProfiling()
89 data_len, in runIt_gcmProfiling()
110 (uint32_t)key_len, (uint32_t)data_len, (uint32_t)add_len); in runIt_gcmProfiling()
Drun_integration_mac.c34 static RunItError_t runIt_cmacProfiling(size_t data_len);
126 static RunItError_t runIt_cmacProfiling(size_t data_len) in runIt_cmacProfiling() argument
150 ALLOC(dataPtr, data, data_len); in runIt_cmacProfiling()
154 snprintf(testParam, PARAM_LEN - 1, "%"PRIu32"B", (uint32_t)data_len); in runIt_cmacProfiling()
174 …RUNIT_ASSERT_W_PARAM(testParam, mbedtls_cipher_cmac_update(ctx, (unsigned char* )data, data_len) =… in runIt_cmacProfiling()
188 (uint32_t)keybits, (uint32_t)data_len); in runIt_cmacProfiling()
Drun_integration_aes.c43 static RunItError_t runIt_aesCtrTestProfiling(size_t data_len);
126 static RunItError_t runIt_aesCtrTestProfiling(size_t data_len) in runIt_aesCtrTestProfiling() argument
150 snprintf(testParam, PARAM_LEN - 1, "%uB", data_len); in runIt_aesCtrTestProfiling()
152 ALLOC32(bufPtr, buf, data_len); in runIt_aesCtrTestProfiling()
172 …RUNIT_ASSERT_W_PARAM(testParam, mbedtls_aes_crypt_ctr(&ctx, data_len, &offset, nonce_counter, stre… in runIt_aesCtrTestProfiling()
179 …_RESULT_W_PARAMS(TEST_NAME, "KEY[%ub] PLAIN[%uB]", (unsigned int)KEY_SIZE, (unsigned int)data_len); in runIt_aesCtrTestProfiling()
Drun_integration_ecdsa.c120 size_t data_len = 200; in runIt_ecdsaPrimRandomEdwTest() local
139 ALLOC(dataPtr, pDataIn, data_len); in runIt_ecdsaPrimRandomEdwTest()
144 RUNIT_ASSERT_WITH_RESULT(mbedtls_ctr_drbg_random(pCtrDrbg, pDataIn, data_len), 0); in runIt_ecdsaPrimRandomEdwTest()
148 …ERT_WITH_RESULT( mbedtls_ecdsa_sign_edwards( &pCtx->grp, &r, &s, &pCtx->d, pDataIn, data_len), 0 ); in runIt_ecdsaPrimRandomEdwTest()
149 …RUNIT_ASSERT_WITH_RESULT( mbedtls_ecdsa_verify_edwards(&pCtx->grp, pDataIn, data_len, &pCtx->Q, &r… in runIt_ecdsaPrimRandomEdwTest()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_cipher.c47 size_t *data_len) in get_pkcs_padding() argument
52 if(NULL == input || NULL == data_len) { in get_pkcs_padding()
57 *data_len = input_len - padding_len; in get_pkcs_padding()
472 size_t data_len = operation->block_size; in cc3xx_cipher_finish() local
474 if(data_len > AES_BLOCK_SIZE){ in cc3xx_cipher_finish()
544 &data_len); in cc3xx_cipher_finish()
552 if (output_size < data_len) { in cc3xx_cipher_finish()
556 CC_PalMemCopy(output, temp_buff, data_len); in cc3xx_cipher_finish()
557 *output_length = data_len; in cc3xx_cipher_finish()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dchacha20_alt.c156 size_t data_len, in mbedtls_chacha20_crypt() argument
173 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt()
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/
Dmkromlib.h79 int32_t data_len; /*!< Internal use for random number generator */ member
87 int32_t data_len; /*!< Internal use for random number generator */ member
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/
Decp_alt.c904 unsigned char data_len; in mbedtls_ecp_tls_read_point() local
917 data_len = *(*buf)++; in mbedtls_ecp_tls_read_point()
918 if( data_len < 1 || data_len > buf_len - 1 ) in mbedtls_ecp_tls_read_point()
925 *buf += data_len; in mbedtls_ecp_tls_read_point()
927 return( mbedtls_ecp_point_read_binary( grp, pt, buf_start, data_len ) ); in mbedtls_ecp_tls_read_point()