Sean Parkinson
385dd7189a
wolfSSL: Use wolfSSL memory allocation in dh5_init()
...
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 13:32:51 +03:00
Sean Parkinson
fc5e88e3ea
wolfSSL: Changes for memory allocation failure testing
...
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 13:32:51 +03:00
Sean Parkinson
06657d3166
wolfSSL: Fix crypto_hash_init() memory clearing
...
Explicitly clear the allocated memory to avoid uninitialized data in
struct crypto_hash.
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 13:32:51 +03:00
Sean Parkinson
d396057109
wolfSSL: Fix crypto_ec_point_y_sqr()
...
Use the correct intermediate result from mp_sqrmod() in the following
mp_mulmod() call (t is not initialized here; it is used only after this
step).
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 13:32:51 +03:00
Sean Parkinson
e3501ac18f
wolfSSL: Fix crypto_ec_point_solve_y_coord()
...
Provide full uncompressed DER data length to wc_ecc_import_point_der()
even though a compressed form is used here. In addition, use
ECC_POINT_COMP_* defined values to make this more readable.
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 13:32:51 +03:00
Sean Parkinson
187ad3a303
wolfSSL: Add crypto_ecdh_*()
...
Implement the wrapper functions for ECDH operations.
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 13:32:49 +03:00
Sean Parkinson
3d2f638d61
wolfSSL: Use new digest namespace
...
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-05-02 12:04:46 +03:00
Sean Parkinson
fec03f9838
Add support for wolfSSL cryptographic library
...
Allow hostapd/wpa_supplicant to be compiled with the wolfSSL
cryptography and TLS library.
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
2018-03-03 11:52:40 +02:00