Skip to content

Commit

Permalink
Fix nistp512 typos, should be nistp521
Browse files Browse the repository at this point in the history
Note, this now compiles, but fails tests, so further remediation
is required.

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
  • Loading branch information
Viktor Dukhovni committed Jan 13, 2016
1 parent e69aa80 commit 126d686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crypto/ec/ec_lcl.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ struct ec_method_st {
*/
typedef struct nistp224_pre_comp_st NISTP224_PRE_COMP;
typedef struct nistp256_pre_comp_st NISTP256_PRE_COMP;
typedef struct nistp512_pre_comp_st NISTP521_PRE_COMP;
typedef struct nistp521_pre_comp_st NISTP521_PRE_COMP;
typedef struct nistz256_pre_comp_st NISTZ256_PRE_COMP;
typedef struct ec_pre_comp_st EC_PRE_COMP;

Expand Down
4 changes: 2 additions & 2 deletions crypto/ec/ecp_nistp521.c
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ static void batch_mul(felem x_out, felem y_out, felem z_out,
}

/* Precomputation for the group generator. */
struct nistp512_pre_comp_st {
struct nistp521_pre_comp_st {
felem g_pre_comp[16][3];
int references;
};
Expand Down Expand Up @@ -2104,7 +2104,7 @@ int ec_GFp_nistp521_precompute_mult(EC_GROUP *group, BN_CTX *ctx)

int ec_GFp_nistp521_have_precompute_mult(const EC_GROUP *group)
{
return HAVEPRECOMP(group, nistp512);
return HAVEPRECOMP(group, nistp521);
}

#else
Expand Down

0 comments on commit 126d686

Please sign in to comment.