Lines Matching defs:shash
6 * from shash (synchronous hash) in that ahash supports asynchronous operations,
9 * The ahash API provides access to both ahash and shash algorithms. The shash
10 * API only provides access to shash algorithms.
47 * For an ahash tfm that is using an shash algorithm (instead of an ahash
48 * algorithm), this returns the underlying shash tfm.
134 struct crypto_shash *shash;
139 shash = crypto_create_tfm(calg, &crypto_shash_type);
140 if (IS_ERR(shash)) {
142 return PTR_ERR(shash);
146 *ctx = shash;
149 crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) &
151 crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash);
244 struct crypto_shash *shash = ahash_to_shash(tfm);
247 err = crypto_shash_setkey(shash, key, keylen);
250 crypto_shash_get_flags(shash) &
657 struct crypto_shash *shash;
659 shash = crypto_clone_shash(ahash_to_shash(hash));
660 if (IS_ERR(shash)) {
661 err = PTR_ERR(shash);
665 *nctx = shash;