Home
last modified time | relevance | path

Searched refs:shash (Results 1 – 5 of 5) sorted by relevance

/crypto/
Dshash.c33 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_setkey_unaligned() local
46 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
61 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_setkey() local
68 err = shash->setkey(tfm, key, keylen); in crypto_shash_setkey()
71 shash_set_needkey(tfm, shash); in crypto_shash_setkey()
84 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_update_unaligned() local
103 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned()
107 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned()
114 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_update() local
120 return shash->update(desc, data, len); in crypto_shash_update()
[all …]
Dhmac.c51 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()
Ddrbg.c1654 struct shash_desc shash; member
1677 sdesc->shash.tfm = tfm; in drbg_init_hash_kernel()
1687 crypto_free_shash(sdesc->shash.tfm); in drbg_fini_hash_kernel()
1699 crypto_shash_setkey(sdesc->shash.tfm, key, drbg_statelen(drbg)); in drbg_kcapi_hmacsetkey()
1708 crypto_shash_init(&sdesc->shash); in drbg_kcapi_hash()
1710 crypto_shash_update(&sdesc->shash, input->buf, input->len); in drbg_kcapi_hash()
1711 return crypto_shash_final(&sdesc->shash, outval); in drbg_kcapi_hash()
DMakefile26 crypto_hash-y += shash.o
Dtestmgr.c3322 SHASH_DESC_ON_STACK(shash, tfm); in alg_test_crc32c()
3323 u32 *ctx = (u32 *)shash_desc_ctx(shash); in alg_test_crc32c()
3325 shash->tfm = tfm; in alg_test_crc32c()
3328 err = crypto_shash_final(shash, (u8 *)&val); in alg_test_crc32c()