Fortuna.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_prng_Fortuna__
  3. #define __gnu_javax_crypto_prng_Fortuna__
  4. #pragma interface
  5. #include <gnu/java/security/prng/BasePRNG.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 IMessageDigest;
  18. }
  19. namespace prng
  20. {
  21. class RandomEvent;
  22. }
  23. }
  24. }
  25. namespace javax
  26. {
  27. namespace crypto
  28. {
  29. namespace prng
  30. {
  31. class Fortuna;
  32. class Fortuna$Generator;
  33. }
  34. }
  35. }
  36. }
  37. }
  38. class gnu::javax::crypto::prng::Fortuna : public ::gnu::java::security::prng::BasePRNG
  39. {
  40. public:
  41. Fortuna();
  42. virtual void setup(::java::util::Map *);
  43. virtual void fillBlock();
  44. virtual void addRandomByte(jbyte);
  45. virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
  46. virtual void addRandomEvent(::gnu::java::security::prng::RandomEvent *);
  47. private:
  48. void writeObject(::java::io::ObjectOutputStream *);
  49. void readObject(::java::io::ObjectInputStream *);
  50. static const jlong serialVersionUID = 16435934LL;
  51. static const jint SEED_FILE_SIZE = 64;
  52. static const jint NUM_POOLS = 32;
  53. static const jint MIN_POOL_SIZE = 64;
  54. ::gnu::javax::crypto::prng::Fortuna$Generator * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) generator;
  55. JArray< ::gnu::java::security::hash::IMessageDigest * > * pools;
  56. jlong lastReseed;
  57. jint pool;
  58. jint pool0Count;
  59. jint reseedCount;
  60. public:
  61. static ::java::lang::String * SEED;
  62. static ::java::lang::Class class$;
  63. };
  64. #endif // __gnu_javax_crypto_prng_Fortuna__