Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 18 of 18) sorted by relevance

/openssh-portable/
H A Dprogressmeter.c88 format_rate(char *buf, int size, off_t bytes) in format_rate() argument
92 bytes *= 100; in format_rate()
93 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) in format_rate()
94 bytes = (bytes + 512) / 1024; in format_rate()
97 bytes = (bytes + 512) / 1024; in format_rate()
100 (long long) (bytes + 5) / 100, in format_rate()
101 (long long) (bytes + 5) / 10 % 10, in format_rate()
107 format_size(char *buf, int size, off_t bytes) in format_size() argument
111 for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++) in format_size()
112 bytes = (bytes + 512) / 1024; in format_size()
[all …]
H A Dxmss_hash.c29 unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]){ in addr_to_byte() argument
33 to_byte(bytes+i*4, addr[i],4); in addr_to_byte()
34 return bytes; in addr_to_byte()
36 memcpy(bytes, addr, 32); in addr_to_byte()
37 return bytes; in addr_to_byte()
H A Dchacha.c90 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument
98 if (!bytes) return; in chacha_encrypt_bytes()
118 if (bytes < 64) { in chacha_encrypt_bytes()
119 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
207 if (bytes <= 64) { in chacha_encrypt_bytes()
208 if (bytes < 64) { in chacha_encrypt_bytes()
209 for (i = 0;i < bytes;++i) ctarget[i] = c[i]; in chacha_encrypt_bytes()
215 bytes -= 64; in chacha_encrypt_bytes()
H A Dxmss_commons.c19 void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes) in to_byte() argument
22 for (i = bytes-1; i >= 0; i--) { in to_byte()
H A Dcipher-aesctr.c69 aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes) in aesctr_encrypt_bytes() argument
74 while ((bytes--) > 0) { in aesctr_encrypt_bytes()
H A Dentropy.c170 seed_from_prngd(unsigned char *buf, size_t bytes) in seed_from_prngd() argument
174 if (get_random_bytes_prngd(buf, bytes, PRNGD_PORT, NULL) == 0) in seed_from_prngd()
179 if (get_random_bytes_prngd(buf, bytes, 0, PRNGD_SOCKET) == 0) in seed_from_prngd()
H A Dxmss_commons.h17 void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
H A Dxmss_hash.h15 unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]);
H A Dcipher-aesctr.h33 void aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes);
H A Dchacha.h31 u_char *c, u_int bytes)
H A Dpacket.c112 u_int64_t bytes; member
470 *ibytes = ssh->state->p_read.bytes; in ssh_packet_get_bytes()
472 *obytes = ssh->state->p_send.bytes; in ssh_packet_get_bytes()
890 (unsigned long long)state->p_read.bytes, in ssh_set_newkeys()
892 (unsigned long long)state->p_send.bytes, in ssh_set_newkeys()
1205 state->p_send.bytes += len; in ssh_packet_send2_wrapped()
1636 state->p_read.bytes += state->packlen + 4; in ssh_packet_read_poll2()
2137 ssh->state->rekey_limit = bytes; in ssh_packet_set_rekey_limits()
2274 (r = sshbuf_put_u64(m, state->p_send.bytes)) != 0 || in ssh_packet_get_state()
2278 (r = sshbuf_put_u64(m, state->p_read.bytes)) != 0 || in ssh_packet_get_state()
[all …]
H A Dsftp-server.c394 handle_update_read(int handle, ssize_t bytes) in handle_update_read() argument
396 if (handle_is_ok(handle, HANDLE_FILE) && bytes > 0) in handle_update_read()
397 handles[handle].bytes_read += bytes; in handle_update_read()
401 handle_update_write(int handle, ssize_t bytes) in handle_update_write() argument
403 if (handle_is_ok(handle, HANDLE_FILE) && bytes > 0) in handle_update_write()
404 handles[handle].bytes_write += bytes; in handle_update_write()
H A Dxmss_fast.c38 unsigned char bytes[32]; in get_seed() local
44 addr_to_byte(bytes, addr); in get_seed()
45 prf(seed, bytes, sk_seed, n); in get_seed()
H A Dclientloop.c944 int r, bytes = 0; in process_escapes() local
1120 bytes++; in process_escapes()
1147 bytes++; in process_escapes()
1149 return bytes; in process_escapes()
H A Dssh-keygen.c458 u_int bytes, bignum_bits; in buffer_get_bignum_bits() local
463 bytes = (bignum_bits + 7) / 8; in buffer_get_bignum_bits()
464 if (sshbuf_len(b) < bytes) in buffer_get_bignum_bits()
466 bytes, sshbuf_len(b)); in buffer_get_bignum_bits()
467 if (BN_bin2bn(sshbuf_ptr(b), bytes, value) == NULL) in buffer_get_bignum_bits()
469 if ((r = sshbuf_consume(b, bytes)) != 0) in buffer_get_bignum_bits()
H A Dsntrup4591761.c1066 static void swap(void *x,void *y,int bytes,int mask) in swap() argument
1073 for (i = 0;i < bytes;++i) { in swap()
/openssh-portable/regress/
H A Drekey.sh143 16) bytes=16 ;;
144 1k|1K) bytes=1024 ;;
145 1m|1M) bytes=1048576 ;;
146 1g|1G) bytes=1073741824 ;;
147 4g|4G) bytes=4294967296 ;;
148 8g|8G) bytes=8589934592 ;;
163 if [ "$bytes" != "$b" ]; then
164 fatal "rekeylimit size: expected $bytes bytes got $b"
/openssh-portable/openbsd-compat/
H A Dchacha_private.h89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument
97 if (!bytes) return; in chacha_encrypt_bytes()
117 if (bytes < 64) { in chacha_encrypt_bytes()
118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
208 if (bytes <= 64) { in chacha_encrypt_bytes()
209 if (bytes < 64) { in chacha_encrypt_bytes()
210 for (i = 0;i < bytes;++i) ctarget[i] = c[i]; in chacha_encrypt_bytes()
216 bytes -= 64; in chacha_encrypt_bytes()

Completed in 64 milliseconds