Commit Graph

959 Commits

Author SHA1 Message Date
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
PartialVolume
09d620c9c7 Update README.md
Update readme.md with the new prngs that will be available from V0.37+
2024-04-19 23:37:32 +01:00
Martijn van Brummelen
f0ed2fe7f0 Update nwipe.1
W: nwipe: wrong-manual-section 1 != 20 [usr/share/man/man1/nwipe.1.gz:1]
2024-04-16 20:11:10 +02:00
PartialVolume
9400ff5219 Merge pull request #571 from PartialVolume/Fix_conditional_jump_or_move_on_unitialised_value
Fix conditional jump on uninitialised value
2024-04-08 21:26:59 +01:00
PartialVolume
81fc479239 Fix conditional jump on unitialised value
This fixes a valgrind detected error. We check that
the number of real max sectors is greater than zero before
incrementing the value by 1. However ocassionaly the ioctl
call may not be able to obtain the dco and therefore the
ioctl data block is never populated. By zeroing the data
block prior to use and if it is not populated by the ioctl
call then the calculated real max sectors will be
zero and no increment will occur which is what we want.
2024-04-08 21:17:41 +01:00
PartialVolume
28095801ac Merge pull request #569 from AndCycle/fix_help
Add missing help for HMG IS5 enhanced
2024-04-05 12:14:54 +01:00
AndCycle
66a951722d Add missing help for HMG IS5 enhanced 2024-04-05 05:36:06 +08:00
PartialVolume
834348c8c8 Merge pull request #566 from Knogle/master
XORoshiro-256 and ALFG as default PRNG for 64-Bit and 32-Bit platforms. Also PRNG method as default method.
2024-03-28 22:09:22 +00:00
PartialVolume
e4a51c00c1 Merge pull request #565 from PartialVolume/Fix_valgrind_unconditional_jump_or_move_on_unitialised_value
Fix valgrind jump or move on unconditional value in nwipe config code
2024-03-28 17:38:21 +00:00
PartialVolume
00bcce475b Fix valgrind jump or move on unconditional 2024-03-28 17:17:19 +00:00
Fabian Druschke
0114ccf937 Fixed formatting using make format for options.c 2024-03-28 11:58:07 -03:00
Fabian Druschke
616a2ab236 Forgot nwipe_ in front of add_lagged_fibonacci, leading to compiling error 2024-03-28 11:56:54 -03:00
Fabian Druschke
e6e638c4dc Advocate for PRNG as default option, as well as XORoshiro-256 for 64-Bit systems, and Additive Lagged Fibonacci Generator for 32-Bit legacy systems 2024-03-28 11:51:47 -03:00
PartialVolume
8ad4fe200d Merge pull request #562 from Knogle/master
Fixed memory leak in line 328, writing 1 byte beyond allocated memory.
2024-03-26 21:39:28 +00:00
PartialVolume
a4ce92be6f Merge pull request #561 from PartialVolume/Update_pdf_with_xoro_and_fibonacci_prngs
Update PDF code with new PRNGs
2024-03-26 21:21:18 +00:00
PartialVolume
e851769025 Update PDF code with new PRNGs
Updated pdf to recognise XORshiro256 and
lagged Fibonacci PRNGs.
2024-03-26 21:17:23 +00:00
Fabian Druschke
c7ada53d4e Fixed memory leak in line 328, writing 1 byte beyond allocated memory. 2024-03-26 13:28:10 -03:00
PartialVolume
bb93793d7f Merge pull request #558 from Knogle/master
Renamed N and M to MT_STATE_SIZE and MT_MIDDLE_WORD due to const naming of mt19937ar-cok.h, causing conflicts with SHA-512 HMAC's libssl.
2024-03-22 01:35:17 +00:00
PartialVolume
ea386f35e7 Update gui.c with correct number of prngs 2024-03-21 22:51:31 +00:00
PartialVolume
204a82f6f0 Merge pull request #555 from Knogle/xoroshiro256
Implement XORoshiro-256 PRNG for Enhanced Random Number Generation Efficiency
2024-03-21 22:10:14 +00:00
PartialVolume
f66d838b23 Fix formatting in gui.c 2024-03-21 22:07:52 +00:00
PartialVolume
4fad31ec50 Fix a couple of formatting issues in prng.c 2024-03-21 22:03:24 +00:00
PartialVolume
0e03653ab5 Merge branch 'master' into xoroshiro256 2024-03-21 21:28:06 +00:00
Fabian Druschke
4e29f6c514 Renamed N and M to MT_STATE_SIZE and MT_MIDDLE_WORD due to const naming of mt19937ar-cok.h, causing conflicts with SHA-512 HMAC's libssl. 2024-03-21 17:28:57 -03:00
PartialVolume
d40c28bfc5 Merge pull request #556 from Knogle/fibonacci
Implemented Lagged Fibonacci generator PRNG providing high-speed, medium-quality numbers.
2024-03-21 18:49:16 +00:00
Fabian Druschke
0d0150393c Fixed stray / inside of options.c 2024-03-21 10:01:17 -03:00
Fabian Druschke
238656a5b4 Fixed leftovers from XORoshiro-256, fixed missing PRNG option in options.c 2024-03-21 05:01:10 -03:00
Fabian Druschke
a2d998d7c3 Fixed formatting 2024-03-20 17:48:55 -03:00
Fabian Druschke
a89dc8b9e9 Implemented Substract-and-Carry, now offering high-quality output. 2024-03-20 17:45:14 -03:00
Fabian Druschke
87376a0bbb Removed leftover references to AES-CTR, not belonging here. 2024-03-20 17:39:32 -03:00
Fabian Druschke
201eb565f9 Implemented Lagged Fibonacci generator PRNG providing high-speed, medium-security numbers. 2024-03-20 17:28:57 -03:00
Fabian Druschke
50bcf81ea6 Fixed src/temperature.c formatting 2024-03-19 08:25:09 -03:00
Fabian Druschke
5e532c9367 Rebased branch, fixed conflicts. Now Xoroshiro-256 in standalone branch 2024-03-19 08:24:38 -03:00
PartialVolume
cb595e139c Update README.md v0.36 2024-02-20 21:19:54 +00:00
PartialVolume
08f68f14d9 Merge pull request #549 from PartialVolume/Bump_version_to_0.36
Bump version to 0.36
2024-02-20 20:53:14 +00:00
PartialVolume
f17845c54b Updated CHANGELOG.md 2024-02-20 20:43:54 +00:00
PartialVolume
230e7f524a Bump to v0.36 2024-02-20 19:52:25 +00:00
PartialVolume
de077211e6 Merge pull request #548 from PartialVolume/Fix_some_strcpy_warnings_for_Debian
Fix some strcpy compiler warnings
2024-02-17 17:23:30 +00:00
PartialVolume
07a7c0ab0c Fix some strcpy compiler warnings
Replace three strcpy commands with strncpy,
bump minor version ready for more testing.
2024-02-17 17:00:37 +00:00
PartialVolume
2fae6ea5f5 Merge pull request #546 from PartialVolume/Determine_block_sizes_before_hidden_sector_detection
Populates device block size before hidden sector
2024-02-15 23:21:50 +00:00
PartialVolume
d6f7238cb3 Populates device block size before hidden sector
Now populates the block size (physical) before
the hidden sector determination function runs.

The naming of block/sector can be very confusing in
nwipe. So I have created a device_phy_sector_size
in the drive context, so we have

->device_sector_size // logical sector size
->device_phys_sector_size // physical sector size
->device_block_size // Usually the same as logical
size but could be increased by nwipe to encompass
multiple logical sectors, i.e a block of sectors
2024-02-15 23:11:09 +00:00
PartialVolume
c007d0f2ab Update version.c
Bump minor version from 0.35.6 to 0.35.7
2024-02-15 11:51:45 +00:00
PartialVolume
161054269c Merge pull request #543 from PartialVolume/Fix_incorrect_HS_status_for_4096_sectors_as_reported_by_libata
Fix hidden sector detection for logical 4096 size
2024-02-03 22:34:47 +00:00
PartialVolume
dd7ffab816 Fix hidden sector detection for logical 4096 size
This fixes an issue where nwipe detects a discrepancy
between the number of sectors reported by hdparm and
nwipe's own HPA/DCO functions that were reporting the
same values, using number of sectors based on 512 byte
sectors but disagreed with the number of sectors
generated from libata which was reporting the number of
sectors based on 4096 byte sectors.

This has been fixed by always calculating the number
of sectors returned by libata using 512 bytes per sector
so a direct comparison can be made to data from hdparm
& nwipe's HPA/DCO functions.
2024-02-03 20:20:39 +00:00
PartialVolume
9edebde20d Merge pull request #538 from PartialVolume/Make_footer_text_more_informative_at_end_of_all_wipes
Make completion footer more informative
2023-12-20 21:10:34 +00:00
PartialVolume
807eed0ffc Make completion footer more informative
These changes solve three issues. The first
issue was that it wasn't obvious that the
PDFs are only created once you press return
to exit after all the wipes have finished. It
is now explicitly stated in the footer message if
PDFs are enabled.

It also now specifies the logfile name on the
footer if the user has specified a log file as a
command line option. If no logfile is specified
then STDOUT is displayed.

If the user specified --PDFreportpath=noPDF on the
command line, prior to this commit it had no affect.
This is now fixed so that it disables PDF's irrespective
of what is in nwipe.conf. i.e command line options
override the entries in nwipe.conf

If the user has specified a --PDFreportpath=noPDF=/some/path
then PDF's are enabled irrespective of the value in nwipe.conf
2023-12-20 20:53:43 +00:00
PartialVolume
78f3a26795 Merge pull request #536 from PartialVolume/Bump_minor_version
Bump version from 0.35.3 to 0.35.4
2023-12-16 19:14:47 +00:00
PartialVolume
dbe7103fe9 Bump version from 0.35.3 to 0.35.4 2023-12-16 19:12:23 +00:00
PartialVolume
eef25e829e Merge pull request #535 from PartialVolume/Fix_incorrect_footer_on_return_to_preview
Fix incorrect footer on return to preview
2023-12-16 18:57:59 +00:00