From: Andreas Steffen Date: Sat, 15 Mar 2014 18:22:16 +0000 (+0100) Subject: 11 bits are needed to encode a maximum index of 1086 X-Git-Tag: 5.1.3dr1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3933798cb1929c541a7cb0ab6d3181348d8beb56;p=thirdparty%2Fstrongswan.git 11 bits are needed to encode a maximum index of 1086 --- diff --git a/src/libstrongswan/plugins/ntru/ntru_param_set.c b/src/libstrongswan/plugins/ntru/ntru_param_set.c index 8f25a4af17..2bc61f653f 100644 --- a/src/libstrongswan/plugins/ntru/ntru_param_set.c +++ b/src/libstrongswan/plugins/ntru/ntru_param_set.c @@ -100,7 +100,7 @@ static ntru_param_set_t ntru_param_sets[] = { NTRU_EES1087EP2, /* parameter-set id */ {0x00, 0x06, 0x03}, /* OID */ 0x25, /* DER id */ - 10, /* no. of bits in N (i.e., in an index) */ + 11, /* no. of bits in N (i.e., in an index) */ 1087, /* N */ 32, /* security strength in octets */ 2048, /* q */