@@ -916,5 +916,6 @@ struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y);
struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
const u8 *key, size_t len);
void crypto_ecdh_deinit(struct crypto_ecdh *ecdh);
+size_t crypto_ecdh_prime_len(struct crypto_ecdh *ecdh);
#endif /* CRYPTO_H */
@@ -2168,4 +2168,8 @@ void crypto_ecdh_deinit(struct crypto_ecdh *ecdh)
}
}
+size_t crypto_ecdh_prime_len(struct crypto_ecdh *ecdh)
+{
+ return crypto_ec_prime_len(ecdh->ec);
+}
#endif /* CONFIG_ECC */
@@ -1834,4 +1834,8 @@ fail:
goto done;
}
+size_t crypto_ecdh_prime_len(struct crypto_ecdh *ecdh)
+{
+ return crypto_ec_prime_len(ecdh->ec);
+}
#endif /* CONFIG_ECC */
Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- src/crypto/crypto.h | 1 + src/crypto/crypto_openssl.c | 4 ++++ src/crypto/crypto_wolfssl.c | 4 ++++ 3 files changed, 9 insertions(+)