All of lore.kernel.org
 help / color / mirror / Atom feed
* how the key is generated?
@ 2010-01-26  8:41 Bai Shuwei
  2010-01-26  8:58 ` Milan Broz
  0 siblings, 1 reply; 4+ messages in thread
From: Bai Shuwei @ 2010-01-26  8:41 UTC (permalink / raw)
  To: linux-crypto

Hello, everyone:
    i add one line in the setkey function which is in xts.c file to
print the in_key value. I find the key value not same i set in the
keyfile by cryptsetup

   my command is
#   cryptsetup luksFormat -d my_keyfile -c xts-aes-plain -s 256 /dev/loop0

# cat my_keyfile
1234567890abcdef1234567890abcdef


I want to know how i set my key to encrypt/decrypt the disc for
xts-aes and aes alogrithm? And how the crypto get the real key to
encrypt the disc or how the key printed in the setkey is genereted and
when? Thanks very much!

Best Regards

Bai Shuwei

-- 
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] 4+ messages in thread

end of thread, other threads:[~2010-01-27  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-26  8:41 how the key is generated? Bai Shuwei
2010-01-26  8:58 ` Milan Broz
2010-01-27  3:21   ` Bai Shuwei
2010-01-27  8:21     ` Milan Broz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.