Home
last modified time | relevance | path

Searched refs:hash_desc (Results 1 – 35 of 35) sorted by relevance

/linux-4.4.14/include/scsi/
Dlibiscsi_tcp.h29 struct hash_desc;
41 struct hash_desc *hash;
76 struct hash_desc *rx_hash;
114 struct hash_desc *hash);
119 iscsi_segment_done_fn_t *done, struct hash_desc *hash);
122 extern void iscsi_tcp_dgst_header(struct hash_desc *hash, const void *hdr,
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto.c41 struct hash_desc *desc, unsigned char *key, in cfs_crypto_hash_alloc()
98 struct hash_desc hdesc; in cfs_crypto_hash_digest()
129 struct hash_desc *hdesc; in cfs_crypto_hash_init()
156 return crypto_hash_update((struct hash_desc *)hdesc, &sl, sl.length); in cfs_crypto_hash_update_page()
167 return crypto_hash_update((struct hash_desc *)hdesc, &sl, sl.length); in cfs_crypto_hash_update()
176 int size = crypto_hash_digestsize(((struct hash_desc *)hdesc)->tfm); in cfs_crypto_hash_final()
179 crypto_free_hash(((struct hash_desc *)hdesc)->tfm); in cfs_crypto_hash_final()
187 err = crypto_hash_final((struct hash_desc *) hdesc, hash); in cfs_crypto_hash_final()
193 crypto_free_hash(((struct hash_desc *)hdesc)->tfm); in cfs_crypto_hash_final()
/linux-4.4.14/drivers/scsi/
Discsi_tcp.h48 struct hash_desc tx_hash; /* CRC32C (Tx) */
49 struct hash_desc rx_hash; /* CRC32C (Rx) */
Dlibiscsi_tcp.c313 iscsi_tcp_dgst_header(struct hash_desc *hash, const void *hdr, size_t hdrlen, in iscsi_tcp_dgst_header()
344 iscsi_segment_done_fn_t *done, struct hash_desc *hash) in __iscsi_segment_init()
359 struct hash_desc *hash) in iscsi_segment_init_linear()
371 iscsi_segment_done_fn_t *done, struct hash_desc *hash) in iscsi_segment_seek_sg()
434 struct hash_desc *rx_hash = NULL; in iscsi_tcp_data_recv_prep()
689 struct hash_desc *rx_hash = NULL; in iscsi_tcp_hdr_dissect()
Discsi_tcp.c457 struct hash_desc *tx_hash = NULL; in iscsi_sw_tcp_send_data_prep()
483 struct hash_desc *tx_hash = NULL; in iscsi_sw_tcp_send_linear_data_prep()
/linux-4.4.14/include/linux/
Dcrypto.h190 struct hash_desc { struct
523 int (*init)(struct hash_desc *desc);
524 int (*update)(struct hash_desc *desc,
526 int (*final)(struct hash_desc *desc, u8 *out);
527 int (*digest)(struct hash_desc *desc, struct scatterlist *sg,
1724 static inline int crypto_hash_init(struct hash_desc *desc) in crypto_hash_init()
1743 static inline int crypto_hash_update(struct hash_desc *desc, in crypto_hash_update()
1764 static inline int crypto_hash_final(struct hash_desc *desc, u8 *out) in crypto_hash_final()
1783 static inline int crypto_hash_digest(struct hash_desc *desc, in crypto_hash_digest()
/linux-4.4.14/fs/ecryptfs/
Dkeystore.c608 struct hash_desc hash_desc; member
745 s->hash_desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in ecryptfs_write_tag_70_packet()
746 s->hash_desc.tfm = crypto_alloc_hash(ECRYPTFS_TAG_70_DIGEST, 0, in ecryptfs_write_tag_70_packet()
748 if (IS_ERR(s->hash_desc.tfm)) { in ecryptfs_write_tag_70_packet()
749 rc = PTR_ERR(s->hash_desc.tfm); in ecryptfs_write_tag_70_packet()
755 rc = crypto_hash_init(&s->hash_desc); in ecryptfs_write_tag_70_packet()
763 &s->hash_desc, &s->hash_sg, in ecryptfs_write_tag_70_packet()
771 rc = crypto_hash_final(&s->hash_desc, s->hash); in ecryptfs_write_tag_70_packet()
785 rc = crypto_hash_init(&s->hash_desc); in ecryptfs_write_tag_70_packet()
792 rc = crypto_hash_update(&s->hash_desc, &s->hash_sg, in ecryptfs_write_tag_70_packet()
[all …]
Dcrypto.c92 struct hash_desc desc = { in ecryptfs_calculate_md5()
/linux-4.4.14/drivers/net/wireless/orinoco/
Dmic.c50 struct hash_desc desc; in orinoco_mic()
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c122 struct hash_desc *desc = data; in checksummer()
155 struct hash_desc desc; in make_checksum_hmac_md5()
245 struct hash_desc desc; in make_checksum()
326 struct hash_desc desc; in make_checksum_v2()
857 struct hash_desc desc; in krb5_rc4_setup_seq_key()
921 struct hash_desc desc; in krb5_rc4_setup_enc_key()
Dgss_krb5_mech.c433 struct hash_desc desc; in context_derive_keys_rc4()
/linux-4.4.14/crypto/
Dshash.c380 static int shash_compat_init(struct hash_desc *hdesc) in shash_compat_init()
390 static int shash_compat_update(struct hash_desc *hdesc, struct scatterlist *sg, in shash_compat_update()
405 static int shash_compat_final(struct hash_desc *hdesc, u8 *out) in shash_compat_final()
412 static int shash_compat_digest(struct hash_desc *hdesc, struct scatterlist *sg, in shash_compat_digest()
Dtcrypt.c557 static int test_hash_jiffies_digest(struct hash_desc *desc, in test_hash_jiffies_digest()
578 static int test_hash_jiffies(struct hash_desc *desc, struct scatterlist *sg, in test_hash_jiffies()
610 static int test_hash_cycles_digest(struct hash_desc *desc, in test_hash_cycles_digest()
653 static int test_hash_cycles(struct hash_desc *desc, struct scatterlist *sg, in test_hash_cycles()
731 struct hash_desc desc; in test_hash_speed()
Dahash.c170 int crypto_hash_walk_first_compat(struct hash_desc *hdesc, in crypto_hash_walk_first_compat()
/linux-4.4.14/include/crypto/internal/
Dhash.h60 int crypto_hash_walk_first_compat(struct hash_desc *hdesc,
/linux-4.4.14/include/target/iscsi/
Discsi_target_core.h573 struct hash_desc conn_rx_hash;
574 struct hash_desc conn_tx_hash;
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_auth.c189 struct hash_desc desc; in chap_server_compute_md5()
Discsi_target.c1193 struct hash_desc *hash, in iscsit_do_crypto_hash_sg()
1232 struct hash_desc *hash, in iscsit_do_crypto_hash_buf()
/linux-4.4.14/drivers/nfc/s3fwrn5/
Dfirmware.c433 struct hash_desc desc; in s3fwrn5_fw_download()
/linux-4.4.14/drivers/net/ppp/
Dppp_mppe.c138 struct hash_desc desc; in get_new_key_from_sha()
/linux-4.4.14/Documentation/crypto/
Dapi-intro.txt59 struct hash_desc desc;
/linux-4.4.14/net/sctp/
Dauth.c713 struct hash_desc desc; in sctp_auth_calculate_hmac()
Dsm_make_chunk.c1666 struct hash_desc desc; in sctp_pack_cookie()
1705 struct hash_desc desc; in sctp_unpack_cookie()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c507 struct hash_desc desc; in michael_mic()
/linux-4.4.14/net/wireless/
Dlib80211_crypt_tkip.c511 struct hash_desc desc; in michael_mic()
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c506 struct hash_desc desc; in michael_mic()
/linux-4.4.14/net/ipv6/
Dtcp_ipv6.c553 struct hash_desc *desc; in tcp_v6_md5_hash_hdr()
588 struct hash_desc *desc; in tcp_v6_md5_hash_skb()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_worker.c274 struct hash_desc desc; in drbd_csum_ee()
301 struct hash_desc desc; in drbd_csum_bio()
Ddrbd_receiver.c4905 struct hash_desc desc; in drbd_do_auth()
/linux-4.4.14/net/ipv4/
Dtcp_ipv4.c1045 struct hash_desc *desc; in tcp_v4_md5_hash_hdr()
1078 struct hash_desc *desc; in tcp_v4_md5_hash_skb()
Dtcp.c3023 struct hash_desc *desc = &hp->md5_desc; in tcp_md5_hash_skb_data()
/linux-4.4.14/fs/nfsd/
Dnfs4recover.c107 struct hash_desc desc; in nfs4_make_rec_clidname()
/linux-4.4.14/include/net/
Dtcp.h1373 struct hash_desc md5_desc;
/linux-4.4.14/drivers/md/
Ddm-crypt.c266 struct hash_desc desc; in crypt_iv_essiv_init()
/linux-4.4.14/net/bluetooth/
Dsmp.c172 struct hash_desc desc; in aes_cmac()