Lines Matching refs:hp
530 static int tcp_v6_md5_hash_pseudoheader(struct tcp_md5sig_pool *hp, in tcp_v6_md5_hash_pseudoheader() argument
537 bp = &hp->md5_blk.ip6; in tcp_v6_md5_hash_pseudoheader()
545 return crypto_hash_update(&hp->md5_desc, &sg, sizeof(*bp)); in tcp_v6_md5_hash_pseudoheader()
552 struct tcp_md5sig_pool *hp; in tcp_v6_md5_hash_hdr() local
555 hp = tcp_get_md5sig_pool(); in tcp_v6_md5_hash_hdr()
556 if (!hp) in tcp_v6_md5_hash_hdr()
558 desc = &hp->md5_desc; in tcp_v6_md5_hash_hdr()
562 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v6_md5_hash_hdr()
564 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_hdr()
566 if (tcp_md5_hash_key(hp, key)) in tcp_v6_md5_hash_hdr()
587 struct tcp_md5sig_pool *hp; in tcp_v6_md5_hash_skb() local
600 hp = tcp_get_md5sig_pool(); in tcp_v6_md5_hash_skb()
601 if (!hp) in tcp_v6_md5_hash_skb()
603 desc = &hp->md5_desc; in tcp_v6_md5_hash_skb()
608 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, skb->len)) in tcp_v6_md5_hash_skb()
610 if (tcp_md5_hash_header(hp, th)) in tcp_v6_md5_hash_skb()
612 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
614 if (tcp_md5_hash_key(hp, key)) in tcp_v6_md5_hash_skb()