Cryptodisk write support.

* grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
	(grub_cryptodisk_decrypt): Moved logic to ...
	(grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
	(grub_cryptodisk_write): Implement.
	* grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
	(grub_util_fd_write): ... this. Make global.
	* include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-01-29 18:16:48 +01:00
parent 87cf97447e
commit 9c6e84b838
4 changed files with 137 additions and 28 deletions

View file

@ -1,3 +1,15 @@
2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
Cryptodisk write support.
* grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
(grub_cryptodisk_decrypt): Moved logic to ...
(grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
(grub_cryptodisk_write): Implement.
* grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
(grub_util_fd_write): ... this. Make global.
* include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/list.h (grub_list_remove): Don't crash if element is