Lines Matching refs:hash_buf

569 	void *hash_buf = NULL;  in tcp_ao_hash_hdr()  local
571 hash_buf = kmalloc(tkey_len, GFP_ATOMIC); in tcp_ao_hash_hdr()
572 if (!hash_buf) in tcp_ao_hash_hdr()
604 ahash_request_set_crypt(hp.req, NULL, hash_buf, 0); in tcp_ao_hash_hdr()
608 memcpy(ao_hash, hash_buf, tcp_ao_maclen(key)); in tcp_ao_hash_hdr()
610 kfree(hash_buf); in tcp_ao_hash_hdr()
617 kfree(hash_buf); in tcp_ao_hash_hdr()
629 void *hash_buf = NULL; in tcp_ao_hash_skb() local
631 hash_buf = kmalloc(tkey_len, GFP_ATOMIC); in tcp_ao_hash_skb()
632 if (!hash_buf) in tcp_ao_hash_skb()
655 ahash_request_set_crypt(hp.req, NULL, hash_buf, 0); in tcp_ao_hash_skb()
659 memcpy(ao_hash, hash_buf, tcp_ao_maclen(key)); in tcp_ao_hash_skb()
661 kfree(hash_buf); in tcp_ao_hash_skb()
668 kfree(hash_buf); in tcp_ao_hash_skb()
684 void *hash_buf = NULL; in tcp_v4_ao_synack_hash() local
687 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v4_ao_synack_hash()
688 if (!hash_buf) in tcp_v4_ao_synack_hash()
691 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v4_ao_synack_hash()
696 hash_buf, hash_offset, sne); in tcp_v4_ao_synack_hash()
698 kfree(hash_buf); in tcp_v4_ao_synack_hash()
908 void *hash_buf = NULL; in tcp_ao_verify_hash() local
919 hash_buf = kmalloc(tcp_ao_digest_size(key), GFP_ATOMIC); in tcp_ao_verify_hash()
920 if (!hash_buf) in tcp_ao_verify_hash()
924 tcp_ao_hash_skb(family, hash_buf, key, sk, skb, traffic_key, in tcp_ao_verify_hash()
926 if (memcmp(phash, hash_buf, maclen)) { in tcp_ao_verify_hash()
932 kfree(hash_buf); in tcp_ao_verify_hash()
938 kfree(hash_buf); in tcp_ao_verify_hash()