Print this page
Raise max RSA keysize (WIP)

Split Close
Expand all
Collapse all
          --- old/usr/src/common/crypto/dh/dh_impl.h
          +++ new/usr/src/common/crypto/dh/dh_impl.h
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27  #define _DH_IMPL_H
  28   28  
  29   29  #ifdef __cplusplus
  30   30  extern "C" {
  31   31  #endif
  32   32  
  33   33  #include <sys/types.h>
  34   34  #include <bignum.h>
  35   35  
  36   36  #define MIN_DH_KEYLENGTH_IN_BYTES       8
  37      -#define MAX_DH_KEYLENGTH_IN_BYTES       512
       37 +#define MAX_DH_KEYLENGTH_IN_BYTES       2048
  38   38  #define DH_MIN_KEY_LEN          64
  39      -#define DH_MAX_KEY_LEN          4096
       39 +#define DH_MAX_KEY_LEN          16384
  40   40  
  41   41  #ifdef _KERNEL
  42   42  
  43   43  #include <sys/sunddi.h>
  44   44  #include <sys/crypto/common.h>
  45   45  
  46   46  #define CK_RV                   ulong_t
  47   47  
  48   48  #define CKR_OK                  CRYPTO_SUCCESS
  49   49  #define CKR_ARGUMENTS_BAD       CRYPTO_ARGUMENTS_BAD
↓ open down ↓ 50 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX