| /mbedtls/tests/suites/ |
| A D | test_suite_mps.function | 46 unsigned char *tmp; 94 unsigned char *tmp; 153 unsigned char *tmp; 192 unsigned char *tmp; 243 unsigned char *tmp; 284 unsigned char *tmp; 327 unsigned char *tmp; 373 unsigned char *tmp; 497 unsigned char *tmp; 594 unsigned char *tmp; [all …]
|
| A D | test_suite_lms.data | 24 # * cp data_files/lms_pyhsslms_sha256_m32_h5_lmots_sha256_n32_w8_prv tmp/lms.prv 25 # * cp data_files/lms_pyhsslms_sha256_m32_h5_lmots_sha256_n32_w8_pub tmp/lms.pub 29 # private_key = pyhsslms.HssLmsPrivateKey('tmp/lms') 66 # * hsslms sign tmp/lms.prv message.bin (incorrect signature using leaf node 0) 68 # * hsslms sign tmp/lms.prv message.bin (incorrect signature using leaf node 1) 70 # * hsslms sign tmp/lms.prv message.bin (correct signature using leaf node 2) 78 # * cp data_files/lms_pyhsslms_sha256_m32_h5_lmots_sha256_n32_w8 tmp/lms.pub 79 # * hsslms verify tmp/lms message.bin 99 # * <hash-sigs>/demo sign tmp/lms message.bin 107 # * <hash-sigs/demo> verify tmp/lms message.bin [all …]
|
| A D | test_suite_cmac.function | 107 unsigned char tmp[16]; 123 buf, 16, tmp)) != 0);
|
| A D | test_suite_bignum_mod_raw.function | 341 mbedtls_mpi_uint *tmp = NULL; 359 TEST_CALLOC(tmp, limbs); 360 memcpy(tmp, X, bytes); 363 mbedtls_mpi_uint c = mbedtls_mpi_core_sub(tmp, X, N, limbs); 364 TEST_ASSERT(c || mbedtls_mpi_core_lt_ct(tmp, N, limbs)); 375 mbedtls_free(tmp);
|
| /mbedtls/scripts/ |
| A D | bump_version.sh | 74 mv tmp CMakeLists.txt 78 mv tmp library/CMakeLists.txt 84 mv tmp library/CMakeLists.txt 88 mv tmp library/Makefile 95 mv tmp library/CMakeLists.txt 99 mv tmp library/Makefile 106 mv tmp library/CMakeLists.txt 110 mv tmp library/Makefile 123 > tmp 124 mv tmp include/mbedtls/build_info.h [all …]
|
| A D | lcov.sh | 41 mkdir Coverage Coverage/tmp 47 COVTMP=$PWD/Coverage/tmp
|
| /mbedtls/programs/test/ |
| A D | benchmark.c | 625 memset(tmp, 0xBB, sizeof(tmp)); in main() 708 memset(tmp, 0, sizeof(tmp)); in main() 730 memset(tmp, 0, sizeof(tmp)); in main() 750 memset(tmp, 0, sizeof(tmp)); in main() 768 memset(tmp, 0, sizeof(tmp)); in main() 790 memset(tmp, 0, sizeof(tmp)); in main() 812 memset(tmp, 0, sizeof(tmp)); in main() 833 memset(tmp, 0, sizeof(tmp)); in main() 854 memset(tmp, 0, sizeof(tmp)); in main() 871 memset(tmp, 0, sizeof(tmp)); in main() [all …]
|
| /mbedtls/library/ |
| A D | ecp.c | 1511 MPI_ECP_MUL(&tmp[1], &tmp[2], &tmp[3]); in ecp_double_jac() 1524 MPI_ECP_ADD(&tmp[0], &tmp[0], &tmp[1]); in ecp_double_jac() 1535 MPI_ECP_SQR(&tmp[3], &tmp[2]); in ecp_double_jac() 1540 MPI_ECP_SUB(&tmp[2], &tmp[2], &tmp[1]); in ecp_double_jac() 1541 MPI_ECP_SUB(&tmp[2], &tmp[2], &tmp[1]); in ecp_double_jac() 1544 MPI_ECP_SUB(&tmp[1], &tmp[1], &tmp[2]); in ecp_double_jac() 1545 MPI_ECP_MUL(&tmp[1], &tmp[1], &tmp[0]); in ecp_double_jac() 1546 MPI_ECP_SUB(&tmp[1], &tmp[1], &tmp[3]); in ecp_double_jac() 1652 MPI_ECP_MUL(&tmp[3], &tmp[2], &tmp[0]); in ecp_add_mixed() 1655 MPI_ECP_MOV(&tmp[0], &tmp[2]); in ecp_add_mixed() [all …]
|
| A D | pkwrite.c | 70 if (psa_export_key(pk->priv_id, tmp, sizeof(tmp), &tmp_len) != PSA_SUCCESS) { in pk_write_rsa_der() 74 memcpy(*p, tmp, tmp_len); in pk_write_rsa_der() 76 mbedtls_platform_zeroize(tmp, sizeof(tmp)); in pk_write_rsa_der() 161 unsigned char tmp[PK_MAX_EC_KEY_PAIR_SIZE]; in pk_write_ec_private() local 165 status = psa_export_key(pk->priv_id, tmp, sizeof(tmp), &byte_length); in pk_write_ec_private() 171 status = psa_export_key(pk->priv_id, tmp, sizeof(tmp), &byte_length); in pk_write_ec_private() 180 mbedtls_platform_zeroize(tmp, sizeof(tmp)); in pk_write_ec_private() 189 unsigned char tmp[PK_MAX_EC_KEY_PAIR_SIZE]; in pk_write_ec_private() local 194 status = psa_export_key(pk->priv_id, tmp, sizeof(tmp), &byte_length); in pk_write_ec_private() 205 ret = mbedtls_ecp_write_key_ext(ec, &byte_length, tmp, sizeof(tmp)); in pk_write_ec_private() [all …]
|
| A D | ctr_drbg.c | 166 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in block_cipher_df() local 268 if ((ret = mbedtls_aes_setkey_enc(&aes_ctx, tmp, in block_cipher_df() 281 iv = tmp + MBEDTLS_CTR_DRBG_KEYSIZE; in block_cipher_df() 311 mbedtls_platform_zeroize(tmp, sizeof(tmp)); in block_cipher_df() 335 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in ctr_drbg_update_internal() local 336 unsigned char *p = tmp; in ctr_drbg_update_internal() 344 memset(tmp, 0, MBEDTLS_CTR_DRBG_SEEDLEN); in ctr_drbg_update_internal() 372 mbedtls_xor(tmp, tmp, data, MBEDTLS_CTR_DRBG_SEEDLEN); in ctr_drbg_update_internal() 395 mbedtls_platform_zeroize(tmp, sizeof(tmp)); in ctr_drbg_update_internal() 618 unsigned char tmp[MBEDTLS_CTR_DRBG_BLOCKSIZE]; in mbedtls_ctr_drbg_random_with_add() member [all …]
|
| A D | sha256.c | 338 uint32x4_t tmp, abcd_prev; in mbedtls_internal_sha256_process_many_a64_crypto() local 357 tmp = vaddq_u32(sched0, vld1q_u32(&K[0])); in mbedtls_internal_sha256_process_many_a64_crypto() 359 abcd = vsha256hq_u32(abcd_prev, efgh, tmp); in mbedtls_internal_sha256_process_many_a64_crypto() 360 efgh = vsha256h2q_u32(efgh, abcd_prev, tmp); in mbedtls_internal_sha256_process_many_a64_crypto() 363 tmp = vaddq_u32(sched1, vld1q_u32(&K[4])); in mbedtls_internal_sha256_process_many_a64_crypto() 365 abcd = vsha256hq_u32(abcd_prev, efgh, tmp); in mbedtls_internal_sha256_process_many_a64_crypto() 366 efgh = vsha256h2q_u32(efgh, abcd_prev, tmp); in mbedtls_internal_sha256_process_many_a64_crypto() 369 tmp = vaddq_u32(sched2, vld1q_u32(&K[8])); in mbedtls_internal_sha256_process_many_a64_crypto() 371 abcd = vsha256hq_u32(abcd_prev, efgh, tmp); in mbedtls_internal_sha256_process_many_a64_crypto() 375 tmp = vaddq_u32(sched3, vld1q_u32(&K[12])); in mbedtls_internal_sha256_process_many_a64_crypto() [all …]
|
| A D | psa_crypto_mac.c | 116 uint8_t tmp[PSA_HASH_MAX_SIZE]; in psa_hmac_finish_internal() local 122 status = psa_hash_finish(&hmac->hash_ctx, tmp, sizeof(tmp), &hash_size); in psa_hmac_finish_internal() 138 status = psa_hash_update(&hmac->hash_ctx, tmp, hash_size); in psa_hmac_finish_internal() 143 status = psa_hash_finish(&hmac->hash_ctx, tmp, sizeof(tmp), &hash_size); in psa_hmac_finish_internal() 148 memcpy(mac, tmp, mac_size); in psa_hmac_finish_internal() 151 mbedtls_platform_zeroize(tmp, hash_size); in psa_hmac_finish_internal() 378 uint8_t tmp[PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE]; in psa_mac_finish_internal() local 379 int ret = mbedtls_cipher_cmac_finish(&operation->ctx.cmac, tmp); in psa_mac_finish_internal() 381 memcpy(mac, tmp, mac_size); in psa_mac_finish_internal() 383 mbedtls_platform_zeroize(tmp, sizeof(tmp)); in psa_mac_finish_internal()
|
| A D | entropy.c | 124 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update() local 131 data, len, tmp)) != 0) { in entropy_update() 134 p = tmp; in entropy_update() 164 mbedtls_platform_zeroize(tmp, sizeof(tmp)); in entropy_update()
|
| A D | bignum_core.c | 103 mbedtls_mpi_uint tmp; in mbedtls_mpi_core_bigendian_to_host() local 106 tmp = mpi_bigendian_to_host(*cur_limb_left); in mbedtls_mpi_core_bigendian_to_host() 108 *cur_limb_right = tmp; in mbedtls_mpi_core_bigendian_to_host() 197 mbedtls_mpi_uint tmp = X[i]; in mbedtls_mpi_core_cond_swap() local 199 Y[i] = mbedtls_ct_mpi_uint_if(swap, tmp, Y[i]); in mbedtls_mpi_core_cond_swap()
|
| A D | aes.c | 1201 unsigned char tmp[16]; in mbedtls_aes_crypt_xts() local 1235 mbedtls_xor(tmp, input, tweak, 16); in mbedtls_aes_crypt_xts() 1237 ret = mbedtls_aes_crypt_ecb(&ctx->crypt, mode, tmp, tmp); in mbedtls_aes_crypt_xts() 1242 mbedtls_xor(output, tmp, tweak, 16); in mbedtls_aes_crypt_xts() 1268 mbedtls_xor(tmp, input, t, leftover); in mbedtls_aes_crypt_xts() 1272 mbedtls_xor(tmp + i, prev_output + i, t + i, 16 - i); in mbedtls_aes_crypt_xts() 1274 ret = mbedtls_aes_crypt_ecb(&ctx->crypt, mode, tmp, tmp); in mbedtls_aes_crypt_xts() 1281 mbedtls_xor(prev_output, tmp, t, 16); in mbedtls_aes_crypt_xts() 1997 unsigned char tmp[16]; in mbedtls_aes_self_test() local 1999 memcpy(tmp, prv, 16); in mbedtls_aes_self_test() [all …]
|
| A D | des.c | 989 unsigned char tmp[8]; in mbedtls_des_self_test() local 1000 memcpy(tmp, prv, 8); in mbedtls_des_self_test() 1002 memcpy(buf, tmp, 8); in mbedtls_des_self_test()
|
| A D | md.c | 1029 unsigned char tmp[MBEDTLS_MD_MAX_SIZE]; in mbedtls_md_hmac_finish() local 1038 if ((ret = mbedtls_md_finish(ctx, tmp)) != 0) { in mbedtls_md_hmac_finish() 1048 if ((ret = mbedtls_md_update(ctx, tmp, in mbedtls_md_hmac_finish()
|
| /mbedtls/3rdparty/everest/library/ |
| A D | Hacl_Curve25519.c | 172 tmp[0U] = s0; in Hacl_Bignum_Fsquare_fsquare__() 173 tmp[1U] = s1; in Hacl_Bignum_Fsquare_fsquare__() 174 tmp[2U] = s2; in Hacl_Bignum_Fsquare_fsquare__() 175 tmp[3U] = s3; in Hacl_Bignum_Fsquare_fsquare__() 176 tmp[4U] = s4; in Hacl_Bignum_Fsquare_fsquare__() 191 b4 = tmp[4U]; in Hacl_Bignum_Fsquare_fsquare_() 192 b0 = tmp[0U]; in Hacl_Bignum_Fsquare_fsquare_() 309 b0 = tmp[0U]; in Hacl_Bignum_fdifference() 310 b1 = tmp[1U]; in Hacl_Bignum_fdifference() 311 b2 = tmp[2U]; in Hacl_Bignum_fdifference() [all …]
|
| /mbedtls/3rdparty/everest/library/legacy/ |
| A D | Hacl_Curve25519.c | 207 tmp[0U] = s0; in Hacl_Bignum_Fsquare_fsquare__() 208 tmp[1U] = s1; in Hacl_Bignum_Fsquare_fsquare__() 209 tmp[2U] = s2; in Hacl_Bignum_Fsquare_fsquare__() 210 tmp[3U] = s3; in Hacl_Bignum_Fsquare_fsquare__() 211 tmp[4U] = s4; in Hacl_Bignum_Fsquare_fsquare__() 226 b4 = tmp[4U]; in Hacl_Bignum_Fsquare_fsquare_() 227 b0 = tmp[0U]; in Hacl_Bignum_Fsquare_fsquare_() 351 b0 = tmp[0U]; in Hacl_Bignum_fdifference() 352 b1 = tmp[1U]; in Hacl_Bignum_fdifference() 353 b2 = tmp[2U]; in Hacl_Bignum_fdifference() [all …]
|
| /mbedtls/tests/docker/bionic/ |
| A D | Dockerfile | 62 RUN cd /tmp \ 68 && rm -rf /tmp/openssl* 72 RUN cd /tmp \ 83 RUN cd /tmp \ 93 RUN cd /tmp \ 100 && rm -rf /tmp/nettle* 103 RUN cd /tmp \ 114 RUN cd /tmp \ 124 RUN cd /tmp \ 137 RUN cd /tmp \ [all …]
|
| /mbedtls/tests/scripts/ |
| A D | generate_bignum_tests.py | 114 tmp = "negative" 117 tmp = "positive" 119 tmp += " with leading zero limb" 121 tmp = "large " + tmp 122 return tmp
|
| A D | set_psa_test_dependencies.py | 259 tmp = file_name + '.tmp' 260 with open(tmp, 'w', encoding='utf-8') as new_file: 263 os.replace(tmp, file_name)
|
| A D | docker_env.sh | 86 -e PYLINTHOME=/tmp/.pylintd \
|
| /mbedtls/scripts/mbedtls_dev/ |
| A D | bignum_core.py | 690 tmp = "(start of 2-MPI 4-byte bignums) " 693 tmp = "(start of 2-MPI 8-byte bignums) " 696 tmp = "(gen) " 697 self.case_description = tmp + self.case_description
|
| /mbedtls/tests/data_files/ |
| A D | test-ca.server1.test_serial.opensslconf | 7 serial = test-ca.server1.tmp.serial
|