Lines Matching full:hash
134 * We expect HDR, HASH, ATTR
229 "Cannot compute hash\n");
236 "Hash verification failed\n");
1121 vchar_t *hash = NULL;
1172 /* get IV and HASH(1) if skeyid_a was generated. */
1181 /* generate HASH(1) */
1182 hash = oakley_compute_hash1(iph2->ph1, iph2->msgid, payload);
1183 if (hash == NULL) {
1189 tlen = hash->l;
1193 hash = NULL;
1199 iph2->flags = (hash == NULL ? 0 : ISAKMP_FLAG_E);
1201 iph2->flags = (hash == NULL ? 0 : ISAKMP_FLAG_A);
1220 isakmp->np = hash == NULL ? (np & 0xff) : ISAKMP_NPTYPE_HASH;
1228 /* create HASH payload */
1229 if (hash != NULL) {
1232 gen->len = htons(sizeof(*gen) + hash->l);
1234 memcpy(p, hash->v, hash->l);
1235 p += hash->l;
1261 /* HDR*, HASH(1), ATTR */
1285 if (hash)
1286 vfree(hash);