Debian Codegraph @

test/cryptounittest/README

raw
1 This tests are meant to ensure that all functions of aircrack-ng where
2 OpenSSL code is used [1] perform exactly the same (same input=>same output)
3 when running with OpenSSL or with the alternative crypto (Libgcrypt+sha1-git)
4
5
6 To run the tests with OpenSSL (useful for ensuring that the tests are still valid):
7 make clean && make check
8
9 To run the tests with Libgcrypt+sha1-git:
10 make clean && make check gcrypt=true
11
12 To check for memory leaks:
13 cd test/cryptounittest; make clean && make valgrind gcrypt=true
14
15
16 Return value: Each one of the tests, when successful return zero, and when failed
17 return the number of tests (>0) failed. The "make check" target will
18 fail if any of the tests return non-zero.
19
20
21 [1] This are 4 functions of crypto.c {encrypt_wep,calc_pmk,calc_mic,calc_ptk}
22 And 1 function of sha1-see2.h {calc_4pmk}
23
24 -----------------------------------------------------------------------------
25 [TEST] file:testedfunction ->
26 usedbyfile:function
27
28 [test-encrypt-wep.c] crypto.c:encrypt_wep ->
29 airbase-ng.c:encrypt_data
30 airbase-ng.c:getCompleteFrag
31 airtun-ng.c:packet_xmit
32 airtun-ng.c:getCompleteFrag
33 tkiptun-ng.c:do_attack_tkipchop
34
35 [test-calc-pmk.c] crypto.c:calc_pmk ->
36 aircrack-ng.c:crack_wpa_thread
37
38 [test-calc-mic.c] crypto.c:calc_mic ->
39 aircrack-ng.c:sql_wpacallback
40
41 [test-calc-ptk.c] crypto.c:calc_ptk ->
42 airdecap-ng.c:main
43 tkiptun-ng.c:main
44
45 [test-decrypt-ccmp.c] crypto.c:decrypt_ccmp ->
46 airdecap-ng.c:main (wpa-v2)
47
48 [test-calc-4pmk.c] sha1-see2.h:calc_4pmk ->
49 aircrack-ng.c:crack_wpa_thread