summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nistp521.c
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2016-01-13 17:19:42 -0500
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-01-13 17:47:23 -0500
commit126d686400b832a712fbcee2308b317e35e759bb (patch)
treea57cc8f47d26e6e55514f488417a8e4ada00a0c9 /crypto/ec/ecp_nistp521.c
parente69aa8000e410bd3fe2ad093d432c735397af3b8 (diff)
Fix nistp512 typos, should be nistp521
Note, this now compiles, but fails tests, so further remediation is required. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'crypto/ec/ecp_nistp521.c')
-rw-r--r--crypto/ec/ecp_nistp521.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecp_nistp521.c b/crypto/ec/ecp_nistp521.c
index 97744b273e..516101c186 100644
--- a/crypto/ec/ecp_nistp521.c
+++ b/crypto/ec/ecp_nistp521.c
@@ -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;
};
@@ -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