Lines Matching refs:tfm

1705 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq);  in common_nonsnoop_hash_unmap()  local
1718 crypto_ahash_digestsize(tfm)); in common_nonsnoop_hash_unmap()
1792 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in common_nonsnoop_hash() local
1793 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in common_nonsnoop_hash()
1849 crypto_ahash_digestsize(tfm), in common_nonsnoop_hash()
1915 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_edesc_alloc() local
1916 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_edesc_alloc()
1930 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_init() local
1931 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_init()
1942 size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE) in ahash_init()
1983 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_process_req() local
1984 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_process_req()
1988 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ahash_process_req()
2135 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_export() local
2136 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_export()
2159 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_import() local
2160 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_import()
2167 size = (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE) in ahash_import()
2186 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, in keyhash() argument
2189 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in keyhash()
2198 req = ahash_request_alloc(tfm, GFP_KERNEL); in keyhash()
2217 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey() argument
2220 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ahash_setkey()
2223 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ahash_setkey()
2224 unsigned int digestsize = crypto_ahash_digestsize(tfm); in ahash_setkey()
2233 ret = keyhash(tfm, key, keylen, hash); in ahash_setkey()
3069 static int talitos_cra_init_aead(struct crypto_aead *tfm) in talitos_cra_init_aead() argument
3071 struct aead_alg *alg = crypto_aead_alg(tfm); in talitos_cra_init_aead()
3073 struct talitos_ctx *ctx = crypto_aead_ctx(tfm); in talitos_cra_init_aead()
3081 static int talitos_cra_init_skcipher(struct crypto_skcipher *tfm) in talitos_cra_init_skcipher() argument
3083 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in talitos_cra_init_skcipher()
3085 struct talitos_ctx *ctx = crypto_skcipher_ctx(tfm); in talitos_cra_init_skcipher()
3093 static int talitos_cra_init_ahash(struct crypto_tfm *tfm) in talitos_cra_init_ahash() argument
3095 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init_ahash()
3097 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init_ahash()
3104 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in talitos_cra_init_ahash()
3110 static void talitos_cra_exit(struct crypto_tfm *tfm) in talitos_cra_exit() argument
3112 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_exit()