dm-crypt.saout.de archive mirror
 help / color / mirror / Atom feed
* [dm-crypt] 32/64-bit compatibility: Plain encryption of USB device partition
@ 2021-03-24 10:42 Matthias Schwartz
  2021-03-24 21:56 ` [dm-crypt] " Milan Broz
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Schwartz @ 2021-03-24 10:42 UTC (permalink / raw)
  To: dm-crypt

Hello,

I didn't found compatiblity information in the FAQ:

Questions:
- 32-bit system and 64-bit systems compatible?
- little endian and big endian systems compatible?

I like to do a plain encryption of a SD-Card partition but it seems that 
an encryption created on a 64 bit system can't be mounted on a 32 bit 
system.

Should this work?

On 64 bit system:
cryptsetup --cipher=aes-cbs-essiv:sha256 --hash riepmd160 open 
--type=plain /dev/sdb1 key
mkfs /dev/mapper/key

On 32 bit system
cryptsetup --cipher=aes-cbs-essiv:sha256 --hash riepmd160 open 
--type=plain /dev/sdb1 key
mount /dev/mapper/key /mnt


Best Matthias


-- 
____________________________________________________
HOCHSCHULE MANNHEIM - University of Applied Sciences
Center for Mass Spectrometry and Optical Spectroscopy (CeMOS)

Dipl.-Ing. Matthias Schwartz
Paul-Wittsack-Str. 10, 68163 Mannheim
Tel. 0621/292-6404
m.schwartz@hs-mannheim.de
_______________________________________________
dm-crypt mailing list -- dm-crypt@saout.de
To unsubscribe send an email to dm-crypt-leave@saout.de

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

* [dm-crypt] Re: 32/64-bit compatibility: Plain encryption of USB device partition
  2021-03-24 10:42 [dm-crypt] 32/64-bit compatibility: Plain encryption of USB device partition Matthias Schwartz
@ 2021-03-24 21:56 ` Milan Broz
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2021-03-24 21:56 UTC (permalink / raw)
  To: Matthias Schwartz, dm-crypt

On 24/03/2021 11:42, Matthias Schwartz wrote:
> Hello,
> 
> I didn't found compatiblity information in the FAQ:
> 
> Questions:
> - 32-bit system and 64-bit systems compatible?
> - little endian and big endian systems compatible?
> 
> I like to do a plain encryption of a SD-Card partition but it seems that 
> an encryption created on a 64 bit system can't be mounted on a 32 bit 
> system.
> 
> Should this work?

Everything should work, it is platform independent.

The only exception would be 32bit system compiled without 64bit sectors compatibility,
there a device size is limited (but that is not limitation of dmcrypt but
the whole system, it applies to fs etc).

But better please use LUKS for key management.

m.

 
> On 64 bit system:
> cryptsetup --cipher=aes-cbs-essiv:sha256 --hash riepmd160 open 
> --type=plain /dev/sdb1 key
> mkfs /dev/mapper/key
> 
> On 32 bit system
> cryptsetup --cipher=aes-cbs-essiv:sha256 --hash riepmd160 open 
> --type=plain /dev/sdb1 key
> mount /dev/mapper/key /mnt
> 
> 
> Best Matthias
> 
> 
_______________________________________________
dm-crypt mailing list -- dm-crypt@saout.de
To unsubscribe send an email to dm-crypt-leave@saout.de

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

end of thread, other threads:[~2021-03-24 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 10:42 [dm-crypt] 32/64-bit compatibility: Plain encryption of USB device partition Matthias Schwartz
2021-03-24 21:56 ` [dm-crypt] " Milan Broz

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).