Searched refs:shash (Results 1 – 6 of 6) sorted by relevance
/crypto/ |
D | shash.c | 45 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_setkey_unaligned() local 58 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned() 72 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_setkey() local 79 err = shash->setkey(tfm, key, keylen); in crypto_shash_setkey() 82 shash_set_needkey(tfm, shash); in crypto_shash_setkey() 95 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_update_unaligned() local 114 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned() 118 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned() 125 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_update() local 131 return shash->update(desc, data, len); in crypto_shash_update() [all …]
|
D | hmac.c | 51 SHASH_DESC_ON_STACK(shash, hash); in hmac_setkey() 54 shash->tfm = hash; in hmac_setkey() 59 err = crypto_shash_digest(shash, inkey, keylen, ipad); in hmac_setkey() 75 return crypto_shash_init(shash) ?: in hmac_setkey() 76 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey() 77 crypto_shash_export(shash, ipad) ?: in hmac_setkey() 78 crypto_shash_init(shash) ?: in hmac_setkey() 79 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey() 80 crypto_shash_export(shash, opad); in hmac_setkey()
|
D | hctr2.c | 111 SHASH_DESC_ON_STACK(shash, tfm->polyval); in hctr2_hash_tweaklen() 115 shash->tfm = tctx->polyval; in hctr2_hash_tweaklen() 119 err = crypto_shash_init(shash); in hctr2_hash_tweaklen() 122 err = crypto_shash_update(shash, (u8 *)tweak_length_block, in hctr2_hash_tweaklen() 126 return crypto_shash_export(shash, hctr2_hashed_tweaklen(tctx, has_remainder)); in hctr2_hash_tweaklen()
|
D | drbg.c | 1648 struct shash_desc shash; member 1671 sdesc->shash.tfm = tfm; in drbg_init_hash_kernel() 1681 crypto_free_shash(sdesc->shash.tfm); in drbg_fini_hash_kernel() 1693 crypto_shash_setkey(sdesc->shash.tfm, key, drbg_statelen(drbg)); in drbg_kcapi_hmacsetkey() 1702 crypto_shash_init(&sdesc->shash); in drbg_kcapi_hash() 1704 crypto_shash_update(&sdesc->shash, input->buf, input->len); in drbg_kcapi_hash() 1705 return crypto_shash_final(&sdesc->shash, outval); in drbg_kcapi_hash()
|
D | Makefile | 24 crypto_hash-y += shash.o
|
D | testmgr.c | 3592 SHASH_DESC_ON_STACK(shash, tfm); in alg_test_crc32c() 3593 u32 *ctx = (u32 *)shash_desc_ctx(shash); in alg_test_crc32c() 3595 shash->tfm = tfm; in alg_test_crc32c() 3598 err = crypto_shash_final(shash, (u8 *)&val); in alg_test_crc32c()
|