3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-03-10 12:50:39 +01:00
Denis Kenzior ff319b8234 crypto: Fix valgrind warning
==40686== Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s)
==40686==    at 0x5147037: sendmsg (in /usr/lib64/libc-2.24.so)
==40686==    by 0x43957C: operate_cipher (cipher.c:354)
==40686==    by 0x439C18: l_cipher_decrypt (cipher.c:415)
==40686==    by 0x40FAB8: arc4_skip (crypto.c:181)

Initialize the skip buffer to 0s.  This isn't strictly necessary, but
hides the above valgrind warning.

The aim of arc4 skip is simply to seed some data into the RC4 cipher so
it makes it harder for the attacker to decrypt.  This 'initialization'
doesn't really care what data is fed.
2017-06-06 13:33:08 -05:00
..
2016-06-10 09:26:56 -05:00
2016-06-08 11:08:10 -05:00
2016-06-08 11:08:10 -05:00
2017-06-06 13:33:08 -05:00
2017-04-17 14:24:02 -05:00
2016-11-03 22:19:46 -05:00
2016-12-14 22:56:56 -06:00
2017-05-15 15:23:03 -05:00
2017-02-01 10:02:14 -06:00
2017-02-01 10:02:14 -06:00
2016-10-24 11:10:26 -05:00
2017-05-11 19:50:05 -05:00
2016-09-21 16:20:09 -05:00
2016-07-20 15:29:39 -05:00
2016-06-10 09:59:59 -05:00
2016-06-10 09:59:59 -05:00
2017-02-21 16:45:41 -06:00
2016-09-22 15:28:29 -05:00
2016-09-22 15:28:29 -05:00
2017-05-19 10:01:53 -05:00
2017-05-19 10:01:53 -05:00
2016-09-13 14:53:30 -05:00
2017-02-17 12:27:13 -06:00
2017-02-17 12:27:13 -06:00