Lines Matching refs:elephant
166 struct iv_elephant_private elephant; member
766 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_dtr() local
768 crypto_free_skcipher(elephant->tfm); in crypt_iv_elephant_dtr()
769 elephant->tfm = NULL; in crypt_iv_elephant_dtr()
775 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_ctr() local
778 elephant->tfm = crypto_alloc_skcipher("ecb(aes)", 0, in crypt_iv_elephant_ctr()
780 if (IS_ERR(elephant->tfm)) { in crypt_iv_elephant_ctr()
781 r = PTR_ERR(elephant->tfm); in crypt_iv_elephant_ctr()
782 elephant->tfm = NULL; in crypt_iv_elephant_ctr()
938 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant() local
945 req = skcipher_request_alloc(elephant->tfm, GFP_NOIO); in crypt_iv_elephant()
1034 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_init() local
1037 return crypto_skcipher_setkey(elephant->tfm, &cc->key[key_offset], cc->key_extra_size); in crypt_iv_elephant_init()
1042 struct iv_elephant_private *elephant = &cc->iv_gen_private.elephant; in crypt_iv_elephant_wipe() local
1046 return crypto_skcipher_setkey(elephant->tfm, key, cc->key_extra_size); in crypt_iv_elephant_wipe()