diff options
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r-- | src/lib/libcrypto/ec/ec_curve.c | 15 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 5 |
2 files changed, 2 insertions, 18 deletions
diff --git a/src/lib/libcrypto/ec/ec_curve.c b/src/lib/libcrypto/ec/ec_curve.c index 6490cd9d84..df49089bb6 100644 --- a/src/lib/libcrypto/ec/ec_curve.c +++ b/src/lib/libcrypto/ec/ec_curve.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_curve.c,v 1.9 2014/11/12 18:21:07 miod Exp $ */ | 1 | /* $OpenBSD: ec_curve.c,v 1.10 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -1008,13 +1008,6 @@ static const struct { | |||
1008 | NID_X9_62_characteristic_two_field, 0, 21, 2 | 1008 | NID_X9_62_characteristic_two_field, 0, 21, 2 |
1009 | }, | 1009 | }, |
1010 | { /* no seed */ | 1010 | { /* no seed */ |
1011 | #if 0 | ||
1012 | /* The algorithm used to derive the curve parameters from | ||
1013 | * the seed used here is slightly different than the | ||
1014 | * algorithm described in X9.62 . */ | ||
1015 | 0x24, 0xB7, 0xB1, 0x37, 0xC8, 0xA1, 0x4D, 0x69, 0x6E, 0x67, | ||
1016 | 0x68, 0x75, 0x61, 0x51, 0x75, 0x6F, 0xD0, 0xDA, 0x2E, 0x5C, | ||
1017 | #endif | ||
1018 | 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* p */ | 1011 | 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* p */ |
1019 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 1012 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
1020 | 0xC9, | 1013 | 0xC9, |
@@ -1045,12 +1038,6 @@ static const struct { | |||
1045 | NID_X9_62_characteristic_two_field, 0, 21, 2 | 1038 | NID_X9_62_characteristic_two_field, 0, 21, 2 |
1046 | }, | 1039 | }, |
1047 | { /* no seed */ | 1040 | { /* no seed */ |
1048 | #if 0 | ||
1049 | /* The seed here was used to created the curve parameters in normal | ||
1050 | * basis representation (and not the polynomial representation used here) */ | ||
1051 | 0x85, 0xE2, 0x5B, 0xFE, 0x5C, 0x86, 0x22, 0x6C, 0xDB, 0x12, | ||
1052 | 0x01, 0x6F, 0x75, 0x53, 0xF9, 0xD0, 0xE6, 0x93, 0xA2, 0x68, | ||
1053 | #endif | ||
1054 | 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* p */ | 1041 | 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* p */ |
1055 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 1042 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
1056 | 0xC9, | 1043 | 0xC9, |
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index 3dc17bc409..9e3aee13a2 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_mult.c,v 1.15 2014/11/11 06:23:43 guenther Exp $ */ | 1 | /* $OpenBSD: ec_mult.c,v 1.16 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. | 3 | * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -627,11 +627,8 @@ ec_wNAF_mul(const EC_GROUP * group, EC_POINT * r, const BIGNUM * scalar, | |||
627 | } | 627 | } |
628 | } | 628 | } |
629 | 629 | ||
630 | #if 1 /* optional; EC_window_bits_for_scalar_size | ||
631 | * assumes we do this step */ | ||
632 | if (!EC_POINTs_make_affine(group, num_val, val, ctx)) | 630 | if (!EC_POINTs_make_affine(group, num_val, val, ctx)) |
633 | goto err; | 631 | goto err; |
634 | #endif | ||
635 | 632 | ||
636 | r_is_at_infinity = 1; | 633 | r_is_at_infinity = 1; |
637 | 634 | ||