| /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.h | 236 struct shash_desc *shash; member
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_unseal.c | 77 struct crypto_shash *shash = ctx->initiate ? in gss_krb5_verify_mic_v2() local 122 ret = crypto_krb5_verify_mic(krb5, shash, NULL, sg_head, nsg, in gss_krb5_verify_mic_v2()
|
| /linux/drivers/md/ |
| H A D | dm-verity-target.c | 137 desc = &io->hash_ctx.shash; in verity_hash() 139 if (unlikely(v->initial_hashstate.shash == NULL)) { in verity_hash() 147 r = crypto_shash_import(desc, v->initial_hashstate.shash) ?: in verity_hash() 1076 kfree(v->initial_hashstate.shash); in verity_dtr() 1310 struct crypto_shash *shash; in verity_setup_hash_alg() local 1318 shash = crypto_alloc_shash(alg_name, 0, 0); in verity_setup_hash_alg() 1319 if (IS_ERR(shash)) { in verity_setup_hash_alg() 1321 return PTR_ERR(shash); in verity_setup_hash_alg() 1323 v->shash_tfm = shash; in verity_setup_hash_alg() 1324 v->digest_size = crypto_shash_digestsize(shash); in verity_setup_hash_alg() [all …]
|
| H A D | dm-verity.h | 48 u8 *shash; /* for use_sha256_lib=0 */ member 133 struct shash_desc shash; member
|
| H A D | dm-integrity.c | 4494 static int get_mac(struct crypto_shash **shash, struct crypto_ahash **ahash, in get_mac() 4500 if (shash) { in get_mac() 4501 *shash = crypto_alloc_shash(a->alg_string, 0, CRYPTO_ALG_ALLOCATES_MEMORY); in get_mac() 4502 if (IS_ERR(*shash)) { in get_mac() 4503 *shash = NULL; 4507 r = crypto_shash_setkey(*shash, a->key, a->key_size); in create_journal() 4512 } else if (crypto_shash_get_flags(*shash) & CRYPTO_TFM_NEED_KEY) { in create_journal() 4452 get_mac(struct crypto_shash ** shash,struct crypto_ahash ** ahash,struct alg_spec * a,char ** error,char * error_alg,char * error_key) get_mac() argument
|
| /linux/include/crypto/ |
| H A D | krb5.h | 147 struct crypto_shash *shash, 153 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
|
| /linux/Documentation/crypto/ |
| H A D | krb5.rst | 234 struct crypto_shash *shash, 240 struct crypto_shash *shash,
|