Lines Matching defs:hash_buf
568 void *hash_buf = NULL;
570 hash_buf = kmalloc(tkey_len, GFP_ATOMIC);
571 if (!hash_buf)
603 ahash_request_set_crypt(hp.req, NULL, hash_buf, 0);
607 memcpy(ao_hash, hash_buf, tcp_ao_maclen(key));
609 kfree(hash_buf);
616 kfree(hash_buf);
628 void *hash_buf = NULL;
630 hash_buf = kmalloc(tkey_len, GFP_ATOMIC);
631 if (!hash_buf)
654 ahash_request_set_crypt(hp.req, NULL, hash_buf, 0);
658 memcpy(ao_hash, hash_buf, tcp_ao_maclen(key));
660 kfree(hash_buf);
667 kfree(hash_buf);
683 void *hash_buf = NULL;
686 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC);
687 if (!hash_buf)
690 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req);
695 hash_buf, hash_offset, sne);
697 kfree(hash_buf);
907 void *hash_buf = NULL;
918 hash_buf = kmalloc(tcp_ao_digest_size(key), GFP_ATOMIC);
919 if (!hash_buf)
923 tcp_ao_hash_skb(family, hash_buf, key, sk, skb, traffic_key,
925 if (memcmp(phash, hash_buf, maclen)) {
931 kfree(hash_buf);
937 kfree(hash_buf);