Lines Matching defs:ax
216 struct aesxts *ax;
228 ax = kmem_zalloc(sizeof(*ax), KM_SLEEP);
235 aes_setenckey128(&ax->ax_enckey, key);
236 aes_setdeckey128(&ax->ax_deckey, key);
237 aes_setenckey128(&ax->ax_tweakkey, key2);
238 ax->ax_nrounds = AES_128_NROUNDS;
241 aes_setenckey256(&ax->ax_enckey, key);
242 aes_setdeckey256(&ax->ax_deckey, key);
243 aes_setenckey256(&ax->ax_tweakkey, key2);
244 ax->ax_nrounds = AES_256_NROUNDS;
248 return ax;
254 struct aesxts *ax = cookie;
256 explicit_memset(ax, 0, sizeof(*ax));
257 kmem_free(ax, sizeof(*ax));
264 struct aesxts *ax = cookie;
268 aes_enc(&ax->ax_tweakkey, blkno, tweak, ax->ax_nrounds);
272 aes_xts_enc(&ax->ax_enckey, src, dst, nbytes, tweak,
273 ax->ax_nrounds);
276 aes_xts_dec(&ax->ax_deckey, src, dst, nbytes, tweak,
277 ax->ax_nrounds);