summaryrefslogtreecommitdiffstats
path: root/ncr-dh.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-06 17:18:08 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-06 17:18:41 +0200
commit943f9ab50c110133a5cd1118b5b19cb09301168f (patch)
tree1cef7570d78539ad84de9ce81debb4dc12188df5 /ncr-dh.h
parentdf05d27b761295820f3b13ec31c67c0ab0198bfc (diff)
downloadcryptodev-linux-943f9ab50c110133a5cd1118b5b19cb09301168f.tar.gz
cryptodev-linux-943f9ab50c110133a5cd1118b5b19cb09301168f.tar.xz
cryptodev-linux-943f9ab50c110133a5cd1118b5b19cb09301168f.zip
run scripts/Lindent.
Diffstat (limited to 'ncr-dh.h')
-rw-r--r--ncr-dh.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/ncr-dh.h b/ncr-dh.h
index 183f790..a185871 100644
--- a/ncr-dh.h
+++ b/ncr-dh.h
@@ -4,24 +4,25 @@
#include <tomcrypt.h>
typedef struct {
- int type; /* PK_PRIVATE or PK_PUBLIC */
+ int type; /* PK_PRIVATE or PK_PUBLIC */
mp_int p;
mp_int g;
- mp_int x; /* private */
- mp_int y; /* public: y=g^x */
+ mp_int x; /* private */
+ mp_int y; /* public: y=g^x */
} dh_key;
int dh_generate_key(dh_key * key);
-int dh_import_params(dh_key * key, uint8_t* p, size_t p_size, uint8_t* g, size_t g_size);
+int dh_import_params(dh_key * key, uint8_t * p, size_t p_size, uint8_t * g,
+ size_t g_size);
void dh_free(dh_key * key);
-int dh_generate_public(dh_key * public, dh_key* private);
+int dh_generate_public(dh_key * public, dh_key * private);
-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_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);
+int dh_derive_gxy(struct key_item_st *newkey, dh_key * key,
+ void *pk, size_t pk_size);
-int ncr_pk_get_dh_size( dh_key* key);
+int ncr_pk_get_dh_size(dh_key * key);
#endif