Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 6 of 6) sorted by relevance

/external/openssh/
Dkexdhc.c54 u_char *kbuf, *hash; in kexdh_client() local
117 kbuf = xmalloc(klen); in kexdh_client()
118 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) in kexdh_client()
121 dump_digest("shared secret", kbuf, kout); in kexdh_client()
125 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexdh_client()
127 memset(kbuf, 0, klen); in kexdh_client()
128 xfree(kbuf); in kexdh_client()
Dkexecdhc.c58 u_char *kbuf, *hash; in kexecdh_client() local
113 kbuf = xmalloc(klen); in kexecdh_client()
114 if (ECDH_compute_key(kbuf, klen, server_public, in kexecdh_client()
119 dump_digest("shared secret", kbuf, klen); in kexecdh_client()
123 if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) in kexecdh_client()
125 memset(kbuf, 0, klen); in kexecdh_client()
126 xfree(kbuf); in kexecdh_client()
Dkexdhs.c56 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexdh_server() local
110 kbuf = xmalloc(klen); in kexdh_server()
111 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) in kexdh_server()
114 dump_digest("shared secret", kbuf, kout); in kexdh_server()
118 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexdh_server()
120 memset(kbuf, 0, klen); in kexdh_server()
121 xfree(kbuf); in kexdh_server()
Dkexecdhs.c60 u_char *kbuf, *hash; in kexecdh_server() local
105 kbuf = xmalloc(klen); in kexecdh_server()
106 if (ECDH_compute_key(kbuf, klen, client_public, in kexecdh_server()
111 dump_digest("shared secret", kbuf, klen); in kexecdh_server()
115 if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) in kexecdh_server()
117 memset(kbuf, 0, klen); in kexecdh_server()
118 xfree(kbuf); in kexecdh_server()
Dkexgexs.c59 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexgex_server() local
147 kbuf = xmalloc(klen); in kexgex_server()
148 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0) in kexgex_server()
151 dump_digest("shared secret", kbuf, kout); in kexgex_server()
155 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexgex_server()
157 memset(kbuf, 0, klen); in kexgex_server()
158 xfree(kbuf); in kexgex_server()
Dkexgexc.c55 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexgex_client() local
155 kbuf = xmalloc(klen); in kexgex_client()
156 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0) in kexgex_client()
159 dump_digest("shared secret", kbuf, kout); in kexgex_client()
163 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) in kexgex_client()
165 memset(kbuf, 0, klen); in kexgex_client()
166 xfree(kbuf); in kexgex_client()