32/64-bit compatibility: Plain encryption of USB device partition

Matthias Schwartz <m.schwartz-PkKVpsTpHZSycLN6L/[email protected]> Wed, 24 Mar 2021 11:42:21 +0100
Newsgroups gmane.linux.kernel.device-mapper.dm-crypt
Message-ID <[email protected]>
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-PkKVpsTpHZSycLN6L/[email protected]
_______________________________________________
dm-crypt mailing list -- [email protected]
To unsubscribe send an email to [email protected]