Cryptsetup 1.0.5

Antivirus, forensics, intrusion detection, cryptography, etc.
Post Reply
Message
Author
Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

Cryptsetup 1.0.5

#1 Post by Wolf Pup »

Note: Needs device_mapper to work.

device_mapper-1.02.27.pet
md5sum

md5sum:

Code: Select all

d95f35cb76d8f4574b6e59fe90057130  cryptsetup-1.0.5.pet
Attachments
cryptsetup-1.0.5.pet
Hard Drive Encryption
(35.14 KiB) Downloaded 1230 times
Last edited by Wolf Pup on Wed 04 Feb 2009, 01:59, edited 2 times in total.
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]

gollath
Posts: 5
Joined: Tue 05 Aug 2008, 17:47

Additional Libraries

#2 Post by gollath »

Hi,

thanks for that, but it complained about missing libraries.
One of it is libgcrypt, which doesn't come in your packages. Maybe you can help?

Occurs on latest Puppy 4.

Regards

Wolf Pup
Posts: 637
Joined: Fri 28 Apr 2006, 01:37

#3 Post by Wolf Pup »

Have a look Here.
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]

User avatar
NoNameAmI
Posts: 77
Joined: Sun 31 Aug 2008, 14:17
Contact:

Re: Cryptsetup 1.0.5

#4 Post by NoNameAmI »

EDIT: Problem solved
Pup2p - Puppy Linux aimed for use with the anonymous network I2P.
Released! [url]http://www.puppylinux.org/downloads/puplets/pup2p[/url]

User avatar
Luluc
Posts: 200
Joined: Wed 16 Mar 2011, 07:10

#5 Post by Luluc »

I can't get device mapper or libcrypt, the two links have expired. Can someone please rescue me?

User avatar
Luluc
Posts: 200
Joined: Wed 16 Mar 2011, 07:10

#6 Post by Luluc »

OK, I sent the hounds on the scent and they found what I asked them, I have cryptsetup installed to some extent. But it doesn't work!
puppypc[332-251]#/lib> cryptsetup luksOpen /dev/sda10 crypthome
Enter LUKS passphrase:
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/sda10 contains at least 258 sectors.
Failed to read from key storage
Command failed: No key available with this passphrase.
This sucks! This absolutely sucks. Puppy is useless to me without cryptsetup. I don't understand why it is not built-in anyway. :cry: :cry: :cry:

Graf_Koks
Posts: 34
Joined: Tue 21 Jan 2014, 19:32

#7 Post by Graf_Koks »

Hello,

is there a solution to this problem? Since three years later, it is still not working:
# sudo cryptsetup luksOpen /dev/sdb2 crypthome
Enter passphrase for /dev/sdb2:
device-mapper: reload ioctl failed: No such file or directory
Failed to setup dm-crypt key mapping for device /dev/sdb2.
Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).
Failed to read from key storage.
How to solve this issue? The encrypted partition was created using Ubuntu.

I am using precise puppy 5.7.1 and it seems that xts support is not set in the kernel:
zcat /proc/config.gz | grep CRYPTO
CONFIG_BLK_DEV_CRYPTOLOOP=m
CONFIG_RT2X00_LIB_CRYPTO=y
CONFIG_RTLLIB_CRYPTO_CCMP=m
CONFIG_RTLLIB_CRYPTO_TKIP=m
CONFIG_RTLLIB_CRYPTO_WEP=m
CONFIG_CRYPTO=y
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=m
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER=m
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=m
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_PCOMP=m
CONFIG_CRYPTO_PCOMP2=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
# CONFIG_CRYPTO_GF128MUL is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_PCRYPT is not set
CONFIG_CRYPTO_WORKQUEUE=y
# CONFIG_CRYPTO_CRYPTD is not set
CONFIG_CRYPTO_AUTHENC=m
# CONFIG_CRYPTO_TEST is not set
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_SEQIV is not set
CONFIG_CRYPTO_CBC=m
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
CONFIG_CRYPTO_ECB=m
# CONFIG_CRYPTO_LRW is not set
CONFIG_CRYPTO_PCBC=m
# CONFIG_CRYPTO_XTS is not set
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32C_INTEL is not set
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_CRC32_PCLMUL is not set
# CONFIG_CRYPTO_GHASH is not set
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_MICHAEL_MIC=m
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_SHA512=m
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_AES_586=m
# CONFIG_CRYPTO_AES_NI_INTEL is not set
# CONFIG_CRYPTO_ANUBIS is not set
CONFIG_CRYPTO_ARC4=m
CONFIG_CRYPTO_BLOWFISH=m
CONFIG_CRYPTO_BLOWFISH_COMMON=m
# CONFIG_CRYPTO_CAMELLIA is not set
CONFIG_CRYPTO_CAST_COMMON=m
CONFIG_CRYPTO_CAST5=m
# CONFIG_CRYPTO_CAST6 is not set
CONFIG_CRYPTO_DES=m
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SALSA20_586 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SERPENT_SSE2_586 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_TWOFISH_586 is not set
CONFIG_CRYPTO_DEFLATE=m
CONFIG_CRYPTO_ZLIB=m
CONFIG_CRYPTO_LZO=m
CONFIG_CRYPTO_ANSI_CPRNG=m
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
CONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_PADLOCK is not set
CONFIG_CRYPTO_DEV_GEODE=m

Graf_Koks
Posts: 34
Joined: Tue 21 Jan 2014, 19:32

#8 Post by Graf_Koks »

What works under puppy is the following:

Take

http://wiki.ubuntuusers.de/LUKS

as manual (it is in german). But exchange

sudo cryptsetup luksFormat -c aes-xts-plain64 -s 512 GERÄTEDATEI

to

sudo cryptsetup luksFormat -c aes-cbc-essiv:sha256 -s 256 GERÄTEDATEI

Then it should work. However, the provided encryption is not state of the art:

http://security.stackexchange.com/quest ... encryption
http://code.google.com/p/cryptsetup/wiki/Cryptsetup160

So it is really necessary, that aes-xts-plain64 works out of the box.

aaa3
Posts: 15
Joined: Wed 02 Oct 2013, 14:29

#9 Post by aaa3 »

here are some modules i compiled as i could no way find them :(
included are xts, cbc, ripemd160, tiger whirlpool serpent etcetc... and more but not all

[s]http://www.crocko.com/B62677F0FA104A5FA ... _5.7.1.sfs[/s] - url-ing this would hide the post for spamprot i guess - edit:replacing this goddam shitlink with another attempt: http://dfiles.eu/files/t486b922n
mounter script: http://www.murga-linux.com/puppy/viewtopic.php?t=94009

together with the dep, order & symbols files. packaged ready-for setup menu's "sfs-load on-the-fly" in precise puppy 5.7.1

also with the Modules.symvers file, which could only be generated with a complete kernel compile as per google search. i dont know if its useful as i didnt do a second try from clean just for this, but it may enable separate modules-only compiling (make modules SUBDIRS=crypto) ....

i googled days for binary packages, but neither ubuntu nor debian seems to have the exact same kernel version, except for 1 saucy package but even that doesnt work, neither does porteus. other results from diff but close version numbers didnt worked: modprobe -f is getting ignored. also i erroneously believed that its i386. now, it was a refresh to somehow get to the ibiblio mirror, its not even amongst google results, and find the right kernel bin pkg finally... only to find its exactly as configured for the distro by default! that is, includes nothing more. so there is really no way to get this from net, except compiling which i never did b4.

so anyway,s if u wanna do ur own, heres how to:
--u've got to get 100mb devx 5.7 and delta 571 from http://distro.ibiblio.org/quirky/pet_packages-precise/ and http://distro.ibiblio.org/quirky/
--get the 100mb kernel sources from http://bkhome.org/blog2/?viewDetailed=00338 {pp//lx}
--dont get scared by the readme html that u need nonfrugal: u dont! thank god not that abomination
-(and, u also dont need anything else there, goddamn scary prostuff; just grab the source sfs *relieve!*)
--when mounted the stuff, just copy the whole /usr/src into any folder on a mounted real drive with at least 1,1GB free space. this will occupy ca 450mb atm. and from now on run everything from there! (googling how to change make output: some questionaire site linked to some multiarch site w 3 solutions, simplest is just copy)
--use make menuconfig or whatever it is, can view "make help" as well...
tick the stuff u want to; with googling told me m=module, y=in-kernel (dont!) and commented-out = obvious. actuially u could just edit the config file, dont see really any reason for the warning not to edit it.
--then, try to just do the module dir w t above command, w t above file in place (got 2 mount my sfs for that as well), and if the resulting binaries it doesnt work (u might need 2try aft a reboot if "no such m fnd" then it'll see it) after copying em to the real /lib/"whatever their place is at ull find this easy" - dmesging after modprobing - , then you too do the full "make". that will occupy 1000mb of stuff when all is done.
--u r basically done, copy/package the *.ko stuff whereever u want, optionally delete the now unneeded stuff, unmount etc... but. some more notes:
--ure free to remove many (but not all) the shit this process will also contaminate your /lib/xxx folder. either use judgement+trialnerror based on file contents, or just see whats in my sfs and whats there in a pristine savefile (nowadays im keeping one around for reference purposes - made right after the clean boot -, its just 1 mb xzpped (after clearing locale & dochtml trash)). keep the set's union:)
--before using cryptmount, uve also got to "pkill udev" per ggsrch-somearchorgentooforum result, or else it hangs. it also hangs before the whole shit weve been doing as some have noted, but then with a different dmesg :)
--also, doin this whole shit presupposes some decent ofm file manager like double commander instead of wtf?!rox to allow comfortable working, also for daily use (except for handling symlinks, for which reverse)

and finally:
--the ppm lists a cryptsetup with a SHITLOAD of dependencies baecause it offers 1.4 only, but very remarkably, if u install the 1.1 (also in the ubu repo, also working with our version, but uve got 2 get that from launchpad web), it has no dependencies altogether! (all the shit is already in t defo distro)

huh!
Last edited by aaa3 on Sun 01 Jun 2014, 18:22, edited 1 time in total.

Graf_Koks
Posts: 34
Joined: Tue 21 Jan 2014, 19:32

@aaa3

#10 Post by Graf_Koks »

Thanks :) ! I have put your tut into a more convenient form (I guess) at http://murga-linux.com/puppy/viewtopic. ... 693#780693.

Post Reply