Print this page
8660 mpi code checks return value of void function

Split Close
Expand all
Collapse all
          --- old/usr/src/common/mpi/mpi-priv.h
          +++ new/usr/src/common/mpi/mpi-priv.h
↓ open down ↓ 38 lines elided ↑ open up ↑
  39   39   * decision by deleting the provisions above and replace them with the notice
  40   40   * and other provisions required by the GPL or the LGPL. If you do not delete
  41   41   * the provisions above, a recipient may use your version of this file under
  42   42   * the terms of any one of the MPL, the GPL or the LGPL.
  43   43   *
  44   44   * ***** END LICENSE BLOCK ***** */
  45   45  /*
  46   46   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  47   47   * Use is subject to license terms.
  48   48   *
       49 + * Copyright 2017 RackTop Systems.
       50 + *
  49   51   * Sun elects to use this software under the MPL license.
  50   52   */
  51   53  
  52   54  #ifndef _MPI_PRIV_H
  53   55  #define _MPI_PRIV_H
  54   56  
  55      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  56      -
  57   57  /* $Id: mpi-priv.h,v 1.20 2005/11/22 07:16:43 relyea%netscape.com Exp $ */
  58   58  
  59   59  #include "mpi.h"
  60   60  #ifndef _KERNEL
  61   61  #include <stdlib.h>
  62   62  #include <string.h>
  63   63  #include <ctype.h>
  64   64  #endif /* _KERNEL */
  65   65  
  66   66  #if MP_DEBUG
↓ open down ↓ 226 lines elided ↑ open up ↑
 293  293                                                  mp_digit *c);
 294  294  void     MPI_ASM_DECL s_mpv_sqr_add_prop(const mp_digit *a,
 295  295                                                  mp_size a_len,
 296  296                                                  mp_digit *sqrs);
 297  297  
 298  298  mp_err   MPI_ASM_DECL s_mpv_div_2dx1d(mp_digit Nhi, mp_digit Nlo,
 299  299                              mp_digit divisor, mp_digit *quot, mp_digit *rem);
 300  300  
 301  301  /* c += a * b * (MP_RADIX ** offset);  */
 302  302  #define s_mp_mul_d_add_offset(a, b, c, off) \
 303      -(s_mpv_mul_d_add_prop(MP_DIGITS(a), MP_USED(a), b, MP_DIGITS(c) + off), MP_OKAY)
      303 +        s_mpv_mul_d_add_prop(MP_DIGITS(a), MP_USED(a), b, MP_DIGITS(c) + off)
 304  304  
 305  305  typedef struct {
 306  306    mp_int       N;       /* modulus N */
 307  307    mp_digit     n0prime; /* n0' = - (n0 ** -1) mod MP_RADIX */
 308  308    mp_size      b;       /* R == 2 ** b,  also b = # significant bits in N */
 309  309  } mp_mont_modulus;
 310  310  
 311  311  mp_err s_mp_mul_mont(const mp_int *a, const mp_int *b, mp_int *c, 
 312  312                         mp_mont_modulus *mmm);
 313  313  mp_err s_mp_redc(mp_int *T, mp_mont_modulus *mmm);
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX