Commit Graph

1036 Commits

Author SHA1 Message Date
PartialVolume
67df917378 Reinstate page 1 label on PDF 2025-11-14 17:08:40 +00:00
PartialVolume
f83f229a6a Merge pull request #678 from PartialVolume/create_function_from_duplicated_code
Combine duplicated code into function
2025-11-13 21:49:37 +00:00
PartialVolume
30015d1be4 Combine duplicated code into function
The fifteen lines of code that creates the header
and footer text in the PDF appear in two separate
places. The first occurrence  in the create_pdf(..)
function and once in the create_header_and_footer(..)
function.

This duplicated code was combined into a third
function pdf_header_footer_text(..) and is now called
from the other functions.

This was done as I need to add some user selectable
changes to the header text that will include host
identification such as system tag, UUID, hostname
without creating further duplicated code.
2025-11-13 21:43:55 +00:00
PartialVolume
071487e4bc Merge pull request #677 from PartialVolume/Update_BMB21-2019_info
Updated UK HMG IA/IS 5 and Chinese BMB21-2019 Info
2025-11-11 20:21:13 +00:00
PartialVolume
7fdf6b379a Updated UK HMG IA/IS 5 and Chinese BMB21-2019 Info 2025-11-11 20:14:09 +00:00
PartialVolume
0e78efeb40 Merge pull request #676 from PartialVolume/Add_uuid_to_pdf_filename
Add device name, e.g sda, sdb etc to PDF filename

Closes #664
2025-11-10 23:30:52 +00:00
PartialVolume
e8c07bddc5 Add device name, e.g sda, SD etc to PDF filename
The purpose of this commit is to add an additional
identifying piece of information to the pdf filename.

This was found to be necessary in the case of a user
wiping partitions as opposed to the whole disc. Currently
when wiping a partition the model name and serial number
is missing from the pdf content and pdf filename so by adding
the device name, it make it less likely that an existing pdf
will get overwritten. This is a stop gap fix as preferably
the disk model and serial no needs to be retrieved even
wiping just one partition.

Additional functions were added including retrieval of UUID,
however UUID was found to not be available for some USB
devices when wiping partitions. The UUID function remains
in the code and the UUID if available is output to the log
but is not used anywhere else at the moment.
2025-11-10 23:21:15 +00:00
PartialVolume
86cf634ab6 Merge pull request #668 from xicaixiaokeke/apply-patch
Add BMB21-2019 wipe function
2025-11-09 16:42:29 +00:00
PartialVolume
1a27e0ac7e Merge branch 'master' into apply-patch 2025-11-09 16:42:08 +00:00
PartialVolume
ed74492a1d Merge pull request #672 from Extloga/master
Fixes for English text in several files
2025-09-30 21:11:49 +01:00
Extloga
b8f9307256 Fixes for consistency in nwipe.8 2025-09-30 12:38:29 +02:00
Extloga
d9ff3e8f8e Fixes for consistency in gui.c 2025-09-30 12:14:49 +02:00
Extloga
76c7820002 Update README.md for version 0.39 2025-09-30 12:08:43 +02:00
Extloga
bc1bc190b5 Update version number in version.c 2025-09-19 07:29:33 +02:00
Extloga
8fc559774d Fixes for consistency in nwipe.8 2025-09-19 07:27:35 +02:00
Extloga
f48fac0e5b Fixes for consistency in options.c 2025-09-19 07:26:02 +02:00
Extloga
a76046ed37 Fixes for formatting and consistency in options.c 2025-09-19 07:19:15 +02:00
Extloga
ae6c839e3a Fixes for consistency in gui.c 2025-09-19 07:11:39 +02:00
Extloga
34e42b3c5e Fix for orthography in prng.c 2025-09-19 07:08:47 +02:00
Extloga
2f2c0a5153 Fixes for formatting and consistency in gui.c 2025-09-19 07:06:39 +02:00
Extloga
342fb03c1d Include the algorithm of Bruce Schneier in nwipe.8 2025-09-19 06:29:19 +02:00
Extloga
8bc22175ac Update version number to 0.39 in nwipe.8 2025-09-19 06:20:06 +02:00
Extloga
39ee8cfc91 Update version number to 0.39 in configure.ac 2025-09-19 06:18:13 +02:00
Martijn van Brummelen
316b707308 release 0.39 v0.39 2025-09-10 11:10:15 +02:00
Martijn van Brummelen
ae6cd21019 add tag v038.1 2025-09-10 10:21:08 +02:00
Martijn van Brummelen
a01ec958e4 Merge pull request #652 from Knogle/remove-exp-flag
Removed EXPERIMENTAL! comments for ALFG and Xoroshiro due to their ma…
2025-09-09 21:45:27 +02:00
Martijn van Brummelen
ad25e08997 Merge pull request #663 from Knogle/gcc-15-forward-declarations
fix: some declaration changes to satisfy gcc 15
2025-09-09 21:42:21 +02:00
kobe_memba
59fbac30a8 add bmb21-2019 wipe function 2025-07-27 17:45:11 +08:00
Fabian Druschke
436aa12227 fix: some declaration changes to satisfy gcc 15 2025-06-09 20:05:05 +02:00
Fabian Druschke
764235fc7d Removed EXPERIMENTAL! comments for ALFG and Xoroshiro due to their matured state. Some clarification on ALFG PRNG header, which is actually more a SLFG 2025-03-14 11:06:32 +01:00
PartialVolume
f594d677a7 Merge pull request #651 from Knogle/cleanup
Some cleanup in options.c, added missing xoroshiro256_prng argument in help.
2025-03-13 21:46:35 +00:00
Fabian Druschke
536ead8f2b Some cleanup in options.c, added missing xoroshiro256_prng argument in --help 2025-03-13 12:51:04 +01:00
PartialVolume
c29a17d090 Update version.c
Bumped minor version
2025-03-12 22:58:05 +00:00
PartialVolume
d630e3bd3c Merge pull request #648 from Knogle/bruce-7
Implement Bruce Schneier 7-Pass wiping method
2025-03-12 22:44:32 +00:00
Fabian Druschke
997a1867cf Implement Bruce Schneier 7-Pass wiping method
- Added a new wiping method following the Bruce Schneier 7-Pass standard.
- Overwrites the device with:
  - Pass 1: All ones (0xFF)
  - Pass 2: All zeroes (0x00)
  - Pass 3-7: Five passes of PRNG-generated random data.
- Updated method.h with the function prototype for `nwipe_bruce7`.
- Added `nwipe_bruce7()` implementation in method.c.
- Registered method label in `nwipe_method_label()`.
- Updated UI in options.c to display security level and details.
2025-03-08 18:18:13 +01:00
PartialVolume
ddb0329f03 Merge pull request #643 from PartialVolume/Fix_sandisk_endian_on_some_chipsets
Fix model name Endian for Sandisk-SunDisk drives
2025-02-09 17:11:02 +00:00
PartialVolume
b21860d336 Fix model name Endian for Sandisk-SunDisk drives 2025-02-09 17:05:57 +00:00
PartialVolume
051e1aa0c9 Merge pull request #638 from PartialVolume/bump_to_version_0.38
Bump version to v0.38
v0.38
2025-01-08 22:26:45 +00:00
PartialVolume
9856cecd45 Bump version to v0.38 2025-01-08 22:23:15 +00:00
PartialVolume
e8297c642a Merge pull request #636 from PartialVolume/fix_s_shift_S_bug_#301
Fixes the s shift s bug
2025-01-05 20:27:15 +00:00
PartialVolume
bb7a251349 Fixes the s shift s bug
The s shift s bug is reported here
https://github.com/PartialVolume/shredos.x86_64/issues/301

To summarize, if no drives are selected and then the user presses
s (lower case) a warning appears indicating that the user
should press S (upper case) to start the wipe. This
warning appears for about 3 seconds but during this time if the
user presses S (upper case) nwipe would immediately complete,
having wiped no drives and requesting the user to press the
spacebar to exit. The is incorrect behaviour.
The bug doesn't appear if the user pressed S after the 3
seconds elapsed and the warning message disappeared.

This patch fixes this so that it does not exit but displays the
warning for 3 seconds and then waits for input.
2025-01-05 20:17:28 +00:00
PartialVolume
8a44ca947f Merge pull request #635 from PartialVolume/Add_font_size_toggle_to_progress_window
ShredOS specific patch to toggle font size
2025-01-04 21:35:30 +00:00
PartialVolume
270d643044 ShredOS specific patch to toggle font size
This is only relevant to ShredOS and is disabled
for other distros, as doubling font size is controlled
within the terminal or window manaegment of the distro.

When nwipe detects ShredOS it makes an additional
command available to the GUI in the drive selection window and
progress window (after the wipe has started) This command
is 'f'. Pressing the f key whether in drive selection or
progress windows will double the size of the font. Pressing 'f'
again will toggle the font size back to it's original size.

In addition and depending on whether ShredOS is detected it will
add an additional item to the help footer of both the
drive selection and progress windows. e.g. f=Font size
2025-01-04 21:30:19 +00:00
PartialVolume
618a8d6894 Merge pull request #634 from PartialVolume/Additional_fix_to_endian_code
Tidy up endian swap code
2025-01-02 17:41:52 +00:00
PartialVolume
6e4ca14770 Tidy up endian swap code
Fix missing trailing character on odd model lengths
Remove unnecessary +1 from length calculation (strlen)
Remove debug nwipe_log message
2025-01-02 17:30:04 +00:00
PartialVolume
523ebc470a Merge pull request #633 from PartialVolume/Fix_buffer_overflow
Fixes a buffer overflow
2025-01-01 23:00:49 +00:00
PartialVolume
a41d03125c Fixes a buffer overflow
Fixes a buffer overflow in the last commit. That
commit added additional model names to the endian model
swap code but did not calloc suffient storage for the
termination character.
2025-01-01 22:54:13 +00:00
PartialVolume
a9e3dd2a77 Merge pull request #630 from PartialVolume/Add_two_new_models_to_endian_switching
Fix endian for various model names on some older USB adapters
2024-12-03 22:32:16 +00:00
PartialVolume
e3dfa55356 Fix endian for model name
This patch fixes model names for Hitachi,
Toshiba, WDC Western Digital Corporation and Seagate/ST
drives when used with some USB adapters that get the
endian incorrect. Mainly older adapters.
2024-12-03 22:24:32 +00:00
PartialVolume
5bdd87f85e Merge pull request #621 from Firminator/patch-3
Update CHANGELOG.md with links to Issues
2024-10-23 13:09:11 +01:00