summaryrefslogtreecommitdiffstats
path: root/ncr-dh.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-27 16:43:11 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-27 16:43:11 +0200
commit9a2369d426b23f77884b01666370140d10b41c19 (patch)
tree075830ece81547905f07cf77a68fa4071bab1ef9 /ncr-dh.h
parent3e9e7a872a76e085499b15089e16ad8c3a2d68fd (diff)
downloadcryptodev-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ncr-dh.h b/ncr-dh.h
index ba7a92b..cc45d32 100644
--- a/ncr-dh.h
+++ b/ncr-dh.h
@@ -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