Commit Graph

1007 Commits

Author SHA1 Message Date
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
Firminator
3846e1e1aa Update CHANGELOG.md with links to Issues 2024-10-22 23:00:25 -04:00
PartialVolume
c7155bf514 Update version.c
Bump minor version from 0.37.1 to 0.37.2
2024-09-14 13:37:36 +01:00
PartialVolume
deaae2b9c1 Merge pull request #607 from PartialVolume/Fix_SAS_HS2
Remove hidden sector check for SAS
2024-09-14 13:35:54 +01:00
PartialVolume
1691abdb0b Remove hidden sector check for SAS 2024-09-14 13:24:05 +01:00
PartialVolume
c837e943d7 Merge pull request #606 from PartialVolume/Add_new_search_location_for_hdparm_and_smartctl
Add a new search location when looking for hdparm and smartctl.
2024-09-13 22:08:33 +01:00
PartialVolume
5506c76b65 Add a new search location when looking for
hdparm and smartctl.

The new search location is /usr/sbin/. Previously
we searched /sbin/ and /usr/bin/ but /sbin is symbolically linked
to /usr/sbin/ so just in case there was some issue with the
symbolic link we also now search /usr/sbin/
2024-09-13 21:57:31 +01:00
PartialVolume
53383285de Update version.c
Bumped minor version from 0.37 to 0.37.1
2024-09-12 22:14:11 +01:00
PartialVolume
8a93e8856d Merge pull request #605 from PartialVolume/Fix_SAS_HPA-DCO
Fixes a issue where SAS drives always respond with hidden sectors = ??? , i.e a warning.
2024-09-12 21:34:54 +01:00
PartialVolume
0fbc1ab991 Fixes a issue where SAS drives always respond
with hidden sectors = ???, i.e warning. This
patch fixes the problem so that a SAS drive
responds with hidden sectors = not applicable.
A SATA drive connected to a SAS interface should
still respond with yes or no subject to the
interface passing HPA and DCO-identify commands.
2024-09-12 21:28:37 +01:00
PartialVolume
710478d6fd Merge pull request #602 from FreeMinded/master
Fix typo in create_pdf.c
2024-09-10 19:11:23 +01:00
Pascal Mages
1511791a25 Update create_pdf.c
Fix mini typo on PRNG algorithm
2024-09-10 17:39:58 +02:00
PartialVolume
f250aee28d Merge pull request #598 from Knogle/poc-xoroshiro
Added XORoshiro-256 PRNG implementation paper and README with detailed behaviour
2024-09-07 10:36:34 +01:00
Fabian Druschke
afdbdb7ee8 Added XORoshiro-256 PRNG implementation paper and README with detailed analysis and usage instructions. 2024-09-06 23:31:34 +02:00
Fab
4278f69640 #590: Documentation: Update Readme.md with information regarding ssd media (#597)
* #587 Introduction to SSD wipe

Added information to readme.md regarding the lack of clarity about SSD wiping.

* #587

* Added guide for SSD

* Update README.md

Extended the disclaimer regarding SSD Wipe and fixed two typos

* ssd-guide compatibility note update

Added information regarding Samsung SATA SSD compatibility to sanitize command

* Added Solidigm compatibility for sata sanitize

* formatting (no content change)

* Added .DS_Store to gitignore

Added .DS_Store due for development on mac clients.

* Update ssd-guide.md

Added clarity regarding risks of incomplete sanitization of disks due to intransparency of vendor tools.
2024-09-06 13:08:56 +01:00
PartialVolume
2e6ce1630d Merge pull request #589 from PartialVolume/toggle_font_size
toggle font size for tty terminal based use with d key. Not relevant for xorg/wayland based use.
2024-08-21 22:20:57 +01:00
PartialVolume
c024addd93 If nwipe used within ShredOS, the d key will toggle the font size, has no action for other distributions 2024-08-21 22:15:40 +01:00
PartialVolume
d1edd0570a Merge pull request #588 from Knogle/patch-5
fix type error on i686 - uint64_t, by @xambroz
2024-08-19 23:14:58 +01:00
Fabian Druschke
af41c9739f fix type error on i686 - uint64_t, by @xambroz 2024-08-19 21:04:11 +02:00
PartialVolume
97deed81db Merge pull request #581 from Awire9966/patch-1
Added DiskDump
2024-05-28 21:55:53 +01:00
Andrew Cavallo
ddc63538b7 Update README.md 2024-05-27 22:11:02 -04:00
PartialVolume
28271712db Update CHANGELOG.md v0.37 2024-05-10 20:08:28 +01:00
PartialVolume
ef312ff90d Merge pull request #577 from PartialVolume/change_nwipe.1_to_nwipe.8
Request change man/nwipe.1 to man/nwipe.8
2024-05-10 19:59:04 +01:00
PartialVolume
6d6b7ac8c1 Request change man/nwipe.1 to man/nwipe.8
Manpage is named nwipe.1 which would be correct but manpage
contains section 8 which forms a mismatch(warning) in Debian.

# Man sections
1   Executable programs or shell commands
2   System calls (functions provided by the kernel)
3   Library calls (functions within program libraries)
4   Special files (usually found in /dev)
5   File formats and conventions, e.g. /etc/passwd
6   Games
7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7), man-pages(7)
8   System administration commands (usually only for root)
9   Kernel routines [Non standard]

(requested by MvB)
2024-05-10 19:32:36 +01:00
PartialVolume
5140f92077 Merge pull request #576 from PartialVolume/master
Update CHANGELOG.md
2024-05-08 22:04:05 +01:00
PartialVolume
4893fa7ea0 Update CHANGELOG.md 2024-05-08 22:00:34 +01:00
PartialVolume
b83423a424 Merge pull request #575 from PartialVolume/bump_to_0.37
Bump to v0.37
2024-05-08 21:37:09 +01:00
PartialVolume
4394f24245 Bump to v0.37 2024-05-08 21:31:53 +01:00
PartialVolume
1ae76b5774 Merge pull request #574 from Polynomial-C/configure_ac_fix
configure.ac: Fix check for parted
2024-05-06 23:15:31 +01:00
Lars Wendler
fca8937f26 configure.ac: Fix check for parted
PKG_CHECK_MODULES needs all modules in a single list or else the following
error message appears during configure run:

  ./configure: 6807: libconfig: not found

because the macro interprets "[libconfig]" as the action that needs to be
done if parted was found.

Removed superfluous check for libconfig as requested by PartialVolume
2024-05-06 19:34:02 +02:00