logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[CVS] OpenSSL: openssl/crypto/bn/ bn_lib.c bn_nist.c bn_recp.c: msg#00067

Subject: [CVS] OpenSSL: openssl/crypto/bn/ bn_lib.c bn_nist.c bn_recp.c
  OpenSSL CVS Repository
  http://cvs.openssl.org/
  ____________________________________________________________________________

  Server: cvs.openssl.org                  Name:   Geoff Thorpe
  Root:   /e/openssl/cvs                   Email:  geoff@xxxxxxxxxxx
  Module: openssl                          Date:   29-Oct-2003 21:47:50
  Branch: HEAD                             Handle: 2003102920474900

  Modified files:
    openssl/crypto/bn       bn_lib.c bn_nist.c bn_recp.c

  Log:
    Some provisional bignum debugging has begun to detect inconsistent BIGNUM
    structures being passed in to or out of API functions, and this corrects a
    couple of cases found so far.
    
    Also, lop off a couple of bytes of white-space.

  Summary:
    Revision    Changes     Path
    1.47        +0  -1      openssl/crypto/bn/bn_lib.c
    1.3         +2  -1      openssl/crypto/bn/bn_nist.c
    1.16        +2  -0      openssl/crypto/bn/bn_recp.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openssl/crypto/bn/bn_lib.c
  ============================================================================
  $ cvs diff -u -r1.46 -r1.47 bn_lib.c
  --- openssl/crypto/bn/bn_lib.c        29 Oct 2003 20:24:08 -0000      1.46
  +++ openssl/crypto/bn/bn_lib.c        29 Oct 2003 20:47:49 -0000      1.47
  @@ -462,7 +462,6 @@
                        A[0]=0;
                assert(A == &(b->d[b->dmax]));
                }
  -             
        return b;
        }
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openssl/crypto/bn/bn_nist.c
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 bn_nist.c
  --- openssl/crypto/bn/bn_nist.c       28 Oct 2002 14:02:08 -0000      1.2
  +++ openssl/crypto/bn/bn_nist.c       29 Oct 2003 20:47:49 -0000      1.3
  @@ -823,6 +823,7 @@
        if (tmp->top == BN_NIST_521_TOP)
                tmp->d[BN_NIST_521_TOP-1]  &= BN_NIST_521_TOP_MASK;
   
  +     bn_fix_top(tmp);
        if (!BN_uadd(r, tmp, r))
                return 0;
        top = r->top;
  @@ -838,6 +839,6 @@
        ret = 1;
   err:
        BN_CTX_end(ctx);
  -     
  +
        return ret;
        }
  @@ .
  patch -p0 <<'@@ .'
  Index: openssl/crypto/bn/bn_recp.c
  ============================================================================
  $ cvs diff -u -r1.15 -r1.16 bn_recp.c
  --- openssl/crypto/bn/bn_recp.c       14 Dec 2000 17:46:36 -0000      1.15
  +++ openssl/crypto/bn/bn_recp.c       29 Oct 2003 20:47:49 -0000      1.16
  @@ -203,6 +203,8 @@
        ret=1;
   err:
        BN_CTX_end(ctx);
  +     if(dv) bn_fix_top(dv);
  +     if(rem) bn_fix_top(rem);
        return(ret);
        } 
   
  @@ .
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                     openssl-cvs@xxxxxxxxxxx
Automated List Manager                           majordomo@xxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>