Lines Matching refs:hash_buf
550 void *hash_buf = NULL;
552 hash_buf = kmalloc(tkey_len, GFP_ATOMIC);
553 if (!hash_buf)
585 ahash_request_set_crypt(hp.req, NULL, hash_buf, 0);
589 memcpy(ao_hash, hash_buf, tcp_ao_maclen(key));
591 kfree(hash_buf);
598 kfree(hash_buf);
610 void *hash_buf = NULL;
612 hash_buf = kmalloc(tkey_len, GFP_ATOMIC);
613 if (!hash_buf)
636 ahash_request_set_crypt(hp.req, NULL, hash_buf, 0);
640 memcpy(ao_hash, hash_buf, tcp_ao_maclen(key));
642 kfree(hash_buf);
649 kfree(hash_buf);
665 void *hash_buf = NULL;
668 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC);
669 if (!hash_buf)
672 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req);
677 hash_buf, hash_offset, sne);
679 kfree(hash_buf);
889 void *hash_buf = NULL;
901 hash_buf = kmalloc(tcp_ao_digest_size(key), GFP_ATOMIC);
902 if (!hash_buf)
906 tcp_ao_hash_skb(family, hash_buf, key, sk, skb, traffic_key,
908 if (memcmp(phash, hash_buf, maclen)) {
914 kfree(hash_buf);
920 kfree(hash_buf);