From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B97F5C433C1 for ; Wed, 24 Mar 2021 21:59:19 +0000 (UTC) Received: from mail.server123.net (mail.server123.net [78.46.64.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A40061A12 for ; Wed, 24 Mar 2021 21:59:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A40061A12 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-crypt-bounces@saout.de X-Virus-Scanned: amavisd-new at saout.de Authentication-Results: mail.server123.net (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::334; helo=mail-wm1-x334.google.com; envelope-from=gmazyland@gmail.com; receiver= Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 24 Mar 2021 22:56:36 +0100 (CET) Received: by mail-wm1-x334.google.com with SMTP id z6-20020a1c4c060000b029010f13694ba2so72572wmf.5 for ; Wed, 24 Mar 2021 14:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=kocpFrAPr+EM5KqPpIi/klqde2IGp3stbb7WR1yLNE8=; b=HmxQut8rh8ydGBMor0T/V1JfxYYMDteOtUzYrjRZdLWJBACfWL6NBKc9w2LZXGpJ/n mdTnxeioxQ9C5sSUkKE1V81i8/XwJENqkoe5auktQ1bRCxlXIhkw9dX5+99LeOjOJi7J u+BJk2dUah1dGdBI2iYFgtJZL5duu/WUAUT0KHLKfOpABvGNcu2WCXcaVSOxuxNd+G84 sv2b/gXX/nhO96bbbiMaQIHb6z2FRBBA9qvmNREPP4NvLJoexaxou0caHL5stzgPt9O1 lt5qNEhZDcMCcySjW94PBNJlzdtxTEitUP4z0oiNmloW1poHNI6wTLVU38e5nW6IdOWd 9zwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kocpFrAPr+EM5KqPpIi/klqde2IGp3stbb7WR1yLNE8=; b=JYj2bEYaHFEvruOGhIEDUxjtbqrXalb9qgo+0QWQpT9Ui0uqMmNQ/8TYRMK2djZl6H HpG7MngcjgXQUW8LBifjgpGMICgSuvW6l208w5oRsC0Hf8zv1c7Zi3p7LUkK8a8SAwfY VDFsBoGMld+dVMeRks4+qhEkU/miteRF5FuPxEOaVQpt4xilJBetTv9gBoGR1gN2Ig5/ 2aCl1EwMBnHbRoCQ8U2rVMSiTvMvm4mm+3q3CIHoEH6j/30tXTLlGrUlxG5/qyG9FCP+ hGmDsBnKWf4zE1ED/C6pOcgs+BsXrwBbEL2pf2MQeA76u7XfmdNcgMhbw+3invwClaag Y+OA== X-Gm-Message-State: AOAM532fcxE+2P34lpka1PDP1KCxkkmCA4Qn6PylIdiqQWb1ASUNvgSD bFMmt9l2hVf7QpTwnlq5Pz8KhBRkPq4= X-Google-Smtp-Source: ABdhPJx0YGVOPRM8PpgzMgAczP0s/Xu/gAQDNoYuwtHuInVt/8fgmg/Cj6YalcFgu9ST0IyVC7VLLA== X-Received: by 2002:a1c:7905:: with SMTP id l5mr4951464wme.181.1616622995396; Wed, 24 Mar 2021 14:56:35 -0700 (PDT) Received: from [192.168.2.27] (39.35.broadband4.iol.cz. [85.71.35.39]) by smtp.gmail.com with ESMTPSA id l15sm4795812wru.38.2021.03.24.14.56.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Mar 2021 14:56:34 -0700 (PDT) To: Matthias Schwartz , dm-crypt@saout.de References: From: Milan Broz Message-ID: <585a5280-daee-0ecd-c820-0e372904d221@gmail.com> Date: Wed, 24 Mar 2021 22:56:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Message-ID-Hash: HOCKG3LA7MBDRFP527UQHRK2FO4ZXE6Z X-Message-ID-Hash: HOCKG3LA7MBDRFP527UQHRK2FO4ZXE6Z X-MailFrom: gmazyland@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dm-crypt.saout.de-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.3.2 Precedence: list Subject: [dm-crypt] Re: 32/64-bit compatibility: Plain encryption of USB device partition List-Id: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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