Home
last modified time | relevance | path

Searched refs:tmp_buf (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/crypto/libecc/src/sig/
H A Deckcdsa.c204 u8 tmp_buf[LOCAL_MAX(2 * BYTECEIL(CURVES_MAX_P_BIT_LEN), MAX_BLOCK_SIZE)]; in _eckcdsa_sign_init() local
242 ret = local_memset(tmp_buf, 0, sizeof(tmp_buf)); EG(ret, err); in _eckcdsa_sign_init()
243 ret = fp_export_to_buf(tmp_buf, p_len, &(y_aff.x)); EG(ret, err); in _eckcdsa_sign_init()
244 ret = fp_export_to_buf(tmp_buf + p_len, p_len, &(y_aff.y)); EG(ret, err); in _eckcdsa_sign_init()
251 ret = ctx->h->hfunc_update(&(ctx->sign_data.eckcdsa.h_ctx), tmp_buf, z_len); EG(ret, err); in _eckcdsa_sign_init()
252 ret = local_memset(tmp_buf, 0, sizeof(tmp_buf)); EG(ret, err); in _eckcdsa_sign_init()
304 u8 tmp_buf[BYTECEIL(CURVES_MAX_P_BIT_LEN)]; in _eckcdsa_sign_finalize() local
406 ret = local_memset(tmp_buf, 0, sizeof(tmp_buf)); EG(ret, err); in _eckcdsa_sign_finalize()
407 ret = fp_export_to_buf(tmp_buf, p_len, &(kG.X)); EG(ret, err); in _eckcdsa_sign_finalize()
411 ret = ctx->h->hfunc_update(&r_ctx, tmp_buf, p_len); EG(ret, err); in _eckcdsa_sign_finalize()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509_obj.c36 char tmp_buf[80]; in X509_NAME_oneline() local
67 i2t_ASN1_OBJECT(tmp_buf, sizeof(tmp_buf), ne->object); in X509_NAME_oneline()
68 s = tmp_buf; in X509_NAME_oneline()
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_build.c634 struct wpabuf *tmp_buf = NULL; in p2p_buf_add_service_instance() local
646 tmp_buf = wpabuf_alloc(MAX_SVC_ADV_IE_LEN + 256 + P2PS_HASH_LEN); in p2p_buf_add_service_instance()
647 if (!tmp_buf) in p2p_buf_add_service_instance()
654 ie_len = p2p_buf_add_ie_hdr(tmp_buf); in p2p_buf_add_service_instance()
658 wpabuf_put_u8(tmp_buf, P2P_ATTR_ADVERTISED_SERVICE); in p2p_buf_add_service_instance()
659 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance()
661 p2p_buf_update_ie_hdr(tmp_buf, ie_len); in p2p_buf_add_service_instance()
662 pos = wpabuf_put(tmp_buf, 0); in p2p_buf_add_service_instance()
666 p2p_buf_add_service_info(tmp_buf, p2p, 0, 0, P2PS_WILD_HASH_STR, in p2p_buf_add_service_instance()
679 p2p_buf_add_service_info(tmp_buf, p2p, in p2p_buf_add_service_instance()
[all …]
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c2373 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek_first_gt() local
2378 tmp_buf = evbuffer_new(); in test_evbuffer_peek_first_gt()
2379 evbuffer_add_printf(tmp_buf, "Contents of chunk 100\n"); in test_evbuffer_peek_first_gt()
2380 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
2381 evbuffer_add_printf(tmp_buf, "Contents of chunk 1\n"); in test_evbuffer_peek_first_gt()
2382 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
2402 if (tmp_buf) in test_evbuffer_peek_first_gt()
2403 evbuffer_free(tmp_buf); in test_evbuffer_peek_first_gt()
2409 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek() local
2420 tmp_buf = evbuffer_new(); in test_evbuffer_peek()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress_buffer.c2373 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek_first_gt() local
2378 tmp_buf = evbuffer_new(); in test_evbuffer_peek_first_gt()
2379 evbuffer_add_printf(tmp_buf, "Contents of chunk 100\n"); in test_evbuffer_peek_first_gt()
2380 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
2381 evbuffer_add_printf(tmp_buf, "Contents of chunk 1\n"); in test_evbuffer_peek_first_gt()
2382 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
2402 if (tmp_buf) in test_evbuffer_peek_first_gt()
2403 evbuffer_free(tmp_buf); in test_evbuffer_peek_first_gt()
2409 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek() local
2420 tmp_buf = evbuffer_new(); in test_evbuffer_peek()
[all …]
/freebsd/usr.sbin/camdd/
H A Dcamdd.c283 uint8_t *tmp_buf; member
551 free(file_dev->tmp_buf); in camdd_free_dev()
797 struct camdd_buf *tmp_buf; in camdd_buf_sg_create() local
845 for (i = 0, tmp_buf = STAILQ_FIRST(&buf->src_list); in camdd_buf_sg_create()
846 i < buf->src_count && tmp_buf != NULL; i++, in camdd_buf_sg_create()
847 tmp_buf = STAILQ_NEXT(tmp_buf, src_links)) { in camdd_buf_sg_create()
849 if (tmp_buf->buf_type == CAMDD_BUF_DATA) { in camdd_buf_sg_create()
852 tmp_data = &tmp_buf->buf_type_spec.data; in camdd_buf_sg_create()
869 tmp_ind = &tmp_buf->buf_type_spec.indirect; in camdd_buf_sg_create()
894 if ((tmp_buf != NULL) || (i != data->sg_count)) { in camdd_buf_sg_create()
[all …]
/freebsd/crypto/openssl/apps/
H A Dpasswd.c596 char tmp_buf[80]; /* "rounds=999999999" */ in shacrypt() local
598 BIO_snprintf(tmp_buf, sizeof(tmp_buf), "rounds=%u", rounds); in shacrypt()
601 if (tmp_buf[0] != 0x72) /* ASCII 'r' */ in shacrypt()
602 ebcdic2ascii(tmp_buf, tmp_buf, strlen(tmp_buf)); in shacrypt()
604 OPENSSL_strlcat(out_buf, tmp_buf, sizeof(out_buf)); in shacrypt()
/freebsd/lib/libc/db/hash/
H A Dhash_bigkey.c432 memmove(hashp->tmp_buf, (save_p->page) + off, len); in __big_return()
433 val->data = (u_char *)hashp->tmp_buf; in __big_return()
456 if (hashp->tmp_buf) in collect_data()
457 free(hashp->tmp_buf); in collect_data()
458 if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL) in collect_data()
486 memmove(&hashp->tmp_buf[len], (bufp->page) + bp[1], mylen); in collect_data()
H A Dhash.h97 char *tmp_buf; /* Temporary Buffer for BIG data */ member
H A Dhash.c421 if (hashp->tmp_buf) in hdestroy()
422 free(hashp->tmp_buf); in hdestroy()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_shar.c446 char tmp_buf[3]; in _uuencode_line() local
447 tmp_buf[0] = inbuf[0]; in _uuencode_line()
449 tmp_buf[1] = '\0'; in _uuencode_line()
451 tmp_buf[1] = inbuf[1]; in _uuencode_line()
452 tmp_buf[2] = '\0'; in _uuencode_line()
453 uuencode_group(tmp_buf, buf); in _uuencode_line()
/freebsd/sys/dev/ocs_fc/
H A Docs_mgmt.c970 char tmp_buf[80]; in get_chip_type() local
983 ocs_snprintf(tmp_buf, 2, "%d", rev_id); in get_chip_type()
984 strcat(result_buf, tmp_buf); in get_chip_type()
992 ocs_snprintf(tmp_buf, 3, " %c", ((rev_id & 0xf0) >> 4) + 'A'); in get_chip_type()
993 strcat(result_buf, tmp_buf); in get_chip_type()
994 ocs_snprintf(tmp_buf, 2, "%d", rev_id & 0x0f); in get_chip_type()
995 strcat(result_buf, tmp_buf); in get_chip_type()
1004 ocs_snprintf(tmp_buf, 2, "%d", rev_id & 0x0f); in get_chip_type()
1005 strcat(result_buf, tmp_buf); in get_chip_type()
1010 ocs_snprintf(tmp_buf, 3, " %c", ((rev_id & 0xf0) >> 4) + 'A'); in get_chip_type()
[all …]
/freebsd/crypto/openssl/test/radix/
H A Dquic_ops.c597 if (buf_len > 0 && RT()->tmp_buf == NULL in DEF_FUNC()
598 && !TEST_ptr(RT()->tmp_buf = OPENSSL_malloc(buf_len))) in DEF_FUNC()
601 r = SSL_read_ex(ssl, RT()->tmp_buf + RT()->tmp_buf_offset, in DEF_FUNC()
616 && !TEST_mem_eq(RT()->tmp_buf, buf_len, buf, buf_len)) in DEF_FUNC()
619 OPENSSL_free(RT()->tmp_buf); in DEF_FUNC()
620 RT()->tmp_buf = NULL; in DEF_FUNC()
H A Dquic_bindings.c86 unsigned char *tmp_buf; member
545 OPENSSL_free(rt->tmp_buf); in RADIX_THREAD_free()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddraid.c61 char *tmp_buf; in read_map() local
95 tmp_buf = malloc(tmp_size); in read_map()
96 if (tmp_buf == NULL) { in read_map()
102 memcpy(tmp_buf, buf, bytes); in read_map()
104 buf = tmp_buf; in read_map()
/freebsd/crypto/openssl/test/
H A Dquic_multistream_test.c1042 unsigned char *tmp_buf = NULL; in run_script_worker() local
1261 || !TEST_ptr(tmp_buf = (unsigned char *)OPENSSL_malloc(alpn_len + 1))) in run_script_worker()
1264 memcpy(tmp_buf + 1, alpn, alpn_len); in run_script_worker()
1265 tmp_buf[0] = (unsigned char)alpn_len; in run_script_worker()
1268 if (!TEST_false(SSL_set_alpn_protos(h->c_conn, tmp_buf, in run_script_worker()
1272 OPENSSL_free(tmp_buf); in run_script_worker()
1273 tmp_buf = NULL; in run_script_worker()
1363 if (op->arg1 > 0 && tmp_buf == NULL in run_script_worker()
1364 && !TEST_ptr(tmp_buf = OPENSSL_malloc(op->arg1))) in run_script_worker()
1367 r = SSL_read_ex(c_tgt, tmp_buf + offset, op->arg1 - offset, in run_script_worker()
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A Ddigest.c595 unsigned char *tmp_buf; in EVP_MD_CTX_copy_ex() local
680 tmp_buf = out->md_data; in EVP_MD_CTX_copy_ex()
683 tmp_buf = NULL; in EVP_MD_CTX_copy_ex()
698 if (tmp_buf) in EVP_MD_CTX_copy_ex()
699 out->md_data = tmp_buf; in EVP_MD_CTX_copy_ex()
/freebsd/sys/dev/ixgbe/
H A Dixgbe_e610.c117 u32 *tmp_buf = NULL; in ixgbe_aci_send_cmd_execute() local
161 tmp_buf = (u32*)ixgbe_malloc(hw, tmp_buf_size); in ixgbe_aci_send_cmd_execute()
162 if (!tmp_buf) in ixgbe_aci_send_cmd_execute()
171 memset(tmp_buf, 0xFF, tmp_buf_size); in ixgbe_aci_send_cmd_execute()
172 memcpy(tmp_buf, buf, buf_size); in ixgbe_aci_send_cmd_execute()
183 IXGBE_LE32_TO_CPU(tmp_buf[i])); in ixgbe_aci_send_cmd_execute()
267 tmp_buf[i] = IXGBE_READ_REG(hw, PF_HIBA(i)); in ixgbe_aci_send_cmd_execute()
268 tmp_buf[i] = IXGBE_CPU_TO_LE32(tmp_buf[i]); in ixgbe_aci_send_cmd_execute()
270 memcpy(buf, tmp_buf, buf_size); in ixgbe_aci_send_cmd_execute()
274 if (tmp_buf) in ixgbe_aci_send_cmd_execute()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dbtree.c745 uint8_t *tmp_buf = kmem_alloc(size, KM_SLEEP); in zfs_btree_insert_into_parent() local
746 bcpy(parent->btc_elems + keep_count * size, tmp_buf, in zfs_btree_insert_into_parent()
758 bcpy(tmp_buf, buf, size); in zfs_btree_insert_into_parent()
768 bcpy(tmp_buf, buf, size); in zfs_btree_insert_into_parent()
778 bcpy(tmp_buf, new_parent->btc_elems, size); in zfs_btree_insert_into_parent()
781 kmem_free(tmp_buf, size); in zfs_btree_insert_into_parent()
/freebsd/sys/cam/scsi/
H A Dscsi_pass.c1447 uint8_t *tmp_buf; in passmemsetup() local
1456 tmp_buf = malloc(lengths[i], M_SCSIPASS, in passmemsetup()
1458 io_req->kern_bufs[i] = tmp_buf; in passmemsetup()
1459 *data_ptrs[i] = tmp_buf; in passmemsetup()
1464 tmp_buf, lengths[i], io_req->user_bufs[i], in passmemsetup()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_cq.c427 struct mlx4_ib_cq_buf tmp_buf; in mlx4_ib_resize_cq() local
433 tmp_buf = cq->buf; in mlx4_ib_resize_cq()
444 mlx4_ib_free_cq_buf(dev, &tmp_buf, tmp_cqe); in mlx4_ib_resize_cq()
/freebsd/contrib/pkgconf/tests/
H A Dtest-runner.c1209 pkgconf_buffer_t tmp_buf = PKGCONF_BUFFER_INITIALIZER; in run_test_case() local
1210 pkgconf_buffer_append_fmt(&tmp_buf, "%s/pkgconf-test-XXXXXX", original_cwd); in run_test_case()
1211 tmp_dir = pkgconf_buffer_freeze(&tmp_buf); in run_test_case()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c4248 u8 *tmp_buf = NULL; in bnxt_re_is_loopback_packet() local
4253 tmp_buf = (u8 *)rq_hdr_buf; in bnxt_re_is_loopback_packet()
4259 if (!ether_addr_equal(tmp_buf, rdev->dev_addr)) { in bnxt_re_is_loopback_packet()
4260 tmp_buf += 4; in bnxt_re_is_loopback_packet()
4262 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_loopback_packet()
4282 u8 *tmp_buf = NULL; in bnxt_re_is_vlan_in_packet() local
4285 tmp_buf = (u8 *)rq_hdr_buf; in bnxt_re_is_vlan_in_packet()
4287 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_vlan_in_packet()
4290 tmp_buf += sizeof(struct ethhdr); in bnxt_re_is_vlan_in_packet()
4291 vlan_hdr = (struct vlan_hdr *)tmp_buf; in bnxt_re_is_vlan_in_packet()
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_qos_parser_y.y2739 char tmp_buf[30]; in __setup_simple_qos_levels() local
2746 sprintf(tmp_buf, "%s%u", __SIMPLE_QOS_LEVEL_NAME, i); in __setup_simple_qos_levels()
2747 osm_qos_policy_simple_qos_levels[i].name = strdup(tmp_buf); in __setup_simple_qos_levels()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_iwarp.c2231 u8 *tmp_buf = p_hwfn->p_rdma_info->iwarp.mpa_intermediate_buf; in ecore_iwarp_copy_fpdu() local
2254 OSAL_MEMCPY(tmp_buf, fpdu->mpa_frag_virt, fpdu->mpa_frag_len); in ecore_iwarp_copy_fpdu()
2255 OSAL_MEMCPY(tmp_buf + fpdu->mpa_frag_len, in ecore_iwarp_copy_fpdu()
2266 OSAL_MEMCPY((u8 *)(buf->data), tmp_buf, in ecore_iwarp_copy_fpdu()

12