Hi,
Currently splash only allows the user to type in the passphrase if encryption
without RSA is used. The appended patch fixes this.
Comments welcome.
Rafael
--
resume.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: suspend/resume.c
===================================================================
--- suspend.orig/resume.c 2006-07-07 14:32:05.000000000 +0200
+++ suspend/resume.c 2006-07-08 22:53:33.000000000 +0200
@@ -481,6 +481,8 @@ static int read_image(int dev, char *res
}
if (!error && (header->image_flags & IMAGE_ENCRYPTED)) {
#ifdef CONFIG_ENCRYPT
+ printf("resume: Encrypted image\n");
+ splash.to_verbose();
if (header->image_flags & IMAGE_USE_RSA) {
handle.num = 0;
error = decrypt_key(header, &handle.key,
@@ -488,15 +490,13 @@ static int read_image(int dev, char *res
} else {
int j;
- printf("resume: Encrypted image\n");
- splash.to_verbose();
encrypt_init(&handle.key, handle.ivec,
&handle.num,
buffer, buffer + page_size, 0);
- splash.to_silent();
- splash.progress(15);
for (j = 0; j < IVEC_SIZE; j++)
handle.ivec[j] ^= header->salt[j];
}
+ splash.to_silent();
+ splash.progress(15);
if (!error)
decrypt = 1;
#else
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel