FIPS186.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_java_security_key_dss_FIPS186__
  3. #define __gnu_java_security_key_dss_FIPS186__
  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 key
  20. {
  21. namespace dss
  22. {
  23. class FIPS186;
  24. }
  25. }
  26. namespace util
  27. {
  28. class PRNG;
  29. }
  30. }
  31. }
  32. }
  33. namespace java
  34. {
  35. namespace math
  36. {
  37. class BigInteger;
  38. }
  39. namespace security
  40. {
  41. class SecureRandom;
  42. }
  43. }
  44. }
  45. class gnu::java::security::key::dss::FIPS186 : public ::java::lang::Object
  46. {
  47. public:
  48. FIPS186(jint, ::java::security::SecureRandom *);
  49. virtual JArray< ::java::math::BigInteger * > * generateParameters();
  50. private:
  51. void nextRandomBytes(JArray< jbyte > *);
  52. ::gnu::java::security::util::PRNG * getDefaultPRNG();
  53. public:
  54. static const jint DSA_PARAMS_SEED = 0;
  55. static const jint DSA_PARAMS_COUNTER = 1;
  56. static const jint DSA_PARAMS_Q = 2;
  57. static const jint DSA_PARAMS_P = 3;
  58. static const jint DSA_PARAMS_E = 4;
  59. static const jint DSA_PARAMS_G = 5;
  60. private:
  61. static ::java::math::BigInteger * TWO;
  62. static ::java::math::BigInteger * TWO_POW_160;
  63. ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
  64. jint L;
  65. ::java::security::SecureRandom * rnd;
  66. ::gnu::java::security::util::PRNG * prng;
  67. public:
  68. static ::java::lang::Class class$;
  69. };
  70. #endif // __gnu_java_security_key_dss_FIPS186__