Lines Matching refs:elephant
173 struct iv_elephant_private elephant; member
781 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_dtr() local
783 crypto_free_skcipher(elephant->tfm); in crypt_iv_elephant_dtr()
784 elephant->tfm = NULL; in crypt_iv_elephant_dtr()
790 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_ctr() local
793 elephant->tfm = crypto_alloc_skcipher("ecb(aes)", 0, in crypt_iv_elephant_ctr()
795 if (IS_ERR(elephant->tfm)) { in crypt_iv_elephant_ctr()
796 r = PTR_ERR(elephant->tfm); in crypt_iv_elephant_ctr()
797 elephant->tfm = NULL; in crypt_iv_elephant_ctr()
953 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant() local
960 req = skcipher_request_alloc(elephant->tfm, GFP_NOIO); in crypt_iv_elephant()
1049 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_init() local
1052 return crypto_skcipher_setkey(elephant->tfm, &cc->key[key_offset], cc->key_extra_size); in crypt_iv_elephant_init()
1057 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_wipe() local
1061 return crypto_skcipher_setkey(elephant->tfm, key, cc->key_extra_size); in crypt_iv_elephant_wipe()