Print this page
Raise max RSA keysize (WIP)

Split Close
Expand all
Collapse all
          --- old/usr/src/common/bignum/bignum.h
          +++ new/usr/src/common/bignum/bignum.h
↓ open down ↓ 78 lines elided ↑ open up ↑
  79   79   */
  80   80  typedef struct {
  81   81          /* size and len in units of BIG_CHUNK_TYPE words  */
  82   82          uint32_t        size;   /* size of memory allocated for value  */
  83   83          uint32_t        len;    /* number of valid data words in value */
  84   84          int             sign;   /* 1 for nonnegative, -1 for negative  */
  85   85          int             malloced; /* 1 if value was malloced, 0 if not */
  86   86          BIG_CHUNK_TYPE *value;
  87   87  } BIGNUM;
  88   88  
  89      -#define BIGTMPSIZE 65
       89 +#define BIGTMPSIZE 257
  90   90  
  91   91  #define BIG_TRUE 1
  92   92  #define BIG_FALSE 0
  93   93  
  94   94  typedef int BIG_ERR_CODE;
  95   95  
  96   96  /* error codes */
  97   97  #define BIG_OK 0
  98   98  #define BIG_NO_MEM -1
  99   99  #define BIG_INVALID_ARGS -2
↓ open down ↓ 123 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX