Lines Matching refs:tfm
36 struct crypto_sync_skcipher *tfm; in cryptoloop_init() local
71 tfm = crypto_alloc_sync_skcipher(cms, 0, 0); in cryptoloop_init()
72 if (IS_ERR(tfm)) in cryptoloop_init()
73 return PTR_ERR(tfm); in cryptoloop_init()
75 err = crypto_sync_skcipher_setkey(tfm, info->lo_encrypt_key, in cryptoloop_init()
81 lo->key_data = tfm; in cryptoloop_init()
85 crypto_free_sync_skcipher(tfm); in cryptoloop_init()
100 struct crypto_sync_skcipher *tfm = lo->key_data; in cryptoloop_transfer() local
101 SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm); in cryptoloop_transfer()
110 skcipher_request_set_sync_tfm(req, tfm); in cryptoloop_transfer()
166 struct crypto_sync_skcipher *tfm = lo->key_data; in cryptoloop_release() local
167 if (tfm != NULL) { in cryptoloop_release()
168 crypto_free_sync_skcipher(tfm); in cryptoloop_release()