RFC2631.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_key_dh_RFC2631__
  3. #define __gnu_javax_crypto_key_dh_RFC2631__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace java
  12. {
  13. namespace security
  14. {
  15. namespace hash
  16. {
  17. class Sha160;
  18. }
  19. namespace util
  20. {
  21. class PRNG;
  22. }
  23. }
  24. }
  25. namespace javax
  26. {
  27. namespace crypto
  28. {
  29. namespace key
  30. {
  31. namespace dh
  32. {
  33. class RFC2631;
  34. }
  35. }
  36. }
  37. }
  38. }
  39. namespace java
  40. {
  41. namespace math
  42. {
  43. class BigInteger;
  44. }
  45. namespace security
  46. {
  47. class SecureRandom;
  48. }
  49. }
  50. }
  51. class gnu::javax::crypto::key::dh::RFC2631 : public ::java::lang::Object
  52. {
  53. public:
  54. RFC2631(jint, jint, ::java::security::SecureRandom *);
  55. virtual JArray< ::java::math::BigInteger * > * generateParameters();
  56. private:
  57. void nextRandomBytes(JArray< jbyte > *);
  58. ::gnu::java::security::util::PRNG * getDefaultPRNG();
  59. public:
  60. static const jint DH_PARAMS_SEED = 0;
  61. static const jint DH_PARAMS_COUNTER = 1;
  62. static const jint DH_PARAMS_Q = 2;
  63. static const jint DH_PARAMS_P = 3;
  64. static const jint DH_PARAMS_J = 4;
  65. static const jint DH_PARAMS_G = 5;
  66. private:
  67. static ::java::math::BigInteger * TWO;
  68. ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
  69. jint m;
  70. jint L;
  71. ::java::security::SecureRandom * rnd;
  72. ::gnu::java::security::util::PRNG * prng;
  73. public:
  74. static ::java::lang::Class class$;
  75. };
  76. #endif // __gnu_javax_crypto_key_dh_RFC2631__