diff --git a/man/nwipe.1 b/man/nwipe.1 index 58f8812..36cc87e 100644 --- a/man/nwipe.1 +++ b/man/nwipe.1 @@ -112,7 +112,7 @@ is5enh \- HMG IS5 enhanced Filename to log to. Default is STDOUT .TP \fB\-p\fR, \fB\-\-prng\fR=\fIMETHOD\fR -PRNG option (mersenne|twister|isaac) +PRNG option (mersenne|twister|isaac|isaac64) .TP \fB\-q\fR, \fB\-\-quiet\fR Anonymize serial numbers, Gui & logs display: diff --git a/src/options.c b/src/options.c index 69e489e..2930f3b 100644 --- a/src/options.c +++ b/src/options.c @@ -376,6 +376,12 @@ int nwipe_options_parse( int argc, char** argv ) break; } + if( strcmp( optarg, "isaac64" ) == 0 ) + { + nwipe_options.prng = &nwipe_isaac64; + break; + } + /* Else we do not know this PRNG. */ fprintf( stderr, "Error: Unknown prng '%s'.\n", optarg ); exit( EINVAL ); @@ -423,6 +429,7 @@ void nwipe_options_log( void ) { extern nwipe_prng_t nwipe_twister; extern nwipe_prng_t nwipe_isaac; + extern nwipe_prng_t nwipe_isaac64; /** * Prints a manifest of options to the log. @@ -482,7 +489,14 @@ void nwipe_options_log( void ) } else { - nwipe_log( NWIPE_LOG_NOTICE, " prng = Undefined" ); + if( nwipe_options.prng == &nwipe_isaac64 ) + { + nwipe_log( NWIPE_LOG_NOTICE, " prng = Isaac64" ); + } + else + { + nwipe_log( NWIPE_LOG_NOTICE, " prng = Undefined" ); + } } } @@ -556,7 +570,7 @@ void display_help() puts( " verify_zero - Verifies disk is zero filled" ); puts( " verify_one - Verifies disk is 0xFF filled\n" ); puts( " -l, --logfile=FILE Filename to log to. Default is STDOUT\n" ); - puts( " -p, --prng=METHOD PRNG option (mersenne|twister|isaac)\n" ); + puts( " -p, --prng=METHOD PRNG option (mersenne|twister|isaac|isaac64)\n" ); puts( " -q, --quiet Anonymize logs and the GUI by removing unique data, i.e." ); puts( " serial numbers, LU WWN Device ID, and SMBIOS/DMI data" ); puts( " XXXXXX = S/N exists, ????? = S/N not obtainable\n" );