Use ECDSA to sign ECDH key exchange for UDP session keys.

The ECDSA public keys will also be included in the ANS_KEY requests,
but are only used when no ECDSA public key is known yet.
This commit is contained in:
Guus Sliepen 2011-07-16 20:21:44 +02:00
parent 03ac48ea19
commit cff27a258f
11 changed files with 116 additions and 17 deletions

View file

@ -29,5 +29,6 @@ typedef EC_KEY *ecdh_t;
extern bool ecdh_generate_public(ecdh_t *ecdh, void *pubkey);
extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared);
extern void ecdh_free(ecdh_t *ecdh);
#endif