From: Bai Shuwei <baishuwei@gmail.com>
To: linux-crypto@vger.kernel.org
Subject: where the tweak routine point to?
Date: Fri, 9 Apr 2010 09:09:21 +0800 [thread overview]
Message-ID: <w2wf3566d61004081809k9eeff7e0h2099683ea276ad1e@mail.gmail.com> (raw)
In-Reply-To: <p2hf3566d61004070411va4a69863l849564c576d80df1@mail.gmail.com>
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
Bai Shuweiv
--
Love other people, as same as love yourself!
Don't think all the time, do it by your hands!
E-Mail: baishuwei@gmail.com
parent reply other threads:[~2010-04-09 1:09 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <p2hf3566d61004070411va4a69863l849564c576d80df1@mail.gmail.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=w2wf3566d61004081809k9eeff7e0h2099683ea276ad1e@mail.gmail.com \
--to=baishuwei@gmail.com \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).