src/share/native/sun/security/ec/impl/ecc_impl.h

Print this page
rev 8822 : 8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com


  48 
  49 /*
  50  * Multi-platform definitions
  51  */
  52 #ifdef __linux__
  53 #define B_FALSE FALSE
  54 #define B_TRUE TRUE
  55 typedef unsigned char uint8_t;
  56 typedef unsigned long ulong_t;
  57 typedef enum { B_FALSE, B_TRUE } boolean_t;
  58 #endif /* __linux__ */
  59 
  60 #ifdef _ALLBSD_SOURCE
  61 #include <stdint.h>
  62 #define B_FALSE FALSE
  63 #define B_TRUE TRUE
  64 typedef unsigned long ulong_t;
  65 typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
  66 #endif /* _ALLBSD_SOURCE */
  67 







  68 #ifdef _WIN32
  69 typedef unsigned char uint8_t;
  70 typedef unsigned long ulong_t;
  71 typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
  72 #define strdup _strdup          /* Replace POSIX name with ISO C++ name */
  73 #endif /* _WIN32 */
  74 
  75 #ifndef _KERNEL
  76 #include <stdlib.h>
  77 #endif  /* _KERNEL */
  78 
  79 #define EC_MAX_DIGEST_LEN 1024  /* max digest that can be signed */
  80 #define EC_MAX_POINT_LEN 145    /* max len of DER encoded Q */
  81 #define EC_MAX_VALUE_LEN 72     /* max len of ANSI X9.62 private value d */
  82 #define EC_MAX_SIG_LEN 144      /* max signature len for supported curves */
  83 #define EC_MIN_KEY_LEN  112     /* min key length in bits */
  84 #define EC_MAX_KEY_LEN  571     /* max key length in bits */
  85 #define EC_MAX_OID_LEN 10       /* max length of OID buffer */
  86 
  87 /*




  48 
  49 /*
  50  * Multi-platform definitions
  51  */
  52 #ifdef __linux__
  53 #define B_FALSE FALSE
  54 #define B_TRUE TRUE
  55 typedef unsigned char uint8_t;
  56 typedef unsigned long ulong_t;
  57 typedef enum { B_FALSE, B_TRUE } boolean_t;
  58 #endif /* __linux__ */
  59 
  60 #ifdef _ALLBSD_SOURCE
  61 #include <stdint.h>
  62 #define B_FALSE FALSE
  63 #define B_TRUE TRUE
  64 typedef unsigned long ulong_t;
  65 typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
  66 #endif /* _ALLBSD_SOURCE */
  67 
  68 #ifdef AIX
  69 #define B_FALSE FALSE
  70 #define B_TRUE TRUE
  71 typedef unsigned char uint8_t;
  72 typedef unsigned long ulong_t;
  73 #endif /* AIX */
  74 
  75 #ifdef _WIN32
  76 typedef unsigned char uint8_t;
  77 typedef unsigned long ulong_t;
  78 typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
  79 #define strdup _strdup          /* Replace POSIX name with ISO C++ name */
  80 #endif /* _WIN32 */
  81 
  82 #ifndef _KERNEL
  83 #include <stdlib.h>
  84 #endif  /* _KERNEL */
  85 
  86 #define EC_MAX_DIGEST_LEN 1024  /* max digest that can be signed */
  87 #define EC_MAX_POINT_LEN 145    /* max len of DER encoded Q */
  88 #define EC_MAX_VALUE_LEN 72     /* max len of ANSI X9.62 private value d */
  89 #define EC_MAX_SIG_LEN 144      /* max signature len for supported curves */
  90 #define EC_MIN_KEY_LEN  112     /* min key length in bits */
  91 #define EC_MAX_KEY_LEN  571     /* max key length in bits */
  92 #define EC_MAX_OID_LEN 10       /* max length of OID buffer */
  93 
  94 /*