LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-13-2012, 12:40 PM   #1
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
Migrating from loop AES to dm-crypt


I've just upgraded from openSUSE 12.1 to 12.2. I find that the latest version of mount and losetup do not have the file encryption options they used to, since people should have migrated to dm-crypt.

The trouble is, I now have some encrypted backup volumes that I cannot read!

I used to mount the archives with "mount ... -o loop,phash=sha256,encryption=aes128". It looks like I should be using the loopaesOpen option to cryptsetup to mount these now, but I cannot find a combination of options that works. I'm trying the following:

Code:
cryptsetup loopaesOpen <device> <name> --key-file pp --key-size 128 --hash sha256
Where the file pp has my passphrase (without a newline) - that I used to enter at the prompt mount gave when using the "-o loop". This successfully sets up the mapper, but the result is not recognizable as a filesystem (I think it's ext2). So I assume the crypto and/or passphrase hash isn't quite right.

Can anyone help?
 
Old 09-18-2012, 04:06 PM   #2
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Original Poster
Rep: Reputation: 33
Lightbulb Migrating from loop AES to dm-crypt: SOLVED

The answer is:
Code:
cryptsetup create mapped <device> -c aes -s 128 -h sha256
Note that this uses the plain "create" option and not the loopaesOpen option.
 
  


Reply

Tags
loop cryptsetup



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dm-crypt aes-xts-plain64 vs aes-cbc-essiv for volumes > 2TiB Molly Linux - Security 1 09-13-2010 05:24 PM
Loop-aes vs DM-crypt Frogular Linux - Security 3 12-26-2007 03:13 PM
loop aes digi691 Linux - Security 6 05-27-2005 09:11 PM
loop-aes movery Linux - Security 0 01-14-2005 08:29 AM
loop-AES dm-crypt and Gentoo PrimusXPrimus Linux - Software 1 10-12-2004 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration