forked from martijnvanbrummelen/nwipe
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional error message for prng
Prior to this update any error produced by the nwipe_random_verify() or nwipe_random_pass functions would be displayed in the GUI with a generic message "IOERROR", while the details of the error would be displayed in log file. With this patch the GUI now displayes "I/O ERROR" for any read/write errors, "PRNG ERROR" for all errors returned by the prng generators and "FAILURE" for any signal errors. The nwipe_random_verify() and nwipe_random_pass() functions previously only returned a -1 to indicate some failure. They now return -1 for read/write I/O errors and -2 for prng errors. Identifing a prng error will be particulary important for an upcoming commit related to the aes-ctr prng which calls external libraries.
- Loading branch information
1 parent
9400ff5
commit 66b56f3
Showing
2 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters