linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* where does tw routine point to in xts.c?
@ 2010-04-10  3:20 Bai Shuwei
  0 siblings, 0 replies; only message in thread
From: Bai Shuwei @ 2010-04-10  3:20 UTC (permalink / raw)
  To: linux-crypto

Hi, All:
  When i use the cryptsetup command to set the aes-xts-plain
encryption, the system will entry the crypt() routine which defined in
the xts.c file. I find the routine will call two important routines:
tw and fn. I think the fn will point to the aes_encrypt/decrypt
routine. But i want to know which routine the tw will point to for
aes-xts-plain encryption? and where i can find its source code? I put
the segment where the tw routine will be called in the bellow.

       wsrc = w->src.virt.addr;
       wdst = w->dst.virt.addr;

       /* calculate first value of T */
       tw(crypto_cipher_tfm(ctx->tweak), w->iv, w->iv);

       goto first;

       for (;;) {
               do {


Thanks all!

Best Regards

-- 
Love other people, as same as love yourself!
Don't think all the time, do it by your hands!

E-Mail: baishuwei@gmail.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-10  3:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-10  3:20 where does tw routine point to in xts.c? Bai Shuwei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).