Lines Matching refs:n
55 size_t n, buflen; in main() local
180 mbedtls_dhm_make_params(&dhm, (int) mbedtls_dhm_get_len(&dhm), buf, &n, in main()
196 if ((ret = mbedtls_sha256(buf, n, hash, 0)) != 0) { in main()
202 buf[n] = (unsigned char) (rsa_key_len >> 8); in main()
203 buf[n + 1] = (unsigned char) (rsa_key_len); in main()
207 hash, buf + n + 2)) != 0) { in main()
212 buflen = n + 2 + rsa_key_len; in main()
230 n = mbedtls_dhm_get_len(&dhm); in main()
231 if ((ret = mbedtls_net_recv(&client_fd, buf, n)) != (int) n) { in main()
236 if ((ret = mbedtls_dhm_read_public(&dhm, buf, n)) != 0) { in main()
247 if ((ret = mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &n, in main()
253 for (n = 0; n < 16; n++) { in main()
254 mbedtls_printf("%02x", buf[n]); in main()