Lines Matching defs:tfm
1704 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1717 crypto_ahash_digestsize(tfm));
1791 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1792 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1848 crypto_ahash_digestsize(tfm),
1914 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1915 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1929 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1930 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1941 size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE)
1982 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
1983 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
1987 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
2083 /* When the tfm context has a keylen, it's an HMAC.
2134 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
2135 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
2158 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);
2159 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm);
2166 size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE)
2185 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen,
2188 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
2197 req = ahash_request_alloc(tfm, GFP_KERNEL);
2201 /* Keep tfm keylen == 0 during hash of the long key */
2216 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key,
2219 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
2222 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
2223 unsigned int digestsize = crypto_ahash_digestsize(tfm);
2232 ret = keyhash(tfm, key, keylen, hash);
3054 /* assign SEC channel to tfm in round-robin fashion */
3068 static int talitos_cra_init_aead(struct crypto_aead *tfm)
3070 struct aead_alg *alg = crypto_aead_alg(tfm);
3072 struct talitos_ctx *ctx = crypto_aead_ctx(tfm);
3080 static int talitos_cra_init_skcipher(struct crypto_skcipher *tfm)
3082 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
3084 struct talitos_ctx *ctx = crypto_skcipher_ctx(tfm);
3092 static int talitos_cra_init_ahash(struct crypto_tfm *tfm)
3094 struct crypto_alg *alg = tfm->__crt_alg;
3096 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm);
3103 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
3109 static void talitos_cra_exit(struct crypto_tfm *tfm)
3111 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm);