| /linux/net/rxrpc/ |
| H A D | rxgk_kdf.c | 101 struct crypto_shash *shash; in rxgk_set_up_ciphers() local 136 shash = crypto_krb5_prepare_checksum( in rxgk_set_up_ciphers() 138 if (IS_ERR(shash)) in rxgk_set_up_ciphers() 140 gk->tx_Kc = shash; in rxgk_set_up_ciphers() 141 shash = crypto_krb5_prepare_checksum( in rxgk_set_up_ciphers() 143 if (IS_ERR(shash)) in rxgk_set_up_ciphers() 145 gk->rx_Kc = shash; in rxgk_set_up_ciphers() 163 shash = crypto_krb5_prepare_checksum( in rxgk_set_up_ciphers() 165 if (IS_ERR(shash)) in rxgk_set_up_ciphers() 167 gk->tx_Kc = shash; in rxgk_set_up_ciphers() [all …]
|
| H A D | rxgk_common.h | 113 struct crypto_shash *shash, in rxgk_verify_mic() argument 124 ret = crypto_krb5_verify_mic(krb5, shash, metadata, sg, 1, &offset, &len); in rxgk_verify_mic()
|
| /linux/security/integrity/ima/ |
| H A D | ima_crypto.c | 200 SHASH_DESC_ON_STACK(shash, tfm); in ima_init_crypto() 202 shash->tfm = tfm; in ima_init_crypto() 206 rc = crypto_shash_init(shash); in ima_init_crypto() 233 rc = crypto_shash_update(shash, rbuf, rbuf_len); 240 rc = crypto_shash_final(shash, hash->digest); in ima_alloc_pages() 295 SHASH_DESC_ON_STACK(shash, ima_algo_array[tfm_idx].tfm); in ima_alloc_atfm() 300 shash->tfm = ima_algo_array[tfm_idx].tfm; in ima_alloc_atfm() 302 rc = crypto_shash_init(shash); in ima_alloc_atfm() 314 rc = crypto_shash_update(shash, in ahash_wait() 324 rc = crypto_shash_update(shash, data_to_has [all...] |
| /linux/fs/ubifs/ |
| H A D | auth.c | 390 SHASH_DESC_ON_STACK(shash, c->hmac_tfm); in ubifs_node_calc_hmac() 397 shash->tfm = c->hmac_tfm; in ubifs_node_calc_hmac() 399 err = crypto_shash_init(shash); in ubifs_node_calc_hmac() 404 err = crypto_shash_update(shash, node + 8, ofs_hmac - 8); in ubifs_node_calc_hmac() 410 err = crypto_shash_update(shash, node + ofs_hmac + hmac_len, in ubifs_node_calc_hmac() 416 return crypto_shash_final(shash, hmac); in ubifs_node_calc_hmac()
|
| /linux/drivers/crypto/bcm/ |
| H A D | util.c | 189 struct shash_desc shash; member 233 sdesc->shash.tfm = hash; in do_shash() 243 rc = crypto_shash_init(&sdesc->shash); in do_shash() 248 rc = crypto_shash_update(&sdesc->shash, data1, data1_len); in do_shash() 254 rc = crypto_shash_update(&sdesc->shash, data2, data2_len); in do_shash() 260 rc = crypto_shash_final(&sdesc->shash, result); in do_shash()
|
| H A D | cipher.c | 2035 ctx->shash = kmalloc(sizeof(*ctx->shash) + in ahash_init() 2037 if (!ctx->shash) { in ahash_init() 2041 ctx->shash->tfm = hash; in ahash_init() 2052 ret = crypto_shash_init(ctx->shash); in ahash_init() 2063 kfree(ctx->shash); in ahash_init() 2118 ret = crypto_shash_update(ctx->shash, tmpbuf, req->nbytes); in ahash_update() 2151 ret = crypto_shash_final(ctx->shash, req->result); in ahash_final() 2154 crypto_free_shash(ctx->shash->tfm); in ahash_final() 2155 kfree(ctx->shash); in ahash_final() 2216 ret = crypto_shash_finup(ctx->shash, tmpbuf, req->nbytes, in ahash_finup() [all …]
|
| H A D | cipher.h | 236 struct shash_desc *shash; member
|
| /linux/crypto/krb5/ |
| H A D | krb5_api.c | 438 struct crypto_shash *shash, in crypto_krb5_get_mic() argument 448 return krb5->profile->get_mic(krb5, shash, metadata, sg, nr_sg, sg_len, in crypto_krb5_get_mic() 475 struct crypto_shash *shash, in crypto_krb5_verify_mic() argument 480 return krb5->profile->verify_mic(krb5, shash, metadata, sg, nr_sg, in crypto_krb5_verify_mic()
|
| /linux/include/crypto/ |
| H A D | krb5.h | 147 struct crypto_shash *shash, 153 struct crypto_shash *shash,
|
| /linux/Documentation/crypto/ |
| H A D | api-samples.rst | 100 struct shash_desc shash; 113 sdesc->shash.tfm = alg; 130 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest);
|
| H A D | krb5.rst | 234 struct crypto_shash *shash, 240 struct crypto_shash *shash,
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 699 sdesc->shash.tfm = alg; in alloc_sdesc() 761 ret = crypto_shash_digest(&ctx->sdesc->shash, keys->authkey, in aead_hmac_init() 810 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init() 811 crypto_shash_update(&ctx->sdesc->shash, ipad, bs); in aead_hmac_init() 812 crypto_shash_export(&ctx->sdesc->shash, ipad); in aead_hmac_init() 818 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init() 819 crypto_shash_update(&ctx->sdesc->shash, opad, bs); in aead_hmac_init() 820 crypto_shash_export(&ctx->sdesc->shash, opad); in aead_hmac_init()
|
| H A D | otx_cptvf_algs.h | 166 struct shash_desc shash; member
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptvf_algs.h | 159 struct shash_desc shash; member
|
| /linux/drivers/crypto/ |
| H A D | sa2ul.h | 315 struct crypto_shash *shash; member
|