mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
crypto/ecc: supports exporting generated keys in uncompressed form
Export public keys as separate X and Y coordinates for uncompressed format. Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
@@ -76,6 +76,10 @@ extern "C"
|
||||
int ecc_make_key(uint8_t publickey[ECC_BYTES + 1],
|
||||
uint8_t privatekey[ECC_BYTES]);
|
||||
|
||||
int ecc_make_key_uncomp(uint8_t publickey_x[ECC_BYTES],
|
||||
uint8_t publickey_y[ECC_BYTES],
|
||||
uint8_t privatekey[ECC_BYTES]);
|
||||
|
||||
/* ecdh_shared_secret() function.
|
||||
* Compute a shared secret given your secret key and someone else's
|
||||
* public key.
|
||||
|
||||
Reference in New Issue
Block a user