wiire-a
dbb70b14be
Removed Android.mk
...
The standard Makefile can be used for cross-compilation anyway.
2018-01-03 15:21:02 +01:00
wiire-a
9e7ba19ee9
Removed useless include
...
Not needed anymore since we've moved away from libtommath.c.
2018-01-01 17:36:18 +01:00
rofl0r
a07ebfb376
tomsfastmath: further size optimizations
...
sources list created via
make clean ; make CC=gcc LDFLAGS="-Wl,--gc-sections" CFLAGS="-O -ffunction-sections"
readelf -a pixiewps | grep '\.c' | awk '{print "./" $8 " \\"}' > tfm_used.txt
and some manual cleanups.
2018-01-01 17:26:55 +01:00
rofl0r
2b229ba129
tomsfastmath: prefer size over speed
...
we can disable highly optimized mul/sqr operations for about 30% speed
decrease but saving a lot in binary size.
only build the files necessary by including an explicit list of filenames
rather than doing a wildcard over tfm/*.c.
2018-01-01 17:26:55 +01:00
rofl0r
6985cff7b5
tomfastmath: fix compile with tinycc
...
compiling with tinycc, we get:
fp_montgomery_reduce.c:510: error: invalid clobber register '%rax'
disabling asm pulls in a couple new files, adding them too.
2018-01-01 17:26:55 +01:00
rofl0r
d8e7bba357
use tomsfastmath instead of tommath hack from wpa_supplicant
...
using latest git version from https://github.com/libtom/tomsfastmath
2018-01-01 17:26:55 +01:00
wiire-a
7576a68717
Fixed UB due to int promotion before shifting of u8 values
...
Added casts to u32 for 'rcons' and 'Td4s' which are of type uint8_t*, so their elements, before being shifted, are promoted to int (not to unsigned int) unless explicitly casted, due to integer promotion rules of the C language.
This caused the "left shift of * by 24 places cannot be represented in type 'int'" error when compiling with GCC's -fsanitize=undefined.
The code is from an old version of wpa_supplicant/hostapd.
2017-12-31 12:43:24 +01:00
wiire-a
6438a9cf29
Fixed struct ie_vtag misalignment access due to not packed struct
...
This struct must be packed (no padding).
Found with GCC's -fsanitize=undefined.
2017-12-31 11:37:59 +01:00
wiire-a
2fd91f919c
Removed typedef with _t suffix
...
*_t naming convention is reserved for POSIX types
2017-12-31 10:34:53 +01:00
wiire-a
07392b96fd
Simplified internal logic on supplied args
...
Also added possibility to avoid --authkey if known static PKe is used, in which case --r-nonce and --e-bssid must be supplied.
2017-12-30 21:11:10 +01:00
wiire-a
2c8bf618b6
Fixed segfault when -a is not supplied
...
This is a quick fix. The code should be refactored and the logic adjusted.
2017-12-30 18:01:27 +01:00
wiire-a
9304e82888
Fixed leak if one hash is not supplied
2017-12-30 14:32:59 +01:00
wiire-a
68f72d5d18
Updated .gitignore
2017-12-27 12:30:38 +01:00
wiire-a
5670f8ce0e
Use internal flags in Makefile
...
So one can safely override CFLAGS, CPPFLAGS and LDFLAGS
E.g. make CFLAGS=-Os OPENSSL=1
2017-12-27 12:25:58 +01:00
wiire-a
a2f11824bc
Updated Makefile
2017-12-27 12:20:59 +01:00
wiire-a
d95bf76f33
Removed boilerplate from mbedtls sources
2017-12-27 11:57:31 +01:00
wiire-a
9a69827c41
Fixed broken links in README
2017-12-26 11:09:06 +01:00
wiire-a
80d8d4cae5
Updated README
2017-12-26 11:04:03 +01:00
wiire-a
fa4b514369
Moved Makefile to top dir
...
Also added the installation of the man page.
2017-12-24 16:05:29 +00:00
wiire-a
7ae30e8a08
Removed useless check for PKe
2017-12-23 20:04:08 +01:00
wiire-a
a52de0d335
Cosmetic changes
2017-12-23 20:00:16 +01:00
wiire-a
a55f17b77a
Removed useless constant
2017-12-23 17:06:06 +01:00
wiire-a
35b3fb030f
Always recover N1 seed for mode 1
...
It's basically costless anyway.
2017-12-23 16:38:25 +01:00
wiire-a
9766d03983
Renamed function
2017-12-22 12:20:25 +01:00
wiire-a
801f1b1605
Get elapsed time in a proper way
2017-12-22 12:04:11 +01:00
wiire-a
58e04d5aa0
Removed useless RT bruteforce
...
No need to bruteforce the nonce to get the LFSR state.
Credits to @1yura.
2017-12-21 20:27:27 +01:00
wiire-a
77fde24c14
Small performance improvement on MIPS
2017-12-20 22:16:21 +01:00
wiire-a
da5f0f436f
Removed uninstall target from Makefile
2017-12-20 19:16:36 +01:00
wiire-a
8807357127
Cosmetic changes
2017-12-20 19:15:07 +01:00
wiire-a
0eb8050d6c
Reorganized auto mode logic
2017-12-20 12:32:40 +01:00
wiire-a
57e3309cfe
Fixed wrong termination condition with mode 2
2017-12-19 23:48:08 +01:00
wiire-a
6e60c990f5
Removed redundant check for PIN found
2017-12-19 19:46:42 +01:00
wiire-a
86292d5f89
Removed unnecessary check for Enrollee nonce
2017-12-19 19:38:49 +01:00
wiire-a
fb139003e9
Updated CHANGELOG
2017-12-07 16:59:41 +01:00
wiire-a
d4562fe424
Fixed display of seeds for mode 3
...
The seeds were always printed even if there wasn't need to bruteforce
the state of the PRNG:
[*] Seed N1: 0 (01/01/70 00:00:00 UTC)
[*] Seed
ES1: 0 (01/01/70 00:00:00 UTC)
[*] Seed ES2: 0 (01/01/70 00:00:00
UTC)
Correct:
[*] Seed N1: -
[*] Seed ES1: -
[*] Seed ES2:
-
Introduced in (6082da8).
2017-12-07 14:01:07 +01:00
wiire-a
19def8c4d8
Removed OpenWrt Makefile
...
The package is now available in the official OpenWrt repository.
2017-12-05 11:46:38 +01:00
wiire-a
d6e760af7b
Bumped version to 1.4.1
v1.4.1
2017-12-04 14:11:31 +01:00
rofl0r
ef28cc6331
fix segfault in -7 mode
...
regression since ef4eaffd57d939f49d2b0c02506872278baf039c
found by @binarymaster
2017-12-04 13:07:11 +01:00
wiire-a
cb38f8f97c
Bumped version to 1.4
v1.4
2017-12-04 00:18:16 +01:00
wiire-a
72de3759ed
Fixed compilation on FreeBSD and macOS
2017-12-03 23:42:40 +01:00
wiire-a
fd21867311
Cosmetic changes
2017-12-03 21:18:02 +01:00
wiire-a
3d4d56ed0b
Fixed Makefile install
2017-12-03 21:06:38 +01:00
wiire-a
267d1fbabc
Changed install PREFIX to /usr/local
2017-12-03 21:05:23 +01:00
wiire-a
0faeec22c5
Fixed more warnings
2017-12-03 15:39:39 +01:00
wiire-a
a8223acb31
Added missing free
2017-12-03 15:21:23 +01:00
wiire-a
533070ae47
Fixed a few warnings
2017-12-03 15:02:19 +01:00
wiire-a
d6dab00354
Updated CHANGELOG
2017-12-02 12:58:27 +01:00
wiire-a
65eb2788a8
Added CHANGELOG
2017-12-02 01:41:12 +01:00
wiire-a
6040be0b0a
Updated README
2017-12-02 01:30:31 +01:00
wiire-a
dfdc7c7717
Performance improvements in new PRNG
2017-12-02 01:19:18 +01:00