From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 18 Dec 2005 23:16:35 +0200 From: Alex Yustasov To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] kernel aes and hibernate Message-ID: <20051218211635.GA8451@yust.work> Mail-Followup-To: Alex Yustasov , sisyphus@lists.altlinux.org References: <43A59878.5020601@nm.ru> <20051218204330.GA6828@yust.work> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20051218204330.GA6828@yust.work> User-Agent: Mutt/1.4.2.1i X-AV-Checked: ClamAV using ClamSMTP X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 21:17:15 -0000 Archived-At: List-Archive: List-Post: On Sun, Dec 18, 2005 at 07:12:24PM +0200, Artem wrote: > Здравствуйте! > > Продолжая играться с hibernate и swsusp2 на kernel-2.6.14-wks, решил > попробовать Encryptor aes . Замодпробил aes, далее вызываю hibernate - > а он мне в ответ: > Failed to initialize the encryptor filter > > в dmesg: > > Amount still needed (-138237) > 0:0. Header: 8 < 8: 0, Storage allocd: > 53648 < 8 + 53575: 0. > 0 is an invalid key length for cipher aes. > > Откуда он должен брать ключ? В Documentation/crypto об этом ничего нет. Что-то не прошло письмо. Сорри за повтор. Полутеоретически: нужно добавить в initrd crypto модуль. cd /boot rm initrd-2.6.14-wks26-up-alt2.img mkinitrd initrd-2.6.14-wks26-up-alt2.img 2.6.14-wks26-up-alt2 --with aes.ko Я перегрузился с новым initrd. В /proc/crypto появилась инфа про aes. В hibernate.conf Encryptor aes ProcSetting encryption_iv 16 ProcSetting encryption_key 1234567890123456 ProcSetting encryption_save_key_and_iv 1 С encryption_save_key_and_iv=0, когда оно должно спросить iv и key во время resume, не получилось. Не спросило. Про iv точно не знаю. -- Alex Yustasov