shash 26 arch/x86/crypto/ghash-clmulni-intel_glue.c void clmul_ghash_mul(char *dst, const u128 *shash); shash 29 arch/x86/crypto/ghash-clmulni-intel_glue.c const u128 *shash); shash 36 arch/x86/crypto/ghash-clmulni-intel_glue.c u128 shash; shash 69 arch/x86/crypto/ghash-clmulni-intel_glue.c ctx->shash.a = (b << 1) | (a >> 63); shash 70 arch/x86/crypto/ghash-clmulni-intel_glue.c ctx->shash.b = (a << 1) | (b >> 63); shash 73 arch/x86/crypto/ghash-clmulni-intel_glue.c ctx->shash.b ^= ((u64)0xc2) << 56; shash 97 arch/x86/crypto/ghash-clmulni-intel_glue.c clmul_ghash_mul(dst, &ctx->shash); shash 100 arch/x86/crypto/ghash-clmulni-intel_glue.c clmul_ghash_update(dst, src, srclen, &ctx->shash); shash 125 arch/x86/crypto/ghash-clmulni-intel_glue.c clmul_ghash_mul(dst, &ctx->shash); shash 1656 crypto/drbg.c struct shash_desc shash; shash 1679 crypto/drbg.c sdesc->shash.tfm = tfm; shash 1689 crypto/drbg.c crypto_free_shash(sdesc->shash.tfm); shash 1701 crypto/drbg.c crypto_shash_setkey(sdesc->shash.tfm, key, drbg_statelen(drbg)); shash 1710 crypto/drbg.c crypto_shash_init(&sdesc->shash); shash 1712 crypto/drbg.c crypto_shash_update(&sdesc->shash, input->buf, input->len); shash 1713 crypto/drbg.c return crypto_shash_final(&sdesc->shash, outval); shash 51 crypto/hmac.c SHASH_DESC_ON_STACK(shash, hash); shash 54 crypto/hmac.c shash->tfm = hash; shash 59 crypto/hmac.c err = crypto_shash_digest(shash, inkey, keylen, ipad); shash 75 crypto/hmac.c return crypto_shash_init(shash) ?: shash 76 crypto/hmac.c crypto_shash_update(shash, ipad, bs) ?: shash 77 crypto/hmac.c crypto_shash_export(shash, ipad) ?: shash 78 crypto/hmac.c crypto_shash_init(shash) ?: shash 79 crypto/hmac.c crypto_shash_update(shash, opad, bs) ?: shash 80 crypto/hmac.c crypto_shash_export(shash, opad); shash 33 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 46 crypto/shash.c err = shash->setkey(tfm, alignbuffer, keylen); shash 61 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 68 crypto/shash.c err = shash->setkey(tfm, key, keylen); shash 71 crypto/shash.c shash_set_needkey(tfm, shash); shash 84 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 103 crypto/shash.c err = shash->update(desc, buf, unaligned_len); shash 107 crypto/shash.c shash->update(desc, data + unaligned_len, len - unaligned_len); shash 114 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 120 crypto/shash.c return shash->update(desc, data, len); shash 128 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 141 crypto/shash.c err = shash->final(desc, buf); shash 155 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 161 crypto/shash.c return shash->final(desc, out); shash 176 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 182 crypto/shash.c return shash->finup(desc, data, len, out); shash 197 crypto/shash.c struct shash_alg *shash = crypto_shash_alg(tfm); shash 206 crypto/shash.c return shash->digest(desc, data, len, out); shash 356 crypto/shash.c struct crypto_shash *shash; shash 361 crypto/shash.c shash = crypto_create_tfm(calg, &crypto_shash_type); shash 362 crypto/shash.c if (IS_ERR(shash)) { shash 364 crypto/shash.c return PTR_ERR(shash); shash 367 crypto/shash.c *ctx = shash; shash 378 crypto/shash.c crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) & shash 384 crypto/shash.c crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash); shash 3334 crypto/testmgr.c SHASH_DESC_ON_STACK(shash, tfm); shash 3335 crypto/testmgr.c u32 *ctx = (u32 *)shash_desc_ctx(shash); shash 3337 crypto/testmgr.c shash->tfm = tfm; shash 3340 crypto/testmgr.c err = crypto_shash_final(shash, (u8 *)&val); shash 2104 drivers/crypto/bcm/cipher.c ctx->shash = kmalloc(sizeof(*ctx->shash) + shash 2106 drivers/crypto/bcm/cipher.c if (!ctx->shash) { shash 2110 drivers/crypto/bcm/cipher.c ctx->shash->tfm = hash; shash 2121 drivers/crypto/bcm/cipher.c ret = crypto_shash_init(ctx->shash); shash 2132 drivers/crypto/bcm/cipher.c kfree(ctx->shash); shash 2187 drivers/crypto/bcm/cipher.c ret = crypto_shash_update(ctx->shash, tmpbuf, req->nbytes); shash 2220 drivers/crypto/bcm/cipher.c ret = crypto_shash_final(ctx->shash, req->result); shash 2223 drivers/crypto/bcm/cipher.c crypto_free_shash(ctx->shash->tfm); shash 2224 drivers/crypto/bcm/cipher.c kfree(ctx->shash); shash 2285 drivers/crypto/bcm/cipher.c ret = crypto_shash_finup(ctx->shash, tmpbuf, req->nbytes, shash 2296 drivers/crypto/bcm/cipher.c crypto_free_shash(ctx->shash->tfm); shash 2297 drivers/crypto/bcm/cipher.c kfree(ctx->shash); shash 233 drivers/crypto/bcm/cipher.h struct shash_desc *shash; shash 189 drivers/crypto/bcm/util.c struct shash_desc shash; shash 233 drivers/crypto/bcm/util.c sdesc->shash.tfm = hash; shash 243 drivers/crypto/bcm/util.c rc = crypto_shash_init(&sdesc->shash); shash 248 drivers/crypto/bcm/util.c rc = crypto_shash_update(&sdesc->shash, data1, data1_len); shash 254 drivers/crypto/bcm/util.c rc = crypto_shash_update(&sdesc->shash, data2, data2_len); shash 260 drivers/crypto/bcm/util.c rc = crypto_shash_final(&sdesc->shash, result); shash 274 drivers/crypto/ccp/ccp-crypto-sha.c struct crypto_shash *shash = ctx->u.sha.hmac_tfm; shash 276 drivers/crypto/ccp/ccp-crypto-sha.c SHASH_DESC_ON_STACK(sdesc, shash); shash 278 drivers/crypto/ccp/ccp-crypto-sha.c unsigned int block_size = crypto_shash_blocksize(shash); shash 279 drivers/crypto/ccp/ccp-crypto-sha.c unsigned int digest_size = crypto_shash_digestsize(shash); shash 292 drivers/crypto/ccp/ccp-crypto-sha.c sdesc->tfm = shash; shash 2107 drivers/crypto/chelsio/chcr_algo.c SHASH_DESC_ON_STACK(shash, hmacctx->base_hash); shash 2113 drivers/crypto/chelsio/chcr_algo.c shash->tfm = hmacctx->base_hash; shash 2115 drivers/crypto/chelsio/chcr_algo.c err = crypto_shash_digest(shash, key, keylen, shash 2136 drivers/crypto/chelsio/chcr_algo.c err = chcr_compute_partial_hash(shash, hmacctx->ipad, shash 2142 drivers/crypto/chelsio/chcr_algo.c err = chcr_compute_partial_hash(shash, hmacctx->opad, shash 3479 drivers/crypto/chelsio/chcr_algo.c SHASH_DESC_ON_STACK(shash, base_hash); shash 3481 drivers/crypto/chelsio/chcr_algo.c shash->tfm = base_hash; shash 3487 drivers/crypto/chelsio/chcr_algo.c err = crypto_shash_digest(shash, keys.authkey, shash 3504 drivers/crypto/chelsio/chcr_algo.c if (chcr_compute_partial_hash(shash, pad, actx->h_iopad, shash 3513 drivers/crypto/chelsio/chcr_algo.c if (chcr_compute_partial_hash(shash, pad, o_ptr, max_authsize)) shash 99 drivers/crypto/mediatek/mtk-sha.c struct crypto_shash *shash; shash 362 drivers/crypto/mediatek/mtk-sha.c SHASH_DESC_ON_STACK(shash, bctx->shash); shash 364 drivers/crypto/mediatek/mtk-sha.c shash->tfm = bctx->shash; shash 366 drivers/crypto/mediatek/mtk-sha.c return crypto_shash_init(shash) ?: shash 367 drivers/crypto/mediatek/mtk-sha.c crypto_shash_update(shash, bctx->opad, ctx->bs) ?: shash 368 drivers/crypto/mediatek/mtk-sha.c crypto_shash_finup(shash, req->result, ctx->ds, req->result); shash 804 drivers/crypto/mediatek/mtk-sha.c size_t bs = crypto_shash_blocksize(bctx->shash); shash 805 drivers/crypto/mediatek/mtk-sha.c size_t ds = crypto_shash_digestsize(bctx->shash); shash 808 drivers/crypto/mediatek/mtk-sha.c SHASH_DESC_ON_STACK(shash, bctx->shash); shash 810 drivers/crypto/mediatek/mtk-sha.c shash->tfm = bctx->shash; shash 813 drivers/crypto/mediatek/mtk-sha.c err = crypto_shash_digest(shash, key, keylen, bctx->ipad); shash 865 drivers/crypto/mediatek/mtk-sha.c bctx->shash = crypto_alloc_shash(alg_base, 0, shash 867 drivers/crypto/mediatek/mtk-sha.c if (IS_ERR(bctx->shash)) { shash 871 drivers/crypto/mediatek/mtk-sha.c return PTR_ERR(bctx->shash); shash 914 drivers/crypto/mediatek/mtk-sha.c crypto_free_shash(bctx->shash); shash 464 drivers/crypto/n2_core.c SHASH_DESC_ON_STACK(shash, child_shash); shash 472 drivers/crypto/n2_core.c shash->tfm = child_shash; shash 478 drivers/crypto/n2_core.c err = crypto_shash_digest(shash, key, keylen, shash 162 drivers/crypto/omap-sham.c struct crypto_shash *shash; shash 1050 drivers/crypto/omap-sham.c int bs = crypto_shash_blocksize(bctx->shash); shash 1051 drivers/crypto/omap-sham.c int ds = crypto_shash_digestsize(bctx->shash); shash 1052 drivers/crypto/omap-sham.c SHASH_DESC_ON_STACK(shash, bctx->shash); shash 1054 drivers/crypto/omap-sham.c shash->tfm = bctx->shash; shash 1056 drivers/crypto/omap-sham.c return crypto_shash_init(shash) ?: shash 1057 drivers/crypto/omap-sham.c crypto_shash_update(shash, bctx->opad, bs) ?: shash 1058 drivers/crypto/omap-sham.c crypto_shash_finup(shash, req->result, ds, req->result); shash 1222 drivers/crypto/omap-sham.c SHASH_DESC_ON_STACK(shash, tfm); shash 1224 drivers/crypto/omap-sham.c shash->tfm = tfm; shash 1226 drivers/crypto/omap-sham.c return crypto_shash_digest(shash, data, len, out); shash 1303 drivers/crypto/omap-sham.c int bs = crypto_shash_blocksize(bctx->shash); shash 1304 drivers/crypto/omap-sham.c int ds = crypto_shash_digestsize(bctx->shash); shash 1325 drivers/crypto/omap-sham.c err = omap_sham_shash_digest(bctx->shash, shash 1326 drivers/crypto/omap-sham.c crypto_shash_get_flags(bctx->shash), shash 1369 drivers/crypto/omap-sham.c bctx->shash = crypto_alloc_shash(alg_base, 0, shash 1371 drivers/crypto/omap-sham.c if (IS_ERR(bctx->shash)) { shash 1375 drivers/crypto/omap-sham.c return PTR_ERR(bctx->shash); shash 1427 drivers/crypto/omap-sham.c crypto_free_shash(bctx->shash); shash 156 drivers/crypto/qat/qat_common/qat_algs.c SHASH_DESC_ON_STACK(shash, ctx->hash_tfm); shash 165 drivers/crypto/qat/qat_common/qat_algs.c shash->tfm = ctx->hash_tfm; shash 168 drivers/crypto/qat/qat_common/qat_algs.c int ret = crypto_shash_digest(shash, auth_key, shash 186 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_init(shash)) shash 189 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_update(shash, ctx->ipad, block_size)) shash 197 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_export(shash, &ctx->sha1)) shash 203 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_export(shash, &ctx->sha256)) shash 209 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_export(shash, &ctx->sha512)) shash 218 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_init(shash)) shash 221 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_update(shash, ctx->opad, block_size)) shash 233 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_export(shash, &ctx->sha1)) shash 239 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_export(shash, &ctx->sha256)) shash 245 drivers/crypto/qat/qat_common/qat_algs.c if (crypto_shash_export(shash, &ctx->sha512)) shash 1534 drivers/crypto/s5p-sss.c SHASH_DESC_ON_STACK(shash, tfm); shash 1536 drivers/crypto/s5p-sss.c shash->tfm = tfm; shash 1538 drivers/crypto/s5p-sss.c return crypto_shash_digest(shash, data, len, out); shash 40 drivers/crypto/vmx/ghash.c u64 shash[2]; shash 50 drivers/crypto/vmx/ghash.c memset(dctx->shash, 0, GHASH_DIGEST_SIZE); shash 82 drivers/crypto/vmx/ghash.c gcm_ghash_p8(dctx->shash, ctx->htable, shash 88 drivers/crypto/vmx/ghash.c crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); shash 89 drivers/crypto/vmx/ghash.c gf128mul_lle((be128 *)dctx->shash, &ctx->key); shash 101 drivers/crypto/vmx/ghash.c gcm_ghash_p8(dctx->shash, ctx->htable, shash 108 drivers/crypto/vmx/ghash.c crypto_xor((u8 *)dctx->shash, src, GHASH_BLOCK_SIZE); shash 109 drivers/crypto/vmx/ghash.c gf128mul_lle((be128 *)dctx->shash, &ctx->key); shash 164 drivers/crypto/vmx/ghash.c memcpy(out, dctx->shash, GHASH_DIGEST_SIZE); shash 76 drivers/infiniband/sw/rxe/rxe.h SHASH_DESC_ON_STACK(shash, rxe->tfm); shash 78 drivers/infiniband/sw/rxe/rxe.h shash->tfm = rxe->tfm; shash 79 drivers/infiniband/sw/rxe/rxe.h *(u32 *)shash_desc_ctx(shash) = crc; shash 80 drivers/infiniband/sw/rxe/rxe.h err = crypto_shash_update(shash, next, len); shash 86 drivers/infiniband/sw/rxe/rxe.h retval = *(u32 *)shash_desc_ctx(shash); shash 87 drivers/infiniband/sw/rxe/rxe.h barrier_data(shash_desc_ctx(shash)); shash 174 drivers/net/ppp/ppp_mppe.c struct crypto_shash *shash; shash 187 drivers/net/ppp/ppp_mppe.c shash = crypto_alloc_shash("sha1", 0, 0); shash 188 drivers/net/ppp/ppp_mppe.c if (IS_ERR(shash)) shash 192 drivers/net/ppp/ppp_mppe.c crypto_shash_descsize(shash), shash 195 drivers/net/ppp/ppp_mppe.c crypto_free_shash(shash); shash 198 drivers/net/ppp/ppp_mppe.c state->sha1->tfm = shash; shash 200 drivers/net/ppp/ppp_mppe.c digestsize = crypto_shash_digestsize(shash); shash 649 drivers/thunderbolt/domain.c struct shash_desc *shash; shash 673 drivers/thunderbolt/domain.c shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm), shash 675 drivers/thunderbolt/domain.c if (!shash) { shash 680 drivers/thunderbolt/domain.c shash->tfm = tfm; shash 683 drivers/thunderbolt/domain.c ret = crypto_shash_digest(shash, challenge, sizeof(hmac), hmac); shash 694 drivers/thunderbolt/domain.c kfree(shash); shash 699 drivers/thunderbolt/domain.c kfree(shash); shash 1713 fs/btrfs/check-integrity.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 1726 fs/btrfs/check-integrity.c shash->tfm = fs_info->csum_shash; shash 1727 fs/btrfs/check-integrity.c crypto_shash_init(shash); shash 1734 fs/btrfs/check-integrity.c crypto_shash_update(shash, data, sublen); shash 1736 fs/btrfs/check-integrity.c crypto_shash_final(shash, csum); shash 79 fs/btrfs/compression.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 91 fs/btrfs/compression.c shash->tfm = fs_info->csum_shash; shash 96 fs/btrfs/compression.c crypto_shash_init(shash); shash 98 fs/btrfs/compression.c crypto_shash_update(shash, kaddr, PAGE_SIZE); shash 100 fs/btrfs/compression.c crypto_shash_final(shash, (u8 *)&csum); shash 258 fs/btrfs/disk-io.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 267 fs/btrfs/disk-io.c shash->tfm = fs_info->csum_shash; shash 268 fs/btrfs/disk-io.c crypto_shash_init(shash); shash 284 fs/btrfs/disk-io.c crypto_shash_update(shash, kaddr + offset - map_start, cur_len); shash 290 fs/btrfs/disk-io.c crypto_shash_final(shash, result); shash 371 fs/btrfs/disk-io.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 373 fs/btrfs/disk-io.c shash->tfm = fs_info->csum_shash; shash 374 fs/btrfs/disk-io.c crypto_shash_init(shash); shash 381 fs/btrfs/disk-io.c crypto_shash_update(shash, raw_disk_sb + BTRFS_CSUM_SIZE, shash 383 fs/btrfs/disk-io.c crypto_shash_final(shash, result); shash 3488 fs/btrfs/disk-io.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 3499 fs/btrfs/disk-io.c shash->tfm = fs_info->csum_shash; shash 3509 fs/btrfs/disk-io.c crypto_shash_init(shash); shash 3510 fs/btrfs/disk-io.c crypto_shash_update(shash, (const char *)sb + BTRFS_CSUM_SIZE, shash 3512 fs/btrfs/disk-io.c crypto_shash_final(shash, sb->csum); shash 437 fs/btrfs/file-item.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 471 fs/btrfs/file-item.c shash->tfm = fs_info->csum_shash; shash 512 fs/btrfs/file-item.c crypto_shash_init(shash); shash 514 fs/btrfs/file-item.c crypto_shash_update(shash, data + bvec.bv_offset shash 518 fs/btrfs/file-item.c crypto_shash_final(shash, (char *)(sums->sums + index)); shash 3369 fs/btrfs/inode.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 3378 fs/btrfs/inode.c shash->tfm = fs_info->csum_shash; shash 3380 fs/btrfs/inode.c crypto_shash_init(shash); shash 3381 fs/btrfs/inode.c crypto_shash_update(shash, kaddr + pgoff, len); shash 3382 fs/btrfs/inode.c crypto_shash_final(shash, csum); shash 1792 fs/btrfs/scrub.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 1804 fs/btrfs/scrub.c shash->tfm = fs_info->csum_shash; shash 1805 fs/btrfs/scrub.c crypto_shash_init(shash); shash 1816 fs/btrfs/scrub.c crypto_shash_update(shash, buffer, l); shash 1828 fs/btrfs/scrub.c crypto_shash_final(shash, csum); shash 1840 fs/btrfs/scrub.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 1850 fs/btrfs/scrub.c shash->tfm = fs_info->csum_shash; shash 1851 fs/btrfs/scrub.c crypto_shash_init(shash); shash 1886 fs/btrfs/scrub.c crypto_shash_update(shash, p, l); shash 1900 fs/btrfs/scrub.c crypto_shash_final(shash, calculated_csum); shash 1912 fs/btrfs/scrub.c SHASH_DESC_ON_STACK(shash, fs_info->csum_shash); shash 1924 fs/btrfs/scrub.c shash->tfm = fs_info->csum_shash; shash 1925 fs/btrfs/scrub.c crypto_shash_init(shash); shash 1949 fs/btrfs/scrub.c crypto_shash_update(shash, p, l); shash 1963 fs/btrfs/scrub.c crypto_shash_final(shash, calculated_csum); shash 42 fs/cifs/cifsencrypt.c struct shash_desc *shash) shash 69 fs/cifs/cifsencrypt.c rc = crypto_shash_update(shash, shash 87 fs/cifs/cifsencrypt.c rc = crypto_shash_update(shash, kaddr, len); shash 98 fs/cifs/cifsencrypt.c rc = crypto_shash_final(shash, signature); shash 125 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&server->secmech.sdescmd5->shash); shash 131 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&server->secmech.sdescmd5->shash, shash 139 fs/cifs/cifsencrypt.c &server->secmech.sdescmd5->shash); shash 521 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash); shash 542 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, shash 562 fs/cifs/cifsencrypt.c crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, shash 582 fs/cifs/cifsencrypt.c crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, shash 592 fs/cifs/cifsencrypt.c rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash, shash 625 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash); shash 637 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, shash 645 fs/cifs/cifsencrypt.c rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash, shash 746 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash); shash 752 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, shash 760 fs/cifs/cifsencrypt.c rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash, shash 136 fs/cifs/cifsglob.h struct shash_desc shash; shash 574 fs/cifs/cifsproto.h struct shash_desc *shash); shash 582 fs/cifs/cifsproto.h int cifs_alloc_hash(const char *name, struct crypto_shash **shash, shash 584 fs/cifs/cifsproto.h void cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc); shash 60 fs/cifs/link.c rc = crypto_shash_init(&sdescmd5->shash); shash 65 fs/cifs/link.c rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); shash 70 fs/cifs/link.c rc = crypto_shash_final(&sdescmd5->shash, md5_hash); shash 936 fs/cifs/misc.c struct crypto_shash **shash, struct sdesc **sdesc) shash 944 fs/cifs/misc.c *shash = crypto_alloc_shash(name, 0, 0); shash 945 fs/cifs/misc.c if (IS_ERR(*shash)) { shash 947 fs/cifs/misc.c rc = PTR_ERR(*shash); shash 948 fs/cifs/misc.c *shash = NULL; shash 953 fs/cifs/misc.c size = sizeof(struct shash_desc) + crypto_shash_descsize(*shash); shash 957 fs/cifs/misc.c crypto_free_shash(*shash); shash 958 fs/cifs/misc.c *shash = NULL; shash 962 fs/cifs/misc.c (*sdesc)->shash.tfm = *shash; shash 972 fs/cifs/misc.c cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc) shash 976 fs/cifs/misc.c if (*shash) shash 977 fs/cifs/misc.c crypto_free_shash(*shash); shash 978 fs/cifs/misc.c *shash = NULL; shash 838 fs/cifs/smb2misc.c rc = crypto_shash_init(&d->shash); shash 844 fs/cifs/smb2misc.c rc = crypto_shash_update(&d->shash, ses->preauth_sha_hash, shash 852 fs/cifs/smb2misc.c rc = crypto_shash_update(&d->shash, shash 861 fs/cifs/smb2misc.c rc = crypto_shash_final(&d->shash, ses->preauth_sha_hash); shash 174 fs/cifs/smb2transport.c struct shash_desc *shash; shash 199 fs/cifs/smb2transport.c shash = &server->secmech.sdeschmacsha256->shash; shash 200 fs/cifs/smb2transport.c rc = crypto_shash_init(shash); shash 215 fs/cifs/smb2transport.c rc = crypto_shash_update(shash, iov[0].iov_base, shash 226 fs/cifs/smb2transport.c rc = __cifs_calc_signature(&drqst, server, sigptr, shash); shash 260 fs/cifs/smb2transport.c rc = crypto_shash_init(&server->secmech.sdeschmacsha256->shash); shash 266 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, shash 273 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, shash 280 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, shash 287 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, shash 294 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, shash 301 fs/cifs/smb2transport.c rc = crypto_shash_final(&server->secmech.sdeschmacsha256->shash, shash 435 fs/cifs/smb2transport.c struct shash_desc *shash = &server->secmech.sdesccmacaes->shash; shash 459 fs/cifs/smb2transport.c rc = crypto_shash_init(shash); shash 474 fs/cifs/smb2transport.c rc = crypto_shash_update(shash, iov[0].iov_base, shash 485 fs/cifs/smb2transport.c rc = __cifs_calc_signature(&drqst, server, sigptr, shash); shash 119 fs/cifs/smbencrypt.c rc = crypto_shash_init(&sdescmd4->shash); shash 124 fs/cifs/smbencrypt.c rc = crypto_shash_update(&sdescmd4->shash, link_str, link_len); shash 129 fs/cifs/smbencrypt.c rc = crypto_shash_final(&sdescmd4->shash, md4_hash); shash 2096 fs/ext4/ext4.h struct shash_desc shash; shash 2102 fs/ext4/ext4.h desc.shash.tfm = sbi->s_chksum_driver; shash 2105 fs/ext4/ext4.h BUG_ON(crypto_shash_update(&desc.shash, address, length)); shash 1458 fs/f2fs/f2fs.h struct shash_desc shash; shash 1465 fs/f2fs/f2fs.h desc.shash.tfm = sbi->s_chksum_driver; shash 1468 fs/f2fs/f2fs.h err = crypto_shash_update(&desc.shash, address, length); shash 34 fs/ubifs/auth.c SHASH_DESC_ON_STACK(shash, c->hash_tfm); shash 37 fs/ubifs/auth.c shash->tfm = c->hash_tfm; shash 39 fs/ubifs/auth.c err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash); shash 56 fs/ubifs/auth.c SHASH_DESC_ON_STACK(shash, c->hmac_tfm); shash 59 fs/ubifs/auth.c shash->tfm = c->hmac_tfm; shash 61 fs/ubifs/auth.c err = crypto_shash_digest(shash, hash, c->hash_len, hmac); shash 404 fs/ubifs/auth.c SHASH_DESC_ON_STACK(shash, c->hmac_tfm); shash 411 fs/ubifs/auth.c shash->tfm = c->hmac_tfm; shash 413 fs/ubifs/auth.c err = crypto_shash_init(shash); shash 418 fs/ubifs/auth.c err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); shash 424 fs/ubifs/auth.c err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, shash 430 fs/ubifs/auth.c return crypto_shash_final(shash, hmac); shash 524 fs/ubifs/auth.c SHASH_DESC_ON_STACK(shash, c->hmac_tfm); shash 531 fs/ubifs/auth.c shash->tfm = c->hmac_tfm; shash 533 fs/ubifs/auth.c err = crypto_shash_init(shash); shash 537 fs/ubifs/auth.c err = crypto_shash_update(shash, well_known_message, shash 542 fs/ubifs/auth.c err = crypto_shash_final(shash, hmac); shash 71 fs/ubifs/master.c SHASH_DESC_ON_STACK(shash, c->hash_tfm); shash 73 fs/ubifs/master.c shash->tfm = c->hash_tfm; shash 75 fs/ubifs/master.c crypto_shash_digest(shash, node + sizeof(struct ubifs_ch), shash 157 include/crypto/hash.h #define SHASH_DESC_ON_STACK(shash, ctx) \ shash 158 include/crypto/hash.h char __##shash##_desc[sizeof(struct shash_desc) + \ shash 160 include/crypto/hash.h struct shash_desc *shash = (struct shash_desc *)__##shash##_desc shash 1618 include/linux/jbd2.h struct shash_desc shash; shash 1626 include/linux/jbd2.h desc.shash.tfm = journal->j_chksum_driver; shash 1629 include/linux/jbd2.h err = crypto_shash_update(&desc.shash, address, length); shash 60 lib/crc-t10dif.c struct shash_desc shash; shash 69 lib/crc-t10dif.c desc.shash.tfm = rcu_dereference(crct10dif_tfm); shash 72 lib/crc-t10dif.c err = crypto_shash_update(&desc.shash, buffer, len); shash 28 lib/digsig.c static struct crypto_shash *shash; shash 234 lib/digsig.c desc = kzalloc(sizeof(*desc) + crypto_shash_descsize(shash), shash 239 lib/digsig.c desc->tfm = shash; shash 261 lib/digsig.c shash = crypto_alloc_shash("sha1", 0, 0); shash 262 lib/digsig.c if (IS_ERR(shash)) { shash 264 lib/digsig.c return PTR_ERR(shash); shash 273 lib/digsig.c crypto_free_shash(shash); shash 40 lib/libcrc32c.c SHASH_DESC_ON_STACK(shash, tfm); shash 41 lib/libcrc32c.c u32 ret, *ctx = (u32 *)shash_desc_ctx(shash); shash 44 lib/libcrc32c.c shash->tfm = tfm; shash 47 lib/libcrc32c.c err = crypto_shash_update(shash, address, length); shash 131 net/bluetooth/amp.c struct shash_desc *shash; shash 149 net/bluetooth/amp.c shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm), shash 151 net/bluetooth/amp.c if (!shash) { shash 156 net/bluetooth/amp.c shash->tfm = tfm; shash 158 net/bluetooth/amp.c ret = crypto_shash_digest(shash, plaintext, psize, output); shash 160 net/bluetooth/amp.c kfree(shash); shash 125 net/ipv6/seg6_hmac.c struct shash_desc *shash; shash 147 net/ipv6/seg6_hmac.c shash = *this_cpu_ptr(algo->shashs); shash 148 net/ipv6/seg6_hmac.c shash->tfm = tfm; shash 150 net/ipv6/seg6_hmac.c ret = crypto_shash_digest(shash, text, psize, output); shash 357 net/ipv6/seg6_hmac.c struct shash_desc *shash; shash 382 net/ipv6/seg6_hmac.c shsize = sizeof(*shash) + crypto_shash_descsize(tfm); shash 389 net/ipv6/seg6_hmac.c shash = kzalloc_node(shsize, GFP_KERNEL, shash 391 net/ipv6/seg6_hmac.c if (!shash) shash 393 net/ipv6/seg6_hmac.c *per_cpu_ptr(algo->shashs, cpu) = shash; shash 426 net/ipv6/seg6_hmac.c struct shash_desc *shash; shash 428 net/ipv6/seg6_hmac.c shash = *per_cpu_ptr(algo->shashs, cpu); shash 429 net/ipv6/seg6_hmac.c kfree(shash); shash 338 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); shash 340 security/integrity/ima/ima_crypto.c shash->tfm = tfm; shash 344 security/integrity/ima/ima_crypto.c rc = crypto_shash_init(shash); shash 369 security/integrity/ima/ima_crypto.c rc = crypto_shash_update(shash, rbuf, rbuf_len); shash 376 security/integrity/ima/ima_crypto.c rc = crypto_shash_final(shash, hash->digest); shash 472 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); shash 475 security/integrity/ima/ima_crypto.c shash->tfm = tfm; shash 479 security/integrity/ima/ima_crypto.c rc = crypto_shash_init(shash); shash 491 security/integrity/ima/ima_crypto.c rc = crypto_shash_update(shash, shash 501 security/integrity/ima/ima_crypto.c rc = crypto_shash_update(shash, data_to_hash, datalen); shash 507 security/integrity/ima/ima_crypto.c rc = crypto_shash_final(shash, hash->digest); shash 592 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); shash 596 security/integrity/ima/ima_crypto.c shash->tfm = tfm; shash 600 security/integrity/ima/ima_crypto.c rc = crypto_shash_init(shash); shash 606 security/integrity/ima/ima_crypto.c rc = crypto_shash_update(shash, buf, len); shash 614 security/integrity/ima/ima_crypto.c rc = crypto_shash_final(shash, hash->digest); shash 666 security/integrity/ima/ima_crypto.c SHASH_DESC_ON_STACK(shash, tfm); shash 668 security/integrity/ima/ima_crypto.c shash->tfm = tfm; shash 670 security/integrity/ima/ima_crypto.c rc = crypto_shash_init(shash); shash 678 security/integrity/ima/ima_crypto.c rc = crypto_shash_update(shash, d.digest, TPM_DIGEST_SIZE); shash 681 security/integrity/ima/ima_crypto.c crypto_shash_final(shash, digest); shash 83 security/keys/dh.c struct shash_desc shash; shash 110 security/keys/dh.c sdesc->shash.tfm = tfm; shash 126 security/keys/dh.c if (sdesc->shash.tfm) shash 127 security/keys/dh.c crypto_free_shash(sdesc->shash.tfm); shash 146 security/keys/dh.c struct shash_desc *desc = &sdesc->shash; shash 206 security/keys/dh.c crypto_shash_digestsize(sdesc->shash.tfm)); shash 38 security/keys/trusted.c struct shash_desc shash; shash 54 security/keys/trusted.c sdesc->shash.tfm = alg; shash 70 security/keys/trusted.c ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest); shash 93 security/keys/trusted.c ret = crypto_shash_init(&sdesc->shash); shash 107 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, data, dlen); shash 113 security/keys/trusted.c ret = crypto_shash_final(&sdesc->shash, digest); shash 144 security/keys/trusted.c ret = crypto_shash_init(&sdesc->shash); shash 157 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, data, dlen); shash 163 security/keys/trusted.c ret = crypto_shash_final(&sdesc->shash, paramdigest); shash 218 security/keys/trusted.c ret = crypto_shash_init(&sdesc->shash); shash 221 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, shash 225 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, shash 235 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); shash 241 security/keys/trusted.c ret = crypto_shash_final(&sdesc->shash, paramdigest); shash 311 security/keys/trusted.c ret = crypto_shash_init(&sdesc->shash); shash 314 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, shash 318 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, shash 329 security/keys/trusted.c ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); shash 335 security/keys/trusted.c ret = crypto_shash_final(&sdesc->shash, paramdigest); shash 102 tools/perf/util/srccode.c unsigned hval = shash((unsigned char *)fn) % SRC_HTAB_SZ;