[openssl-commits] [openssl] master update

Viktor Dukhovni viktor at openssl.org
Wed Jan 13 22:48:30 UTC 2016


The branch master has been updated
       via  126d686400b832a712fbcee2308b317e35e759bb (commit)
      from  e69aa8000e410bd3fe2ad093d432c735397af3b8 (commit)


- Log -----------------------------------------------------------------
commit 126d686400b832a712fbcee2308b317e35e759bb
Author: Viktor Dukhovni <openssl-users at dukhovni.org>
Date:   Wed Jan 13 17:19:42 2016 -0500

    Fix nistp512 typos, should be nistp521
    
    Note, this now compiles, but fails tests, so further remediation
    is required.
    
    Reviewed-by: Dr. Stephen Henson <steve at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/ec/ec_lcl.h       | 2 +-
 crypto/ec/ecp_nistp521.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h
index 036f9ee..36432e1 100644
--- a/crypto/ec/ec_lcl.h
+++ b/crypto/ec/ec_lcl.h
@@ -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;
 
diff --git a/crypto/ec/ecp_nistp521.c b/crypto/ec/ecp_nistp521.c
index 97744b2..516101c 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


More information about the openssl-commits mailing list