/external/openssh/ |
kexdhc.c | 54 u_char *kbuf, *hash; local 117 kbuf = xmalloc(klen); 118 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) 121 dump_digest("shared secret", kbuf, kout); 125 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 127 memset(kbuf, 0, klen); 128 xfree(kbuf);
|
kexdhs.c | 56 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; local 110 kbuf = xmalloc(klen); 111 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) 114 dump_digest("shared secret", kbuf, kout); 118 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 120 memset(kbuf, 0, klen); 121 xfree(kbuf);
|
kexecdhc.c | 58 u_char *kbuf, *hash; local 113 kbuf = xmalloc(klen); 114 if (ECDH_compute_key(kbuf, klen, server_public, 119 dump_digest("shared secret", kbuf, klen); 123 if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) 125 memset(kbuf, 0, klen); 126 xfree(kbuf);
|
kexecdhs.c | 60 u_char *kbuf, *hash; local 105 kbuf = xmalloc(klen); 106 if (ECDH_compute_key(kbuf, klen, client_public, 111 dump_digest("shared secret", kbuf, klen); 115 if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) 117 memset(kbuf, 0, klen); 118 xfree(kbuf);
|
kexgexc.c | 55 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; local 155 kbuf = xmalloc(klen); 156 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) 159 dump_digest("shared secret", kbuf, kout); 163 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 165 memset(kbuf, 0, klen); 166 xfree(kbuf);
|
kexgexs.c | 59 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; local 147 kbuf = xmalloc(klen); 148 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) 151 dump_digest("shared secret", kbuf, kout); 155 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) 157 memset(kbuf, 0, klen); 158 xfree(kbuf);
|