diff options
author | Martin Willi <martin@revosec.ch> | 2010-09-03 09:32:18 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-09-03 09:33:15 +0200 |
commit | ed60dfa14fa48e5edb5f99e5423c3cd5549d08f0 (patch) | |
tree | 3f3463c3788b186b8c9f4e9cf7fac662ecc6e24a /src/libstrongswan/plugins/gcrypt/gcrypt_dh.h | |
parent | 42b1ac91c4240a481eccaad0d1596432c4f01181 (diff) | |
download | strongswan-ed60dfa14fa48e5edb5f99e5423c3cd5549d08f0.tar.bz2 strongswan-ed60dfa14fa48e5edb5f99e5423c3cd5549d08f0.tar.xz |
Added support for MODP_CUSTOM to gcrypt plugin
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt/gcrypt_dh.h')
-rw-r--r-- | src/libstrongswan/plugins/gcrypt/gcrypt_dh.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_dh.h b/src/libstrongswan/plugins/gcrypt/gcrypt_dh.h index 95b68dcd0..a70958dc4 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_dh.h +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_dh.h @@ -44,5 +44,16 @@ struct gcrypt_dh_t { */ gcrypt_dh_t *gcrypt_dh_create(diffie_hellman_group_t group); +/** + * Creates a new gcrypt_dh_t object for MODP_CUSTOM. + * + * @param group MODP_CUSTOM + * @param g generator + * @param p prime + * @return gcrypt_dh_t object, NULL if not supported + */ +gcrypt_dh_t *gcrypt_dh_create_custom(diffie_hellman_group_t group, + chunk_t g, chunk_t p); + #endif /** GCRYPT_DH_H_ @}*/ |