Print this page
Raise max RSA keysize (WIP)

Split Close
Expand all
Collapse all
          --- old/usr/src/common/crypto/rsa/rsa_impl.h
          +++ new/usr/src/common/crypto/rsa/rsa_impl.h
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27  #define _RSA_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_RSA_KEYLENGTH_IN_BYTES      32
  37      -#define MAX_RSA_KEYLENGTH_IN_BYTES      512
       37 +#define MAX_RSA_KEYLENGTH_IN_BYTES      2048
  38   38  #define RSA_MIN_KEY_LEN 256     /* RSA min key length in bits */
  39      -#define RSA_MAX_KEY_LEN 4096    /* RSA max key length in bits */
       39 +#define RSA_MAX_KEY_LEN 16384   /* RSA max key length in bits */
  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_BYTE                 uchar_t
  47   47  #define CK_ULONG                ulong_t
  48   48  #define CK_RV                   int
  49   49  
↓ open down ↓ 87 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX