Commit Graph

58 Commits

Author SHA1 Message Date
Patrick Siegl
ba0f6de777 Reworked the readData() to get closer to processBytes() 2020-04-15 20:23:03 +02:00
Patrick Siegl
0561fba738 Remove unrequired bytesWritten 2020-04-15 19:39:28 +02:00
Patrick Siegl
11ebee47f1 Fix: in case all if-statements in processBytes were not taken, the routine needs to return 0, *bytesWritten has an old value, that is no more true 2020-04-15 19:31:23 +02:00
Patrick Siegl
1b48e0c5b9 BytesGiven is part of keccak only 2020-04-15 19:29:31 +02:00
Patrick Siegl
4a09610d50 Moved processBytes() closer to readData(), as only readData() is using this function 2020-04-15 18:23:02 +02:00
Patrick Siegl
e77e1b7810 Removed unrequired header definitions 2020-04-15 18:21:53 +02:00
Patrick Siegl
9483bbd463 Work on bytes instead of bits 2019-04-01 23:19:22 +02:00
Patrick Siegl
3f12964521 Added missing ftdi_usb_close() 2019-04-01 00:08:24 +02:00
Patrick Siegl
de7b6be8fd sprintf() in not a buffer, could create any issue 2019-03-31 23:49:26 +02:00
Patrick Siegl
40fa7d4c2e Check for superuser not required 2019-03-31 23:34:28 +02:00
Patrick Siegl
2cae70f63e Fix when no device available 2019-03-31 23:25:15 +02:00
Patrick Siegl
1ca054ed7e Recursive listUSBdev.() 2019-03-31 22:58:26 +02:00
Patrick Siegl
1dee982ba0 ftdi_usb_find_all() requires a free() 2019-03-28 22:19:02 +01:00
Manuel Domke
0cd6018709 Merge branch 'master' into cleanup 2019-03-27 22:16:01 +01:00
Patrick Siegl
3cfcbd94d7 Feature: clean shutdown 2019-03-27 21:41:17 +01:00
Patrick Siegl
aca57dcf65 Specify lenght of output array explicitly 2019-03-24 22:06:11 +01:00
Patrick Siegl
03e4f0848c use sizeof() in libinfnoise 2019-03-24 22:00:53 +01:00
Patrick Siegl
314fa9e376 No need for an if in the for-loop 2019-03-21 23:33:06 +01:00
Patrick Siegl
a457b72372 minor adjustments to tmp. variables 2019-03-21 22:54:54 +01:00
Patrick Siegl
20b1731d61 Since rc < 0 break already away, no further >= 0 check required 2019-03-21 22:45:48 +01:00
Patrick Siegl
b97824e916 Fix for description in infnoise_dev_node; write struct directly 2019-03-20 22:23:08 +01:00
Patrick Siegl
fdfcce7020 Improve code quality 2019-03-20 22:05:54 +01:00
Manuel Domke
154fe4a67c fix #15: return actual bytes written from readData() 2019-01-13 18:02:54 +01:00
Manuel Domke
dc2a0f382c optimize buffer size when multiplier <= 2 2018-09-07 10:57:17 +02:00
Manuel Domke
450a84a31e fix buffer size for raw mode & error handling when no device is connected 2018-09-07 10:41:52 +02:00
Manuel Domke
d7d799d8a9 initialize infnoise_context properly 2018-09-05 12:51:38 +02:00
Manuel Domke
6ee69929d0 add todo for buggy error message 2018-09-03 18:17:47 +02:00
Manuel Domke
385ff3ce4e Merge branch 'master' into libinfnoise 2018-09-03 18:11:35 +02:00
Manuel Domke
9b9822bab7 cleanup 2018-09-03 17:57:17 +02:00
Manuel Domke
71df49d7bf next big step completed: fixed keccak multiplicator and --dev-random mode after libinfnoise refactoring (interface changed!) 2018-08-27 17:48:27 +02:00
Manuel Domke
25605e673e fix --dev-random mode (multipliers still buggy) 2018-08-15 17:21:59 +02:00
Manuel Domke
9529afcd67 remove debug 2018-08-11 23:33:48 +02:00
Manuel Domke
9f241bcd27 remove debug messages 2018-08-11 23:29:34 +02:00
Manuel Domke
8a930f2783 fix buffer size for multiplier mode 2018-08-11 23:16:50 +02:00
Manuel Domke
2b31329ac6 fix --list-devices 2018-07-27 09:09:29 +02:00
Manuel Domke
15abb6571f reformat code, many fixes, still some bugs (--dev-random with multiplier behaves very strange) 2018-07-26 18:21:04 +02:00
Manuel Domke
6d832f1b12 fix --list-devices (still buggy, but works!) 2018-07-26 13:15:30 +02:00
Manuel Domke
e380194881 untested fix for --list-devices (no device at hand to test right now..) 2018-07-26 09:20:35 +02:00
Manuel Domke
773cf01575 finish infnoise_context & start work on listUSBDevices (to return a device list struct) 2018-07-24 18:51:21 +02:00
Manuel Domke
7b1f6a7965 instroduce infnoise_context struct 2018-07-24 09:50:26 +02:00
Manuel Domke
4dcf1d81dd refactored outputBytes (/dev/random not working yet) 2018-07-17 17:12:33 +02:00
Manuel Domke
e674b38c76 first step to clean up libinfnoise 2018-07-17 13:34:34 +02:00
Dirk-Willem van Gulik
2683ab471f Quell git warnings about compiled files, make output of the --list-devices command more readable when we have multiple devices inserted. 2018-07-11 14:10:34 +02:00
Dirk-Willem van Gulik
20fb5173a9 Minor tweaks to make OSX and FreeBSD and other BSD variants work. 2018-07-11 13:04:13 +02:00
Manuel Domke
379c40f367 Merge pull request #1 from psiegl/master
Update support for ArchLinux
2018-07-08 00:59:25 +02:00
Dylan McNamee
a245711014 Mac error message on unable to open device. Clean target in Makefile, removed ldconfig for macos 2018-07-06 09:25:56 -07:00
Dylan McNamee
b472549e15 Minor changes to get it working on macOS 2018-07-05 18:18:57 -07:00
Patrick Siegl
2cc4d4027e Revert "Further missing include"
This reverts commit cc546aa912.
2018-06-27 22:07:50 -04:00
Patrick Siegl
cc546aa912 Further missing include 2018-06-27 22:05:53 -04:00
Patrick Siegl
fb7fc3eeef Added missing include 2018-06-27 22:03:27 -04:00