From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ramses-pyramidenbau.de (ramses-pyramidenbau.de [46.38.238.63]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 29 Oct 2014 11:33:26 +0100 (CET) Received: from [0.0.0.0] (ramses-pyramidenbau.de [46.38.238.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ramses-pyramidenbau.de (Postfix) with ESMTPSA id 8F5FC83C3E for ; Wed, 29 Oct 2014 11:33:24 +0100 (CET) Message-ID: <5450C274.6020909@ramses-pyramidenbau.de> Date: Wed, 29 Oct 2014 12:33:24 +0200 From: Ralf Ramsauer MIME-Version: 1.0 References: <20141028111351.GA23722@tansi.org> In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] Quick dm-crypt questions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 29.10.2014 11:24, Cpp wrote: > The thing is I planned to use a microcontroller to store an encryption > key in its RAM, and I see the device uses SRAM, so this might be a > problem? > http://www.atmel.com/Images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48= A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Summary.pdf Yes, comments :-) First of all: are you going to store the Masterkey or the Passphrase / Keyfile which is used for key derivation? If you're going to store the master key, you don't need Luks at all, this would also be a solution for your detached-header problem. But.... How do you want to realize the communication between the =B5C and you Linux Box? Over Uart? (Uart communication can _easily_ be sniffed, so be aware of that....) Also don't forget to deactivate the JTAG interface. Otherwise the =B5C could get debugged... And don't forget to set the correct FUSE bits (disallow reading / writing from / to flash / EPROM memory, ....) And did you know, that CPU operations can be reconstructed by small fluctuations in current[1]? How do you want to solve this issue? How does the key get to the =B5C? Aah, almost forgot to mention: you talked about to use a RNG on your AVR to move the key around. RNG on AVR? From where do you get your entropy? I don't know much about this project, but maybe this helps you [2]. There are *so* many traps... Do you really think this is a good idea? [1] http://en.wikipedia.org/wiki/Power_analysis [2] http://www.das-labor.org/wiki/AVR-Crypto-Lib // http://www.das-labor.org/wiki/AVR-Crypto-Lib#PRNGs Regards Ralf