Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 24 of 24) sorted by relevance

/mbedtls-3.4.0/scripts/
Dbump_version.sh85 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < CMakeLists.txt > tmp
86 mv tmp CMakeLists.txt
89 sed -e "s/ VERSION [0-9.]\{1,\}/ VERSION $VERSION/g" < library/CMakeLists.txt > tmp
90 mv tmp library/CMakeLists.txt
95 …d -e "/mbedcrypto/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_CRYPTO/g" < library/CMakeLists.txt > tmp
96 mv tmp library/CMakeLists.txt
99 sed -e "s/SOEXT_CRYPTO?=so.[0-9]\{1,\}/SOEXT_CRYPTO?=so.$SO_CRYPTO/g" < library/Makefile > tmp
100 mv tmp library/Makefile
106 sed -e "/mbedx509/ s/ SOVERSION [0-9]\{1,\}/ SOVERSION $SO_X509/g" < library/CMakeLists.txt > tmp
107 mv tmp library/CMakeLists.txt
[all …]
/mbedtls-3.4.0/tests/suites/
Dtest_suite_mps.function46 unsigned char *tmp;
60 TEST_ASSERT( mbedtls_mps_reader_get( &rd, 100, &tmp, NULL ) == 0 );
61 ASSERT_COMPARE( tmp, 100, bufA, 100 );
90 unsigned char *tmp;
105 TEST_ASSERT( mbedtls_mps_reader_get( &rd, 100, &tmp, NULL ) == 0 );
106 ASSERT_COMPARE( tmp, 100, bufA, 100 );
112 TEST_ASSERT( mbedtls_mps_reader_get( &rd, 100, &tmp, NULL ) == 0 );
113 ASSERT_COMPARE( tmp, 100, bufB, 100 );
144 unsigned char *tmp;
157 TEST_ASSERT( mbedtls_mps_reader_get( &rd, 10, &tmp, NULL ) == 0 );
[all …]
Dtest_suite_lms.data24 # * 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')
64 # * cp data_files/lms_pyhsslms_sha256_m32_h5_lmots_sha256_n32_w8_prv tmp/lms.prv
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
96 # * cp data_files/lms_hash-sigs_sha256_m32_h5_lmots_sha256_n32_w8_prv tmp/lms.prv
[all …]
Dtest_suite_cmac.function107 unsigned char tmp[16];
117 buf, 16, tmp ) ) != 0 );
/mbedtls-3.4.0/programs/test/
Dbenchmark.c125 mbedtls_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \
126 mbedtls_printf( "FAILED: %s\n", tmp );
527 unsigned char tmp[200]; in main() local
621 memset( tmp, 0xBB, sizeof( tmp ) ); in main()
629 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in main()
634 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in main()
639 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in main()
644 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in main()
649 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in main()
658 if( mbedtls_des3_set3key_enc( &des3, tmp ) != 0 ) in main()
[all …]
/mbedtls-3.4.0/library/
Decp.c1177 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &tmp, &grp->P, (X) ) ); \
1178 MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( (X), &tmp, \
1353 mbedtls_mpi tmp; in ecp_safe_invert_jac() local
1354 mbedtls_mpi_init( &tmp ); in ecp_safe_invert_jac()
1359 mbedtls_mpi_free( &tmp ); in ecp_safe_invert_jac()
1379 mbedtls_mpi tmp[4] ) in ecp_double_jac()
1399 MPI_ECP_SQR( &tmp[1], &P->Z ); in ecp_double_jac()
1400 MPI_ECP_ADD( &tmp[2], &P->X, &tmp[1] ); in ecp_double_jac()
1401 MPI_ECP_SUB( &tmp[3], &P->X, &tmp[1] ); in ecp_double_jac()
1402 MPI_ECP_MUL( &tmp[1], &tmp[2], &tmp[3] ); in ecp_double_jac()
[all …]
Dctr_drbg.c124 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in block_cipher_df() local
190 memcpy( tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in block_cipher_df()
201 if( ( ret = mbedtls_aes_setkey_enc( &aes_ctx, tmp, in block_cipher_df()
206 iv = tmp + MBEDTLS_CTR_DRBG_KEYSIZE; in block_cipher_df()
225 mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); in block_cipher_df()
250 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in ctr_drbg_update_internal() local
251 unsigned char *p = tmp; in ctr_drbg_update_internal()
255 memset( tmp, 0, MBEDTLS_CTR_DRBG_SEEDLEN ); in ctr_drbg_update_internal()
279 tmp[i] ^= data[i]; in ctr_drbg_update_internal()
284 if( ( ret = mbedtls_aes_setkey_enc( &ctx->aes_ctx, tmp, in ctr_drbg_update_internal()
[all …]
Dsha256.c258 uint32x4_t tmp, abcd_prev; in mbedtls_internal_sha256_process_many_a64_crypto() local
277 tmp = vaddq_u32( sched0, vld1q_u32( &K[0] ) ); in mbedtls_internal_sha256_process_many_a64_crypto()
279 abcd = vsha256hq_u32( abcd_prev, efgh, tmp ); in mbedtls_internal_sha256_process_many_a64_crypto()
280 efgh = vsha256h2q_u32( efgh, abcd_prev, tmp ); in mbedtls_internal_sha256_process_many_a64_crypto()
283 tmp = vaddq_u32( sched1, vld1q_u32( &K[4] ) ); in mbedtls_internal_sha256_process_many_a64_crypto()
285 abcd = vsha256hq_u32( abcd_prev, efgh, tmp ); in mbedtls_internal_sha256_process_many_a64_crypto()
286 efgh = vsha256h2q_u32( efgh, abcd_prev, tmp ); in mbedtls_internal_sha256_process_many_a64_crypto()
289 tmp = vaddq_u32( sched2, vld1q_u32( &K[8] ) ); in mbedtls_internal_sha256_process_many_a64_crypto()
291 abcd = vsha256hq_u32( abcd_prev, efgh, tmp ); in mbedtls_internal_sha256_process_many_a64_crypto()
292 efgh = vsha256h2q_u32( efgh, abcd_prev, tmp ); in mbedtls_internal_sha256_process_many_a64_crypto()
[all …]
Dpsa_crypto_mac.c120 uint8_t tmp[PSA_HASH_MAX_SIZE]; in psa_hmac_finish_internal() local
126 status = psa_hash_finish( &hmac->hash_ctx, tmp, sizeof( tmp ), &hash_size ); in psa_hmac_finish_internal()
139 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()
147 memcpy( mac, tmp, mac_size ); in psa_hmac_finish_internal()
150 mbedtls_platform_zeroize( tmp, hash_size ); in psa_hmac_finish_internal()
388 uint8_t tmp[PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE]; in psa_mac_finish_internal() local
389 int ret = mbedtls_cipher_cmac_finish( &operation->ctx.cmac, tmp ); in psa_mac_finish_internal()
391 memcpy( mac, tmp, mac_size ); in psa_mac_finish_internal()
392 mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); in psa_mac_finish_internal()
Dbignum_core.c73 mbedtls_mpi_uint tmp = 0; in mpi_bigendian_to_host_c() local
77 tmp <<= CHAR_BIT; in mpi_bigendian_to_host_c()
78 tmp |= (mbedtls_mpi_uint) *a_ptr; in mpi_bigendian_to_host_c()
81 return( tmp ); in mpi_bigendian_to_host_c()
148 mbedtls_mpi_uint tmp; in mbedtls_mpi_core_bigendian_to_host() local
151 tmp = mpi_bigendian_to_host( *cur_limb_left ); in mbedtls_mpi_core_bigendian_to_host()
153 *cur_limb_right = tmp; in mbedtls_mpi_core_bigendian_to_host()
181 mbedtls_mpi_uint tmp = X[i]; in mbedtls_mpi_core_cond_swap() local
183 Y[i] = ( Y[i] & ~limb_mask ) | ( tmp & limb_mask ); in mbedtls_mpi_core_cond_swap()
Dentropy.c145 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update() local
153 if( ( ret = mbedtls_sha512( data, len, tmp, 0 ) ) != 0 ) in entropy_update()
156 if( ( ret = mbedtls_sha256( data, len, tmp, 0 ) ) != 0 ) in entropy_update()
159 p = tmp; in entropy_update()
192 mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); in entropy_update()
Dpkwrite.c154 unsigned char tmp[MBEDTLS_ECP_MAX_BYTES]; in pk_write_ec_private() local
156 ret = mbedtls_ecp_write_key( ec, tmp, byte_length ); in pk_write_ec_private()
159 ret = mbedtls_asn1_write_octet_string( p, start, tmp, byte_length ); in pk_write_ec_private()
162 mbedtls_platform_zeroize( tmp, byte_length ); in pk_write_ec_private()
Daes.c1088 unsigned char tmp[16]; in mbedtls_aes_crypt_xts() local
1123 tmp[i] = input[i] ^ tweak[i]; in mbedtls_aes_crypt_xts()
1125 ret = mbedtls_aes_crypt_ecb( &ctx->crypt, mode, tmp, tmp ); in mbedtls_aes_crypt_xts()
1130 output[i] = tmp[i] ^ tweak[i]; in mbedtls_aes_crypt_xts()
1157 tmp[i] = input[i] ^ t[i]; in mbedtls_aes_crypt_xts()
1163 tmp[i] = prev_output[i] ^ t[i]; in mbedtls_aes_crypt_xts()
1165 ret = mbedtls_aes_crypt_ecb( &ctx->crypt, mode, tmp, tmp ); in mbedtls_aes_crypt_xts()
1172 prev_output[i] = tmp[i] ^ t[i]; in mbedtls_aes_crypt_xts()
1825 unsigned char tmp[16]; in mbedtls_aes_self_test() local
1827 memcpy( tmp, prv, 16 ); in mbedtls_aes_self_test()
[all …]
Dmd.c689 unsigned char tmp[MBEDTLS_MD_MAX_SIZE]; in mbedtls_md_hmac_finish() local
697 if( ( ret = mbedtls_md_finish( ctx, tmp ) ) != 0 ) in mbedtls_md_hmac_finish()
704 if( ( ret = mbedtls_md_update( ctx, tmp, in mbedtls_md_hmac_finish()
Ddes.c1007 unsigned char tmp[8]; in mbedtls_des_self_test() local
1016 memcpy( tmp, prv, 8 ); in mbedtls_des_self_test()
1018 memcpy( buf, tmp, 8 ); in mbedtls_des_self_test()
Dssl_tls.c5934 unsigned char *tmp; in tls_prf_generic() local
5949 tmp = mbedtls_calloc( 1, tmp_len ); in tls_prf_generic()
5950 if( tmp == NULL ) in tls_prf_generic()
5957 memcpy( tmp + md_len, label, nb ); in tls_prf_generic()
5958 memcpy( tmp + md_len + nb, random, rlen ); in tls_prf_generic()
5970 ret = mbedtls_md_hmac_update( &md_ctx, tmp + md_len, nb ); in tls_prf_generic()
5973 ret = mbedtls_md_hmac_finish( &md_ctx, tmp ); in tls_prf_generic()
5982 ret = mbedtls_md_hmac_update( &md_ctx, tmp, md_len + nb ); in tls_prf_generic()
5992 ret = mbedtls_md_hmac_update( &md_ctx, tmp, md_len ); in tls_prf_generic()
5995 ret = mbedtls_md_hmac_finish( &md_ctx, tmp ); in tls_prf_generic()
[all …]
/mbedtls-3.4.0/3rdparty/everest/library/
DHacl_Curve25519.c63 inline static void Hacl_Bignum_Fproduct_carry_wide_(uint128_t *tmp) in Hacl_Bignum_Fproduct_carry_wide_() argument
69 uint128_t tctr = tmp[ctr]; in Hacl_Bignum_Fproduct_carry_wide_()
70 uint128_t tctrp1 = tmp[ctr + (uint32_t)1U]; in Hacl_Bignum_Fproduct_carry_wide_()
73 tmp[ctr] = (uint128_t)r0; in Hacl_Bignum_Fproduct_carry_wide_()
74 tmp[ctr + (uint32_t)1U] = tctrp1 + c; in Hacl_Bignum_Fproduct_carry_wide_()
80 uint64_t tmp = output[4U]; in Hacl_Bignum_Fmul_shift_reduce() local
91 output[0U] = tmp; in Hacl_Bignum_Fmul_shift_reduce()
117 uint64_t tmp[5U] = { 0U }; in Hacl_Bignum_Fmul_fmul() local
118 memcpy(tmp, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fmul_fmul()
136 Hacl_Bignum_Fmul_mul_shift_reduce_(t, tmp, input2); in Hacl_Bignum_Fmul_fmul()
[all …]
/mbedtls-3.4.0/3rdparty/everest/library/legacy/
DHacl_Curve25519.c71 inline static void Hacl_Bignum_Fproduct_carry_wide_(FStar_UInt128_uint128 *tmp) in Hacl_Bignum_Fproduct_carry_wide_() argument
77 FStar_UInt128_uint128 tctr = tmp[ctr]; in Hacl_Bignum_Fproduct_carry_wide_()
78 FStar_UInt128_uint128 tctrp1 = tmp[ctr + (uint32_t)1U]; in Hacl_Bignum_Fproduct_carry_wide_()
81 tmp[ctr] = FStar_UInt128_uint64_to_uint128(r0); in Hacl_Bignum_Fproduct_carry_wide_()
82 tmp[ctr + (uint32_t)1U] = FStar_UInt128_add(tctrp1, c); in Hacl_Bignum_Fproduct_carry_wide_()
88 uint64_t tmp = output[4U]; in Hacl_Bignum_Fmul_shift_reduce() local
99 output[0U] = tmp; in Hacl_Bignum_Fmul_shift_reduce()
129 uint64_t tmp[5U] = { 0U }; in Hacl_Bignum_Fmul_fmul() local
130 memcpy(tmp, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fmul_fmul()
148 Hacl_Bignum_Fmul_mul_shift_reduce_(t, tmp, input2); in Hacl_Bignum_Fmul_fmul()
[all …]
/mbedtls-3.4.0/tests/docker/bionic/
DDockerfile70 RUN cd /tmp \
76 && rm -rf /tmp/openssl*
80 RUN cd /tmp \
86 && rm -rf /tmp/openssl*
91 RUN cd /tmp \
97 && rm -rf /tmp/openssl*
101 RUN cd /tmp \
108 && rm -rf /tmp/nettle*
111 RUN cd /tmp \
117 && rm -rf /tmp/gnutls*
[all …]
/mbedtls-3.4.0/tests/scripts/
Dgenerate_bignum_tests.py127 tmp = "negative"
130 tmp = "positive"
132 tmp += " with leading zero limb"
134 tmp = "large " + tmp
135 return tmp
Dset_psa_test_dependencies.py271 tmp = file_name + '.tmp'
272 with open(tmp, 'w', encoding='utf-8') as new_file:
275 os.replace(tmp, file_name)
Ddocker_env.sh94 -e PYLINTHOME=/tmp/.pylintd \
/mbedtls-3.4.0/scripts/mbedtls_dev/
Dbignum_core.py615 tmp = "(start of 2-MPI 4-byte bignums) "
618 tmp = "(start of 2-MPI 8-byte bignums) "
621 tmp = "(gen) "
622 self.case_description = tmp + self.case_description
/mbedtls-3.4.0/tests/
Dssl-opt.sh349 tmp="${1##*\ force_version=}"
350 tmp="${tmp%%[!-0-9A-Z_a-z]*}"
351 requires_protocol_version "$tmp";;
356 tmp="${1##*\ force_ciphersuite=}"
357 tmp="${tmp%%[!-0-9A-Z_a-z]*}"
358 requires_ciphersuite_enabled "$tmp";;
370 unset tmp