Home
last modified time | relevance | path

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

1234

/lib/
A Daes.c330 u8 tmp; in shift_rows() local
343 state[13] = tmp; in shift_rows()
348 state[10] = tmp; in shift_rows()
351 state[14] = tmp; in shift_rows()
358 state[3] = tmp; in shift_rows()
368 u8 tmp; in inv_shift_rows() local
381 state[1] = tmp; in inv_shift_rows()
386 state[10] = tmp; in inv_shift_rows()
389 state[14] = tmp; in inv_shift_rows()
396 state[15] = tmp; in inv_shift_rows()
[all …]
A Drbtree.c84 tmp = gparent->rb_right; in __rb_insert()
86 if (tmp && rb_is_red(tmp)) { in __rb_insert()
109 if (node == tmp) { in __rb_insert()
124 if (tmp) in __rb_insert()
130 tmp = node->rb_right; in __rb_insert()
144 if (tmp) in __rb_insert()
151 if (tmp && rb_is_red(tmp)) { in __rb_insert()
162 if (node == tmp) { in __rb_insert()
166 if (tmp) in __rb_insert()
172 tmp = node->rb_left; in __rb_insert()
[all …]
A Dfdt-libcrypto.c16 BIGNUM *tmp, *big2, *big32, *big2_32; in fdt_add_bignum() local
20 tmp = BN_new(); in fdt_add_bignum()
33 if (!tmp || !big2 || !big32 || !big2_32) { in fdt_add_bignum()
55 BN_mod(tmp, num, big2_32, ctx); /* n = N mod B */ in fdt_add_bignum()
56 *ptr = cpu_to_fdt32(BN_get_word(tmp)); in fdt_add_bignum()
66 BN_free(tmp); in fdt_add_bignum()
A Dstring.c78 char *tmp = dest; in strcpy() local
82 return tmp; in strcpy()
99 char *tmp = dest; in strncpy() local
104 return tmp; in strncpy()
143 char *tmp = dest; in strcat() local
150 return tmp; in strcat()
179 return tmp; in strncat()
505 char tmp; in strswab() local
507 tmp = *p; in strswab()
509 *q = tmp; in strswab()
[all …]
A Dasn1_decoder.c69 unsigned char tag, tmp; in asn1_find_indefinite_length() local
98 tmp = data[dp++]; in asn1_find_indefinite_length()
99 } while (tmp & 0x80); in asn1_find_indefinite_length()
221 unsigned char tmp; in asn1_ber_decoder() local
253 tmp = optag ^ tag; in asn1_ber_decoder()
254 tmp &= ~(optag & ASN1_CONS_BIT); in asn1_ber_decoder()
255 pr_debug("- match? %02x %02x %02x\n", tag, optag, tmp); in asn1_ber_decoder()
256 if (tmp != 0) { in asn1_ber_decoder()
337 size_t tmp = dp; in asn1_ber_decoder() local
340 data, datalen, &tmp, &len, &errmsg); in asn1_ber_decoder()
/lib/mbedtls/external/mbedtls/scripts/
A Dbump_version.sh74 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 …]
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_mps.function46 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 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')
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 …]
/lib/mbedtls/external/mbedtls/programs/test/
A Dbenchmark.c625 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 …]
/lib/mbedtls/external/mbedtls/library/
A Decp.c1511 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 Dpkwrite.c70 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 Dctr_drbg.c166 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 Dpsa_crypto_mac.c116 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 Dsha256.c338 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 …]
/lib/mbedtls/external/mbedtls/3rdparty/everest/library/
A DHacl_Curve25519.c172 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 …]
/lib/mbedtls/external/mbedtls/3rdparty/everest/library/legacy/
A DHacl_Curve25519.c207 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 …]
/lib/lwip/lwip/src/core/
A Ddef.c225 char *tmp = result + bufsize - 1; in lwip_itoa() local
242 *tmp = 0; in lwip_itoa()
243 while ((n != 0) && (tmp > res)) { in lwip_itoa()
245 tmp--; in lwip_itoa()
246 *tmp = val; in lwip_itoa()
254 if (*tmp == 0) { in lwip_itoa()
261 memmove(res, tmp, (size_t)((result + bufsize) - tmp)); in lwip_itoa()
/lib/mbedtls/external/mbedtls/tests/docker/bionic/
A DDockerfile62 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 …]
/lib/lwip/lwip/contrib/apps/shell/
A Dshell.c196 long tmp; in com_open() local
203 if((tmp < 0) || (tmp > 0xffff)) { in com_open()
259 if((tmp < 0) || (tmp > 0xffff)) { in com_lstn()
586 if((tmp < 0) || (tmp > 0xffff)) { in com_udpc()
596 if((tmp < 0) || (tmp > 0xffff)) { in com_udpc()
669 if((tmp < 0) || (tmp > 0xffff)) { in com_udpl()
679 if((tmp < 0) || (tmp > 0xffff)) { in com_udpl()
752 if((tmp < 0) || (tmp > 0xffff)) { in com_udpn()
762 if((tmp < 0) || (tmp > 0xffff)) { in com_udpn()
838 if((tmp < 0) || (tmp > 0xffff)) { in com_udpb()
[all …]
/lib/lwip/lwip/test/fuzz/
A Doutput_to_pcap.sh15 hexdump -C $i > $1/$$.tmp
16 text2pcap $1/$$.tmp ${i}.pcap
23 hexdump -C $i > $1/$$.tmp
24 text2pcap $1/$$.tmp ${i}.pcap
27 rm -f $1/$$.tmp
/lib/lwip/lwip/contrib/examples/httpd/post_example/
A Dpost_example.c106 u16_t tmp; in httpd_post_receive_data() local
108 tmp = pbuf_memfind(p, "&", 1, value_user); in httpd_post_receive_data()
109 if (tmp != 0xFFFF) { in httpd_post_receive_data()
110 len_user = tmp - value_user; in httpd_post_receive_data()
115 tmp = pbuf_memfind(p, "&", 1, value_pass); in httpd_post_receive_data()
116 if (tmp != 0xFFFF) { in httpd_post_receive_data()
117 len_pass = tmp - value_pass; in httpd_post_receive_data()
/lib/rsa/
A Drsa-mod-exp.c195 uint32_t val[key->len], acc[key->len], tmp[key->len]; in pow_mod() local
197 result = tmp; /* Re-use location. */ in pow_mod()
223 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod n */ in pow_mod()
227 montgomery_mul(key, acc, tmp, a_scaled); in pow_mod()
230 memcpy(acc, tmp, key->len * sizeof(acc[0])); in pow_mod()
235 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod n */ in pow_mod()
236 montgomery_mul(key, acc, tmp, val); /* acc = tmp * a / R mod M */ in pow_mod()
328 u32 val[RSA2048_BYTES], acc[RSA2048_BYTES], tmp[RSA2048_BYTES]; in zynq_pow_mod() local
339 result = tmp; /* Re-use location. */ in zynq_pow_mod()
346 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod M */ in zynq_pow_mod()
[all …]
/lib/lwip/lwip/src/netif/ppp/
A Dvj.c504 u32_t tmp; in vj_uncompress_tcp() local
550 tmp = lwip_ntohl(th->ackno) + i; in vj_uncompress_tcp()
551 th->ackno = lwip_htonl(tmp); in vj_uncompress_tcp()
552 tmp = lwip_ntohl(th->seqno) + i; in vj_uncompress_tcp()
553 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp()
560 th->seqno = lwip_htonl(tmp); in vj_uncompress_tcp()
605 tmp = n0->tot_len - vjlen + cs->cs_hlen; in vj_uncompress_tcp()
614 for (tmp = 0; hlen > 0; hlen -= 2) { in vj_uncompress_tcp()
615 tmp += (*bp++).v; in vj_uncompress_tcp()
617 tmp = (tmp & 0xffff) + (tmp >> 16); in vj_uncompress_tcp()
[all …]
/lib/mbedtls/external/mbedtls/tests/scripts/
A Dgenerate_bignum_tests.py114 tmp = "negative"
117 tmp = "positive"
119 tmp += " with leading zero limb"
121 tmp = "large " + tmp
122 return tmp
/lib/bzip2/
A Dbzlib_huffman.c75 Int32 zz, tmp; \
76 zz = z; tmp = heap[zz]; \
77 while (weight[tmp] < weight[heap[zz >> 1]]) { \
81 heap[zz] = tmp; \
86 Int32 zz, yy, tmp; \
87 zz = z; tmp = heap[zz]; \
94 if (weight[tmp] < weight[heap[yy]]) break; \
98 heap[zz] = tmp; \

Completed in 73 milliseconds

1234