diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-07-26 11:32:22 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-08-10 14:22:00 +0200 |
commit | 393688aea0dbdf3fcdc09912e37e916a9ea10be0 (patch) | |
tree | b0f7fe333baf7f29130ded176adf559d39cebd4c /src/libstrongswan/crypto/diffie_hellman.c | |
parent | 1fddb0b92ef2e4ee4fb23da2c4badc70620df1dc (diff) | |
download | strongswan-393688aea0dbdf3fcdc09912e37e916a9ea10be0.tar.bz2 strongswan-393688aea0dbdf3fcdc09912e37e916a9ea10be0.tar.xz |
Created newhope plugin implementing the New Hope key exchange algorithm
Diffstat (limited to 'src/libstrongswan/crypto/diffie_hellman.c')
-rw-r--r-- | src/libstrongswan/crypto/diffie_hellman.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/diffie_hellman.c b/src/libstrongswan/crypto/diffie_hellman.c index 0d4cd9109..6dcb6cb33 100644 --- a/src/libstrongswan/crypto/diffie_hellman.c +++ b/src/libstrongswan/crypto/diffie_hellman.c @@ -49,7 +49,9 @@ ENUM_NEXT(diffie_hellman_group_names, NTRU_112_BIT, NTRU_256_BIT, MODP_NULL, "NTRU_128", "NTRU_192", "NTRU_256"); -ENUM_NEXT(diffie_hellman_group_names, MODP_CUSTOM, MODP_CUSTOM, NTRU_256_BIT, +ENUM_NEXT(diffie_hellman_group_names, NH_128_BIT, NH_128_BIT, NTRU_256_BIT, + "NEWHOPE_128"); +ENUM_NEXT(diffie_hellman_group_names, MODP_CUSTOM, MODP_CUSTOM, NH_128_BIT, "MODP_CUSTOM"); ENUM_END(diffie_hellman_group_names, MODP_CUSTOM); @@ -554,6 +556,7 @@ bool diffie_hellman_verify_value(diffie_hellman_group_t group, chunk_t value) case NTRU_128_BIT: case NTRU_192_BIT: case NTRU_256_BIT: + case NH_128_BIT: /* verification currently not supported, do in plugin */ valid = FALSE; break; |