OpenSSL: Add wrapper functions for ECDH
These allow ECDH to be used with compressed public key encoding (only x-coordinate). This is needed for FILS PFS and OWE. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
3d745aa7cb
commit
ae1ec1aaf2
2 changed files with 247 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Wrapper functions for crypto libraries
|
||||
* Copyright (c) 2004-2013, Jouni Malinen <j@w1.fi>
|
||||
* Copyright (c) 2004-2017, Jouni Malinen <j@w1.fi>
|
||||
*
|
||||
* This software may be distributed under the terms of the BSD license.
|
||||
* See README for more details.
|
||||
|
@ -832,4 +832,12 @@ int crypto_ec_point_cmp(const struct crypto_ec *e,
|
|||
const struct crypto_ec_point *a,
|
||||
const struct crypto_ec_point *b);
|
||||
|
||||
struct crypto_ecdh;
|
||||
|
||||
struct crypto_ecdh * crypto_ecdh_init(int group);
|
||||
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);
|
||||
|
||||
#endif /* CRYPTO_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue