diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_oct.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_oct.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/ec/ec_oct.c b/src/lib/libcrypto/ec/ec_oct.c index 82124a8f80..f44b174fd7 100644 --- a/src/lib/libcrypto/ec/ec_oct.c +++ b/src/lib/libcrypto/ec/ec_oct.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_oct.c,v 1.4 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: ec_oct.c,v 1.5 2017/01/29 17:49:23 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -76,11 +76,11 @@ EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP * group, EC_POINT * point | |||
| 76 | { | 76 | { |
| 77 | if (group->meth->point_set_compressed_coordinates == 0 | 77 | if (group->meth->point_set_compressed_coordinates == 0 |
| 78 | && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { | 78 | && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { |
| 79 | ECerr(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 79 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
| 80 | return 0; | 80 | return 0; |
| 81 | } | 81 | } |
| 82 | if (group->meth != point->meth) { | 82 | if (group->meth != point->meth) { |
| 83 | ECerr(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP, EC_R_INCOMPATIBLE_OBJECTS); | 83 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); |
| 84 | return 0; | 84 | return 0; |
| 85 | } | 85 | } |
| 86 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { | 86 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { |
| @@ -90,7 +90,7 @@ EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP * group, EC_POINT * point | |||
| 90 | else | 90 | else |
| 91 | #ifdef OPENSSL_NO_EC2M | 91 | #ifdef OPENSSL_NO_EC2M |
| 92 | { | 92 | { |
| 93 | ECerr(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP, EC_R_GF2M_NOT_SUPPORTED); | 93 | ECerror(EC_R_GF2M_NOT_SUPPORTED); |
| 94 | return 0; | 94 | return 0; |
| 95 | } | 95 | } |
| 96 | #else | 96 | #else |
| @@ -108,11 +108,11 @@ EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP * group, EC_POINT * poin | |||
| 108 | { | 108 | { |
| 109 | if (group->meth->point_set_compressed_coordinates == 0 | 109 | if (group->meth->point_set_compressed_coordinates == 0 |
| 110 | && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { | 110 | && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { |
| 111 | ECerr(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 111 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
| 112 | return 0; | 112 | return 0; |
| 113 | } | 113 | } |
| 114 | if (group->meth != point->meth) { | 114 | if (group->meth != point->meth) { |
| 115 | ECerr(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M, EC_R_INCOMPATIBLE_OBJECTS); | 115 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); |
| 116 | return 0; | 116 | return 0; |
| 117 | } | 117 | } |
| 118 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { | 118 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { |
| @@ -134,11 +134,11 @@ EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, | |||
| 134 | { | 134 | { |
| 135 | if (group->meth->point2oct == 0 | 135 | if (group->meth->point2oct == 0 |
| 136 | && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { | 136 | && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { |
| 137 | ECerr(EC_F_EC_POINT_POINT2OCT, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 137 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
| 138 | return 0; | 138 | return 0; |
| 139 | } | 139 | } |
| 140 | if (group->meth != point->meth) { | 140 | if (group->meth != point->meth) { |
| 141 | ECerr(EC_F_EC_POINT_POINT2OCT, EC_R_INCOMPATIBLE_OBJECTS); | 141 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); |
| 142 | return 0; | 142 | return 0; |
| 143 | } | 143 | } |
| 144 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { | 144 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { |
| @@ -148,7 +148,7 @@ EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, | |||
| 148 | else | 148 | else |
| 149 | #ifdef OPENSSL_NO_EC2M | 149 | #ifdef OPENSSL_NO_EC2M |
| 150 | { | 150 | { |
| 151 | ECerr(EC_F_EC_POINT_POINT2OCT, EC_R_GF2M_NOT_SUPPORTED); | 151 | ECerror(EC_R_GF2M_NOT_SUPPORTED); |
| 152 | return 0; | 152 | return 0; |
| 153 | } | 153 | } |
| 154 | #else | 154 | #else |
| @@ -166,11 +166,11 @@ EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, | |||
| 166 | { | 166 | { |
| 167 | if (group->meth->oct2point == 0 && | 167 | if (group->meth->oct2point == 0 && |
| 168 | !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { | 168 | !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) { |
| 169 | ECerr(EC_F_EC_POINT_OCT2POINT, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 169 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
| 170 | return 0; | 170 | return 0; |
| 171 | } | 171 | } |
| 172 | if (group->meth != point->meth) { | 172 | if (group->meth != point->meth) { |
| 173 | ECerr(EC_F_EC_POINT_OCT2POINT, EC_R_INCOMPATIBLE_OBJECTS); | 173 | ECerror(EC_R_INCOMPATIBLE_OBJECTS); |
| 174 | return 0; | 174 | return 0; |
| 175 | } | 175 | } |
| 176 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { | 176 | if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) { |
| @@ -180,7 +180,7 @@ EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, | |||
| 180 | else | 180 | else |
| 181 | #ifdef OPENSSL_NO_EC2M | 181 | #ifdef OPENSSL_NO_EC2M |
| 182 | { | 182 | { |
| 183 | ECerr(EC_F_EC_POINT_OCT2POINT, EC_R_GF2M_NOT_SUPPORTED); | 183 | ECerror(EC_R_GF2M_NOT_SUPPORTED); |
| 184 | return 0; | 184 | return 0; |
| 185 | } | 185 | } |
| 186 | #else | 186 | #else |
