diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-27 16:43:11 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-27 16:43:11 +0200 |
commit | 9a2369d426b23f77884b01666370140d10b41c19 (patch) | |
tree | 075830ece81547905f07cf77a68fa4071bab1ef9 /ncr-dh.h | |
parent | 3e9e7a872a76e085499b15089e16ad8c3a2d68fd (diff) | |
download | cryptodev-linux-9a2369d426b23f77884b01666370140d10b41c19.tar.gz cryptodev-linux-9a2369d426b23f77884b01666370140d10b41c19.tar.xz cryptodev-linux-9a2369d426b23f77884b01666370140d10b41c19.zip |
Implemented Diffie Hellman Key exchange.
Diffstat (limited to 'ncr-dh.h')
-rw-r--r-- | ncr-dh.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -16,6 +16,10 @@ int dh_import_params(dh_key * key, uint8_t* p, size_t p_size, uint8_t* g, size_t void dh_free(dh_key * key); int dh_generate_public(dh_key * public, dh_key* private); -int dh_export(uint8_t *out, size_t *outlen, int type, dh_key *key); +int dh_export(uint8_t *out, unsigned long *outlen, int type, dh_key *key); int dh_import(const uint8_t *in, size_t inlen, dh_key *key); + +int dh_derive_gxy(struct key_item_st* newkey, dh_key * key, + void* pk, size_t pk_size); + #endif |