Lines Matching defs:tfm

1705 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1718 crypto_ahash_digestsize(tfm));
1792 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1793 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1849 crypto_ahash_digestsize(tfm),
1915 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1916 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1930 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1931 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1942 size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE)
1983 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1984 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1988 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
2084 /* When the tfm context has a keylen, it's an HMAC.
2135 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
2136 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
2159 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
2160 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
2167 size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE)
2186 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen,
2189 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
2198 req = ahash_request_alloc(tfm, GFP_KERNEL);
2202 /* Keep tfm keylen == 0 during hash of the long key */
2217 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key,
2220 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
2223 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
2224 unsigned int digestsize = crypto_ahash_digestsize(tfm);
2233 ret = keyhash(tfm, key, keylen, hash);
3055 /* assign SEC channel to tfm in round-robin fashion */
3069 static int talitos_cra_init_aead(struct crypto_aead *tfm)
3071 struct aead_alg *alg = crypto_aead_alg(tfm);
3073 struct talitos_ctx *ctx = crypto_aead_ctx(tfm);
3081 static int talitos_cra_init_skcipher(struct crypto_skcipher *tfm)
3083 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
3085 struct talitos_ctx *ctx = crypto_skcipher_ctx(tfm);
3093 static int talitos_cra_init_ahash(struct crypto_tfm *tfm)
3095 struct crypto_alg *alg = tfm->__crt_alg;
3097 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm);
3104 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
3110 static void talitos_cra_exit(struct crypto_tfm *tfm)
3112 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm);