[openssl-commits] [openssl] master update

Kurt Roeckx kurt at openssl.org
Sat Mar 14 17:24:32 UTC 2015


The branch master has been updated
       via  9fbbdd73c58c29dc46cc314f7165e45e6d43fd60 (commit)
      from  8b37e5c14f0eddb10c7f91ef91004622d90ef361 (commit)


- Log -----------------------------------------------------------------
commit 9fbbdd73c58c29dc46cc314f7165e45e6d43fd60
Author: Andy Polyakov <appro at openssl.org>
Date:   Sat Feb 21 13:51:56 2015 +0100

    Avoid reading an unused byte after the buffer
    
    Other curves don't have this problem.
    
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Emilia Käsper <emilia at openssl.org>

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

Summary of changes:
 crypto/ec/ecp_nistp224.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ec/ecp_nistp224.c b/crypto/ec/ecp_nistp224.c
index ffb50d8..a0c7bec 100644
--- a/crypto/ec/ecp_nistp224.c
+++ b/crypto/ec/ecp_nistp224.c
@@ -316,7 +316,7 @@ static void bin28_to_felem(felem out, const u8 in[28])
     out[0] = *((const uint64_t *)(in)) & 0x00ffffffffffffff;
     out[1] = (*((const uint64_t *)(in + 7))) & 0x00ffffffffffffff;
     out[2] = (*((const uint64_t *)(in + 14))) & 0x00ffffffffffffff;
-    out[3] = (*((const uint64_t *)(in + 21))) & 0x00ffffffffffffff;
+    out[3] = (*((const uint64_t *)(in+20))) >> 8;
 }
 
 static void felem_to_bin28(u8 out[28], const felem in)


More information about the openssl-commits mailing list