summaryrefslogtreecommitdiffstats
path: root/ncr-int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-27 13:47:06 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-27 13:47:06 +0200
commitc0c14cb837e6ea4a1c4ec0f8888f500c78ccdbf6 (patch)
tree82f4a723fe8c0f1e4c02e044012d4fcb1a945dee /ncr-int.h
parent81633c5ffee3806a7195258122fe8e7e337c8c54 (diff)
downloadkernel-crypto-c0c14cb837e6ea4a1c4ec0f8888f500c78ccdbf6.tar.gz
kernel-crypto-c0c14cb837e6ea4a1c4ec0f8888f500c78ccdbf6.tar.xz
kernel-crypto-c0c14cb837e6ea4a1c4ec0f8888f500c78ccdbf6.zip
Added Diffie Hellman key generation.
Diffstat (limited to 'ncr-int.h')
-rw-r--r--ncr-int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ncr-int.h b/ncr-int.h
index 03fab19a0bd..2598967c212 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -5,6 +5,7 @@
#include <asm/atomic.h>
#include "cryptodev_int.h"
#include <ncr-pk.h>
+#include <ncr-dh.h>
#define KEY_DATA_MAX_SIZE 3*1024
@@ -18,6 +19,7 @@ struct algo_properties_st {
unsigned can_sign:1;
unsigned can_digest:1;
unsigned can_encrypt:1;
+ unsigned can_kx:1; /* key exchange */
unsigned is_symmetric:1;
unsigned is_pk:1;
int digest_size;
@@ -73,6 +75,7 @@ struct key_item_st {
union {
rsa_key rsa;
dsa_key dsa;
+ dh_key dh;
} pk;
} key;