commit | 168ed65483a1777c2570f4c0a4a64e20a823cf25 | [log] [tgz] |
---|---|---|
author | Tudor Ambarus <tudor.ambarus@microchip.com> | Thu Sep 28 17:14:54 2017 +0300 |
committer | Marcel Holtmann <marcel@holtmann.org> | Fri Oct 06 20:35:47 2017 +0200 |
tree | f172be688f1c1b396c8646dcf0c604c86a7cb0ec | |
parent | 3814baf3f2473226e479fc1f4f48d01de2ce0a7b [diff] |
Bluetooth: ecdh_helper - fix leak of private key tmp buffer contains the swapped private key. In case the setkey call failed, the tmp buffer was freed without clearing the private key. Zeroize the temporary buffer so we don't leak the private key. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>