All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Query on validating cryptsetup
@ 2012-10-03 17:28 Abhishek Tiwari
  2012-10-07 19:50 ` Milan Broz
  0 siblings, 1 reply; 3+ messages in thread
From: Abhishek Tiwari @ 2012-10-03 17:28 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

Hi,

I am trying to use cryptsetup for an SD card. I create the crypto mapper
device and write a file to it. For the purpose of validation, I am using a
fixed key "11111111" as passphrase. Then I tried to see the contents of
this SD card using a reader and WinHex. Unfortunately these contents do not
match with an encrypted copy of same file that was encrypted using this
online DES encryption tool:
http://www.tools4noobs.com/online_tools/encrypt/
I specified algorithm as DES and mode as CBC.

When creating crypto device, my command is:
cryptsetup -c des-cbc-plain --key-size=64 --key-file=keyfile create sdcard0
/dev/sdcard0

Here, keyfile contains "11111111".

I tried with some other tools as well but could not get the exact same
output. Is there anything else that I need to look at?

Also, is there any other way I can verify my usage of keys and encryption
done using cryptsetup?

Please see if you can help. Thanks.

-- 
Abhishek

[-- Attachment #2: Type: text/html, Size: 1242 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-07 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 17:28 [dm-crypt] Query on validating cryptsetup Abhishek Tiwari
2012-10-07 19:50 ` Milan Broz
2012-10-07 20:53   ` Arno Wagner

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.