/freebsd-src/sys/crypto/openssl/ |
H A D | ossl_chacha20.c | 65 size_t resid, todo, inlen, outlen; in ossl_chacha20() local 103 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20() 108 todo = (uint32_t)todo; in ossl_chacha20() 112 next_counter = counter[0] + todo / CHACHA_BLK_SIZE; in ossl_chacha20() 114 todo -= next_counter * CHACHA_BLK_SIZE; in ossl_chacha20() 118 ChaCha20_ctr32(out, in, todo, key, counter); in ossl_chacha20() 128 crypto_cursor_advance(&cc_out, todo); in ossl_chacha20() 129 outseg += todo; in ossl_chacha20() 130 outlen -= todo; in ossl_chacha20() 135 crypto_cursor_advance(&cc_in, todo); in ossl_chacha20() [all …]
|
/freebsd-src/sys/crypto/ |
H A D | chacha20_poly1305.c | 44 size_t resid, todo; in chacha20_poly1305_encrypt() local 58 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in chacha20_poly1305_encrypt() 59 if (todo > 0) { in chacha20_poly1305_encrypt() 60 exf->encrypt_multi(ctx, src, dst, todo); in chacha20_poly1305_encrypt() 61 exf->update(ctx, dst, todo); in chacha20_poly1305_encrypt() 62 src += todo; in chacha20_poly1305_encrypt() 63 dst += todo; in chacha20_poly1305_encrypt() 64 resid -= todo; in chacha20_poly1305_encrypt() 91 size_t resid, todo; in chacha20_poly1305_decrypt() local 124 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in chacha20_poly1305_decrypt() [all …]
|
/freebsd-src/sys/kern/ |
H A D | subr_memdesc.c | 49 int todo; in phys_copyback() local 58 todo = min(PAGE_SIZE - page_off, size); in phys_copyback() 60 memcpy(p, cp, todo); in phys_copyback() 61 size -= todo; in phys_copyback() 62 cp += todo; in phys_copyback() 63 pa += todo; in phys_copyback() 73 int todo; in vlist_copyback() local 87 todo = size; in vlist_copyback() 88 if (todo > vlist->ds_len - off) in vlist_copyback() 89 todo = vlist->ds_len - off; in vlist_copyback() [all …]
|
/freebsd-src/sys/opencrypto/ |
H A D | criov.c | 456 size_t remain, todo; in crypto_cursor_copyback() local 476 todo = MIN(remain, size); in crypto_cursor_copyback() 477 m_copyback(cc->cc_mbuf, cc->cc_offset, todo, src); in crypto_cursor_copyback() 478 src += todo; in crypto_cursor_copyback() 479 if (todo < remain) { in crypto_cursor_copyback() 480 cc->cc_offset += todo; in crypto_cursor_copyback() 483 size -= todo; in crypto_cursor_copyback() 500 todo = MIN(remain, size); in crypto_cursor_copyback() 501 memcpy(dst, src, todo); in crypto_cursor_copyback() 502 src += todo; in crypto_cursor_copyback() [all …]
|
H A D | cryptosoft.c | 105 size_t inlen, outlen, todo; in swcr_encdec() local 161 for (resid = crp->crp_payload_length; resid >= blksz; resid -= todo) { in swcr_encdec() 182 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), blksz); in swcr_encdec() 185 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec() 187 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec() 192 crypto_cursor_advance(&cc_in, todo); in swcr_encdec() 193 inlen -= todo; in swcr_encdec() 194 inblk += todo; in swcr_encdec() 201 crypto_cursor_advance(&cc_out, todo); in swcr_encdec() 202 outlen -= todo; in swcr_encdec() [all …]
|
/freebsd-src/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_pipe.c | 79 ssize_t sz, todo, done; in ATF_TC_BODY() local 92 todo = 2 * 1024 * 1024; in ATF_TC_BODY() 93 REQUIRE_LIBC(f = malloc(todo), NULL); in ATF_TC_BODY() 126 printf("Expected: %#zx\n", (size_t)todo); in ATF_TC_BODY() 128 exit(done != todo); in ATF_TC_BODY() 145 while(todo > 0 && ((sz = write(pp[1], f, todo)) > 0)) in ATF_TC_BODY() 146 todo -= sz; in ATF_TC_BODY()
|
/freebsd-src/crypto/openssl/apps/ |
H A D | list.c | 1554 } todo = { 0, }; in list_main() local 1573 todo.commands = 1; in list_main() 1576 todo.digest_commands = 1; in list_main() 1579 todo.digest_algorithms = 1; in list_main() 1582 todo.kdf_algorithms = 1; in list_main() 1585 todo.random_instances = 1; in list_main() 1588 todo.random_generators = 1; in list_main() 1591 todo.mac_algorithms = 1; in list_main() 1594 todo.cipher_commands = 1; in list_main() 1597 todo.cipher_algorithms = 1; in list_main() [all …]
|
/freebsd-src/crypto/openssl/crypto/chacha/ |
H A D | chacha_enc.c | 77 size_t todo, i; in ChaCha20_ctr32() local 108 todo = sizeof(buf); in ChaCha20_ctr32() 109 if (len < todo) in ChaCha20_ctr32() 110 todo = len; in ChaCha20_ctr32() 114 for (i = 0; i < todo; i++) in ChaCha20_ctr32() 116 out += todo; in ChaCha20_ctr32() 117 inp += todo; in ChaCha20_ctr32() 118 len -= todo; in ChaCha20_ctr32()
|
/freebsd-src/sys/dev/nvmf/controller/ |
H A D | nvmft_controller.c | 498 u_int todo; in m_zero() 508 todo = m->m_len - offset; in m_zero() 509 if (todo > len) in m_zero() 510 todo = len; in m_zero() 511 memset(mtodo(m, offset), 0, todo); in m_zero() 513 len -= todo; in m_zero() 516 todo = m->m_len; in m_zero() 517 if (todo > len) 518 todo = len; 519 memset(mtod(m, void *), 0, todo); in handle_get_log_page() 491 u_int todo; m_zero() local 525 size_t len, todo; handle_get_log_page() local [all...] |
/freebsd-src/contrib/pjdfstest/tests/rename/ |
H A D | 06.t | 34 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret… 36 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret… 51 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret… 53 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret…
|
/freebsd-src/tools/tools/nvmf/nvmfdd/ |
H A D | nvmfdd.c | 299 u_int todo; in nvmf_io() local 312 todo = length; in nvmf_io() 313 if (todo > block_size) in nvmf_io() 314 todo = block_size; in nvmf_io() 317 rv = read(STDIN_FILENO, buf, todo); in nvmf_io() 322 if (rv != todo) { in nvmf_io() 328 if (todo < block_size) in nvmf_io() 329 memset(buf + todo, 0, block_size - todo); in nvmf_io() 340 (void)write(STDOUT_FILENO, buf, todo); in nvmf_io() 343 length -= todo; in nvmf_io()
|
/freebsd-src/contrib/pjdfstest/tests/open/ |
H A D | 11.t | 31 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 33 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 35 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 37 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
|
/freebsd-src/contrib/netbsd-tests/lib/libc/locale/ |
H A D | t_io.c | 118 size_t todo = MIN((size_t)len, ib->buflen - ib->off); in readfn() local 120 memcpy(buf, ib->buf + ib->off, todo); in readfn() 121 ib->off += todo; in readfn() 122 return todo; in readfn()
|
/freebsd-src/usr.bin/gprof/ |
H A D | printgprof.c | 534 nltype *todo; in sortmembers() local 542 todo = cyclep -> cnext; in sortmembers() 544 for ( (doing = todo)&&(todo = doing -> cnext); in sortmembers() 546 (doing = todo )&&(todo = doing -> cnext )){ in sortmembers() 700 int idx, nnames, todo, i, j; in printindex() local 716 for ( idx = 1 , todo = nnames ; idx <= ncycle ; idx++ ) { in printindex() 717 namesortnlp[todo++] = &cyclenl[idx]; in printindex() 720 idx = ( todo + 2 ) / 3; in printindex() 722 for ( j = i; j < todo ; j += idx ) { in printindex()
|
/freebsd-src/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_posix.c | 259 int todo; member 643 a->todo = TODO_MODE_BASE; in _archive_write_disk_header() 645 a->todo |= TODO_MODE_FORCE; /* Be pushy about permissions. */ in _archive_write_disk_header() 661 a->todo |= TODO_SGID | TODO_SGID_CHECK; in _archive_write_disk_header() 667 a->todo |= TODO_SUID | TODO_SUID_CHECK; in _archive_write_disk_header() 679 a->todo |= TODO_OWNER; in _archive_write_disk_header() 681 a->todo |= TODO_TIMES; in _archive_write_disk_header() 728 a->todo |= TODO_ACLS; in _archive_write_disk_header() 737 a->todo |= TODO_MAC_METADATA; in _archive_write_disk_header() 744 a->todo | in _archive_write_disk_header() [all...] |
/freebsd-src/usr.bin/bmake/tests/ |
H A D | common.sh | 329 todo= 335 eval todo=\${TEST_${N}_TODO} 344 if [ ! -z "$fail" -o ! -z "$todo" -o ! -z "$skip" ]; then 350 if [ ! -z "$todo" ] ; then 351 msg="${msg}TODO ${todo}; "
|
/freebsd-src/sys/netipsec/ |
H A D | ipsec_mbuf.c | 91 int todo, len, done; in m_makespace() local 96 todo = remain; in m_makespace() 97 while (todo > 0) { in m_makespace() 98 if (todo > MHLEN) { in m_makespace() 112 len = min(todo, len); in m_makespace() 116 todo -= len; in m_makespace()
|
/freebsd-src/lib/libiscsiutil/ |
H A D | text.c | 289 size_t todo; in text_send_response() local 292 todo = keys_len - keys_offset; in text_send_response() 293 if (todo > (size_t)conn->conn_max_send_data_segment_length) { in text_send_response() 295 todo = conn->conn_max_send_data_segment_length; in text_send_response() 303 response->pdu_data_len = todo; in text_send_response() 304 keys_offset += todo; in text_send_response()
|
/freebsd-src/contrib/pjdfstest/tests/unlink/ |
H A D | 09.t | 39 todo FreeBSD:ZFS "Removing a file protected by SF_APPEND should return EPERM." 41 todo FreeBSD:ZFS "Removing a file protected by SF_APPEND should return EPERM." 43 todo FreeBSD:ZFS "Removing a file protected by SF_APPEND should return EPERM."
|
/freebsd-src/contrib/pjdfstest/tests/rmdir/ |
H A D | 09.t | 39 todo FreeBSD:ZFS "Removing a directory protected by SF_APPEND should return EPERM." 41 todo FreeBSD:ZFS "Removing a directory protected by SF_APPEND should return EPERM." 43 todo FreeBSD:ZFS "Removing a directory protected by SF_APPEND should return EPERM."
|
/freebsd-src/usr.sbin/bhyve/ |
H A D | gdb.c | 1245 size_t resid, todo, bytes; in gdb_read_mem() 1287 todo = getpagesize() - gpa % getpagesize(); in gdb_read_mem() 1288 if (todo > resid) in gdb_read_mem() 1289 todo = resid; in gdb_read_mem() 1291 cp = paddr_guest2host(ctx, gpa, todo); in gdb_read_mem() 1301 while (todo > 0) { in gdb_read_mem() 1307 todo--; in gdb_read_mem() 1315 while (todo > 0) { in gdb_write_mem() 1316 if (gpa & 1 || todo == 1) in gdb_write_mem() 1318 else if (gpa & 2 || todo in gdb_write_mem() 1203 size_t resid, todo, bytes; gdb_read_mem() local 1317 size_t resid, todo, bytes; gdb_write_mem() local [all...] |
/freebsd-src/contrib/pjdfstest/tests/chown/ |
H A D | 00.t | 238 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 243 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 256 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 258 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 264 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 266 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 294 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 303 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}" 392 todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated." 401 todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated." [all …]
|
/freebsd-src/crypto/openssl/crypto/bn/ |
H A D | bn_rand.c | 308 unsigned done, todo; in ossl_bn_gen_dsa_nonce_fixed_top() local 362 todo = num_k_bytes - done; in ossl_bn_gen_dsa_nonce_fixed_top() 363 if (todo > SHA512_DIGEST_LENGTH) in ossl_bn_gen_dsa_nonce_fixed_top() 364 todo = SHA512_DIGEST_LENGTH; in ossl_bn_gen_dsa_nonce_fixed_top() 365 memcpy(k_bytes + done, digest, todo); in ossl_bn_gen_dsa_nonce_fixed_top() 366 done += todo; in ossl_bn_gen_dsa_nonce_fixed_top()
|
/freebsd-src/usr.bin/vmstat/ |
H A D | vmstat.c | 203 int bufsize, c, reps, todo; in main() local 209 interval = reps = todo = 0; in main() 230 todo |= FORKSTAT; in main() 239 todo |= INTRSTAT; in main() 245 todo |= MEMSTAT; in main() 258 todo |= OBJSTAT; in main() 266 todo |= SUMSTAT; in main() 274 todo |= ZMEMSTAT; in main() 288 if (todo == 0) in main() 289 todo in main() [all...] |
/freebsd-src/sys/dev/nvmf/ |
H A D | nvmf_tcp.c | 618 u_int todo; in mbuf_copyto_io() 627 todo = min(m->m_len - skip, len); in mbuf_copyto_io() 628 memdesc_copyback(&io->io_mem, io_offset, todo, mtodo(m, skip)); in mbuf_copyto_io() 630 io_offset += todo; in mbuf_copyto_io() 631 len -= todo; in mbuf_copyto_io() 999 uint32_t sent, todo; in nvmf_tcp_handle_r2t() 1001 todo = min(data_len, qp->max_tx_data); in nvmf_tcp_handle_r2t() local 1002 m = nvmf_tcp_command_buffer_mbuf(cb, data_offset, todo, &sent, in nvmf_tcp_handle_r2t() 1003 todo < data_len); in nvmf_tcp_handle_r2t() 1828 uint32_t todo; in tcp_send_controller_data() 617 u_int todo; mbuf_copyto_io() local 1816 uint32_t todo; tcp_send_controller_data() local [all...] |