Hi Vadim,

On Saturday 15 November 2003 13:34, Vadim Fedukovich wrote:
> Dear OpenSSL team,
>
> please consider a patch attached.
> It adds 2 binary curves defined in RFC 2409 and 2412.
> It unclear whether any well-known OID was ever assigned
> and I'm not quite sure what are the right cofactor values

Hmm, no OIDs => no NIDs => you can't use them with 
EC_GROUP_new_by_nid (... guess I must think about this (curve
and no oid)).

+/* IPSec curves */
+static const EC_CURVE_DATA _EC_IPSEC_155_ID3 = {
+       NID_X9_62_characteristic_two_field,
+       "0800000000000000000000004000000000000001",
+       "0",
+       "07338f",
+       "7b",
+       "1c8",
+       "57db5698537193aef944",4, // 12

Hmm, the order doesn't seem to be correct. If I use 
"2AAAAAAAAAAAAAAAAAAC7F3C7881BD0868FA86C" EC_GROUP_check
accepts this curve. And I think the cofactor should be 3
(but I didn't test it).

...
+       /* IPSec curves */
+       { 0, &_EC_IPSEC_163_ID3}, // NIDs to be assigned

Shouldn't this be _EC_IPSEC_155_ID3 ?

+       { 0, &_EC_IPSEC_185_ID4},
 };

Nils
 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to