Lines Matching refs:prime
111 a.prime = vdup(&buf); \
171 if (dhgrp->prime)
172 vfree(dhgrp->prime);
185 * length of the prime modulus over which the exponentiation was
189 oakley_check_dh_pub(prime, pub0)
190 vchar_t *prime, **pub0;
195 if (prime->l == pub->l)
198 if (prime->l < pub->l) {
205 /* prime->l > pub->l */
206 tmp = vmalloc(prime->l);
212 memcpy(tmp->v + prime->l - pub->l, pub->v, pub->l);
233 if ((*gxy = vmalloc(dh->prime->l)) == NULL) {
244 if (eay_dh_compute(dh->prime, dh->gen1, pub, priv, pub_p, gxy) < 0) {
264 s_attr_isakmp_group(dh->type), dh->prime->l << 3,
290 if (eay_dh_generate(dh->prime, dh->gen1, dh->gen2, pub, priv) < 0) {
311 s_attr_isakmp_group(dh->type), dh->prime->l << 3,
315 if (oakley_check_dh_pub(dh->prime, pub) != 0)
345 if (!g->type || !g->prime || !g->gen1) {
361 (*dhgrp)->prime = vdup(g->prime);