Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 161) sorted by relevance

1234567

/openssh-portable/
H A Dsc25519.c47 r->v[i] ^= mask & (r->v[i] ^ t[i]); in reduce_add_sub()
98 reduce_add_sub(r); in barrett_reduce()
131 r->v[16+i] = 0; in sc25519_from_shortsc()
249 r[i] += carry; in sc25519_window3()
250 r[i+1] += r[i] >> 3; in sc25519_window3()
251 r[i] &= 7; in sc25519_window3()
255 r[84] += carry; in sc25519_window3()
286 r[i] += carry; in sc25519_window5()
287 r[i+1] += r[i] >> 5; in sc25519_window5()
288 r[i] &= 31; in sc25519_window5()
[all …]
H A Dssh-sk-client.c151 return r; in client_converse()
207 r = 0; in client_converse()
213 r = r2; in client_converse()
217 if (r == 0) { in client_converse()
225 return r; in client_converse()
285 r = 0; in sshsk_sign()
297 return r; in sshsk_sign()
364 r = 0; in sshsk_enroll()
375 return r; in sshsk_enroll()
432 r = 0; in sshsk_load_resident()
[all …]
H A Dsshsig.c82 r = 0; in sshsig_armor()
91 int r; in sshsig_dearmor() local
143 r = 0; in sshsig_dearmor()
158 int r; in sshsig_wrap_sign() local
216 r = 0; in sshsig_wrap_sign()
279 r = 0; in sshsig_peek_hashalg()
374 r = 0; in sshsig_wrap_verify()
424 r = 0; in hash_buffer()
452 r = 0; in sshsig_signb()
482 r = 0; in sshsig_verifyb()
[all …]
H A Dsshbuf-getput-basic.c38 int r; in sshbuf_get() local
51 int r; in sshbuf_get_u64() local
64 int r; in sshbuf_get_u32() local
77 int r; in sshbuf_get_u16() local
90 int r; in sshbuf_get_u8() local
117 int r; in check_roffset() local
130 int r; in sshbuf_peek_u64() local
145 int r; in sshbuf_peek_u32() local
160 int r; in sshbuf_peek_u16() local
175 int r; in sshbuf_peek_u8() local
[all …]
H A Dkexgen.c61 int r; in kex_gen_hash() local
81 return r; in kex_gen_hash()
102 int r; in kex_gen_client() local
127 if (r != 0) in kex_gen_client()
128 return r; in kex_gen_client()
132 return r; in kex_gen_client()
149 int r; in input_kex_gen_reply() local
199 if (r !=0 ) in input_kex_gen_reply()
236 return r; in input_kex_gen_reply()
258 int r; in input_kex_gen_init() local
[all …]
H A Dauthfd.c140 int r; in ssh_request_reply() local
185 int r; in ssh_request_reply_decode() local
195 r = 0; in ssh_request_reply_decode()
217 int r; in ssh_lock_agent() local
228 r = 0; in ssh_lock_agent()
238 int r; in deserialise_identity2() local
252 r = 0; in deserialise_identity2()
268 int r; in ssh_fetch_identitylist() local
327 r = 0; in ssh_fetch_identitylist()
448 r = 0; in ssh_agent_sign()
[all …]
H A Dmonitor_wrap.c89 int r; in mm_log_handler() local
145 int r; in mm_request_receive() local
168 int r; in mm_request_receive_expect() local
184 int r; in mm_choose_dh() local
224 int r; in mm_sshkey_sign() local
263 int r; in mm_getpwnamallow() local
354 int r; in mm_auth2_read_banner() local
383 int r; in mm_inform_authserv() local
508 int r; in mm_sshkey_verify() local
555 int r; in mm_send_keystate() local
[all …]
H A Dssh-sk.c173 freezero(r->key_handle, r->key_handle_len); in sshsk_free_enroll_response()
174 freezero(r->public_key, r->public_key_len); in sshsk_free_enroll_response()
175 freezero(r->signature, r->signature_len); in sshsk_free_enroll_response()
177 freezero(r->authdata, r->authdata_len); in sshsk_free_enroll_response()
178 freezero(r, sizeof(*r)); in sshsk_free_enroll_response()
186 freezero(r->sig_r, r->sig_r_len); in sshsk_free_sign_response()
187 freezero(r->sig_s, r->sig_s_len); in sshsk_free_sign_response()
188 freezero(r, sizeof(*r)); in sshsk_free_sign_response()
524 r = skerr_to_ssherr(r); in sshsk_enroll()
675 r = skerr_to_ssherr(r); in sshsk_sign()
[all …]
H A Dauthfile.c58 int r; in sshkey_save_private_blob() local
64 return r; in sshkey_save_private_blob()
73 int r; in sshkey_save_private() local
82 r = 0; in sshkey_save_private()
156 int r; in sshkey_load_private_type_fd() local
166 r = 0; in sshkey_load_private_type_fd()
196 r = 0; in sshkey_load_pubkey_from_private()
211 int r; in sshkey_try_load_public() local
323 int r; in sshkey_load_private_cert() local
356 r = 0; in sshkey_load_private_cert()
[all …]
H A Dge25519.c87 fe25519_sub(&a, &r->y, &r->x); /* A = (Y1-X1)*(Y2-X2) */ in ge25519_mixadd2()
88 fe25519_add(&b, &r->y, &r->x); /* B = (Y1+X1)*(Y2+X2) */ in ge25519_mixadd2()
97 fe25519_add(&d, &r->z, &r->z); /* D = Z1*2 */ in ge25519_mixadd2()
137 fe25519_square(&r->x, &r->x); in dbl_p1p1()
138 fe25519_sub(&r->x, &r->x, &a); in dbl_p1p1()
139 fe25519_sub(&r->x, &r->x, &b); in dbl_p1p1()
141 fe25519_sub(&r->t, &r->z, &c); in dbl_p1p1()
227 fe25519_mul(&r->x, &r->x, &ge25519_sqrtm1); in ge25519_unpackneg_vartime()
237 fe25519_neg(&r->x, &r->x); in ge25519_unpackneg_vartime()
239 fe25519_mul(&r->t, &r->x, &r->y); in ge25519_unpackneg_vartime()
[all …]
H A Dssh-sk-helper.c57 reply_error(int r, char *fmt, ...) in reply_error() argument
69 if (r >= 0) in reply_error()
70 fatal_f("invalid error code %d", r); in reply_error()
94 int r = SSH_ERR_INTERNAL_ERROR; in process_sign() local
109 fatal_r(r, "%s: parse", __progname); in process_sign()
128 resp = reply_error(r, "Signing failed: %s", ssh_err(r)); in process_sign()
152 int r; in process_enroll() local
187 resp = reply_error(r, "Enrollment failed: %s", ssh_err(r)); in process_enroll()
216 int r; in process_load_resident() local
238 ssh_err(r)); in process_load_resident()
[all …]
H A Dssh-pkcs11-helper.c111 int r; in send_msg() local
114 fatal_fr(r, "enqueue"); in send_msg()
122 int r, i, nkeys; in process_add() local
132 fatal_fr(r, "parse"); in process_add()
152 fatal_fr(r, "compose"); in process_add()
166 int r; in process_del() local
172 fatal_fr(r, "parse"); in process_del()
176 fatal_fr(r, "compose"); in process_del()
188 int r, ok = -1; in process_sign() local
196 fatal_fr(r, "parse"); in process_sign()
[all …]
H A Ddispatch.c43 int r; in dispatch_protocol_error() local
90 int r; in ssh_dispatch_run() local
97 if (r != 0) in ssh_dispatch_run()
98 return r; in ssh_dispatch_run()
101 if (r != 0) in ssh_dispatch_run()
102 return r; in ssh_dispatch_run()
114 if (r != 0) in ssh_dispatch_run()
115 return r; in ssh_dispatch_run()
119 if (r != 0) in ssh_dispatch_run()
120 return r; in ssh_dispatch_run()
[all …]
H A Dsftp-server.c490 int r; in get_handle() local
507 int r; in send_msg() local
536 int r; in send_status() local
561 int r; in send_data_or_handle() local
619 int r; in send_attrib() local
637 int r; in send_statvfs() local
669 int r; in compose_extension() local
690 int r; in process_init() local
1217 int r; in process_realpath() local
1368 int r; in process_extended_statvfs() local
[all …]
H A Dsshkey-xmss.c296 int r; in sshkey_xmss_serialize_enc_key() local
313 int r; in sshkey_xmss_deserialize_enc_key() local
331 int r; in sshkey_xmss_serialize_pk_info() local
350 int r; in sshkey_xmss_deserialize_pk_info() local
370 int r; in sshkey_xmss_generate_private_key() local
683 int r; in sshkey_xmss_serialize_state() local
762 r = 0; in sshkey_xmss_serialize_state_opt()
830 r = 0; in sshkey_xmss_deserialize_state()
842 int r; in sshkey_xmss_deserialize_state_opt() local
965 r = 0; in sshkey_xmss_encrypt_state()
[all …]
H A Dkrl.c123 int r; in blob_cmp() local
220 int r; in revoked_certs_for_ca_key() local
331 int r; in ssh_krl_revoke_cert_by_serial_range() local
346 int r; in ssh_krl_revoke_cert_by_key_id() local
370 int r; in plain_key_blob() local
408 int r; in ssh_krl_revoke_key_explicit() local
420 int r; in revoke_by_hash() local
557 int r; in put_bitmap() local
723 r = 0; in revoked_certs_generate()
819 r = 0; in ssh_krl_to_blob()
[all …]
H A Dkexgexs.c75 int r; in input_kex_dh_gex_request() local
105 r = SSH_ERR_ALLOC_FAIL; in input_kex_dh_gex_request()
113 (r = sshpkt_send(ssh)) != 0) in input_kex_dh_gex_request()
122 r = 0; in input_kex_dh_gex_request()
124 return r; in input_kex_dh_gex_request()
139 int r; in input_kex_dh_gex_init() local
153 r = SSH_ERR_ALLOC_FAIL; in input_kex_dh_gex_init()
159 r = SSH_ERR_ALLOC_FAIL; in input_kex_dh_gex_init()
169 if ((r = kexgex_hash( in input_kex_dh_gex_init()
198 r = kex_send_newkeys(ssh); in input_kex_dh_gex_init()
[all …]
H A Dlog.h111 #define do_log2_r(r, level, ...) sshlog(__FILE__, __func__, __LINE__, 0, level, ssh_err(r), __VA_AR… argument
112 #define debug3_r(r, ...) sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_DEBUG3, ssh_err(r), _… argument
113 #define debug2_r(r, ...) sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_DEBUG2, ssh_err(r), _… argument
114 #define debug_r(r, ...) sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_DEBUG1, ssh_err(r), _… argument
116 #define logit_r(r, ...) sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_INFO, ssh_err(r), __V… argument
117 #define error_r(r, ...) sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_ERROR, ssh_err(r), __… argument
118 #define fatal_r(r, ...) sshfatal(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_FATAL, ssh_err(r), … argument
121 #define do_log2_fr(r, level, ...) sshlog(__FILE__, __func__, __LINE__, 1, level, ssh_err(r), __VA_A… argument
124 #define debug_fr(r, ...) sshlog(__FILE__, __func__, __LINE__, 1, SYSLOG_LEVEL_DEBUG1, ssh_err(r), _… argument
126 #define logit_fr(r, ...) sshlog(__FILE__, __func__, __LINE__, 1, SYSLOG_LEVEL_INFO, ssh_err(r), __V… argument
[all …]
H A Dkexgex.c63 int r; in kexgex_hash() local
69 if ((r = sshbuf_put_stringb(b, client_version)) < 0 || in kexgex_hash()
70 (r = sshbuf_put_stringb(b, server_version)) < 0 || in kexgex_hash()
73 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kexgex_hash()
74 (r = sshbuf_putb(b, client_kexinit)) != 0 || in kexgex_hash()
76 (r = sshbuf_put_u8(b, SSH2_MSG_KEXINIT)) != 0 || in kexgex_hash()
77 (r = sshbuf_putb(b, server_kexinit)) != 0 || in kexgex_hash()
80 (r = sshbuf_put_u32(b, wantbits)) != 0 || in kexgex_hash()
82 (r = sshbuf_put_bignum2(b, prime)) != 0 || in kexgex_hash()
83 (r = sshbuf_put_bignum2(b, gen)) != 0 || in kexgex_hash()
[all …]
H A Dssh-pkcs11-client.c60 int r; in send_msg() local
68 fatal_fr(r, "consume"); in send_msg()
76 int r; in recv_msg() local
124 int r, ret = -1; in rsa_encrypt() local
146 fatal_fr(r, "compose"); in rsa_encrypt()
152 fatal_fr(r, "parse"); in rsa_encrypt()
177 int r, nid; in ecdsa_do_sign() local
205 fatal_fr(r, "compose"); in ecdsa_do_sign()
211 fatal_fr(r, "parse"); in ecdsa_do_sign()
319 int r, type; in pkcs11_add_provider() local
[all …]
H A Dkexgexc.c63 int r; in kexgex_client() local
89 r = 0; in kexgex_client()
91 return r; in kexgex_client()
100 int r, bits; in input_kex_dh_gex_group() local
115 r = SSH_ERR_ALLOC_FAIL; in input_kex_dh_gex_group()
137 r = 0; in input_kex_dh_gex_group()
141 return r; in input_kex_dh_gex_group()
156 int r; in input_kex_dh_gex_reply() local
166 r = SSH_ERR_ALLOC_FAIL; in input_kex_dh_gex_reply()
190 if ((r = kexgex_hash( in input_kex_dh_gex_reply()
[all …]
H A Dpacket.c297 int r; in ssh_packet_set_connection() local
363 int r; in ssh_packet_set_log_preamble() local
382 int r; in ssh_packet_stop_discard() local
410 int r; in ssh_packet_start_discard() local
1408 int r; in ssh_packet_read() local
1423 int r; in ssh_packet_read_expect() local
1444 int r; in ssh_packet_read_poll2_mux() local
1486 int r; in ssh_packet_read_poll2() local
1713 int r; in ssh_packet_read_poll_seqnr() local
1773 int r; in ssh_packet_process_incoming() local
[all …]
H A Dfe25519.c51 r->v[31] &= 127; in reduce_add_sub()
53 r->v[0] += t; in reduce_add_sub()
73 r->v[0] += t; in reduce_mul()
104 r->v[31] &= 127; in fe25519_unpack()
114 r[i] = y.v[i]; in fe25519_pack()
120 int r; in fe25519_iszero() local
126 return r; in fe25519_iszero()
146 for(i=0;i<32;i++) r->v[i] ^= mask & (x->v[i] ^ r->v[i]); in fe25519_cmov()
159 r->v[0] = 1; in fe25519_setone()
175 fe25519_sub(r, r, &t); in fe25519_neg()
[all …]
/openssh-portable/regress/unittests/sshbuf/
H A Dtest_sshbuf_fuzz.c34 u_int32_t r; in sshbuf_fuzz_tests() local
50 r = arc4random_uniform(10); in sshbuf_fuzz_tests()
51 if (r == 0) { in sshbuf_fuzz_tests()
60 ASSERT_SIZE_T_LT(sz, r); in sshbuf_fuzz_tests()
65 ASSERT_SIZE_T_GE(sz, r); in sshbuf_fuzz_tests()
70 } else if (r < 3) { in sshbuf_fuzz_tests()
74 } else if (r == 3) { in sshbuf_fuzz_tests()
92 } else if (r < 8) { in sshbuf_fuzz_tests()
96 } else if (r == 8) { in sshbuf_fuzz_tests()
117 arc4random_buf(&r, sizeof(r)); in sshbuf_fuzz_tests()
[all …]
/openssh-portable/regress/
H A Dagent.sh13 r=$?
19 r=$?
69 r=$?
75 r=$?
82 r=$?
103 r=$?
108 r=$?
114 r=$?
121 r=$?
126 r=$?
[all …]

1234567