SSLRandom.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_net_ssl_provider_SSLRandom__
  3. #define __gnu_javax_net_ssl_provider_SSLRandom__
  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 IMessageDigest;
  18. }
  19. }
  20. }
  21. namespace javax
  22. {
  23. namespace net
  24. {
  25. namespace ssl
  26. {
  27. namespace provider
  28. {
  29. class SSLRandom;
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
  36. class gnu::javax::net::ssl::provider::SSLRandom : public ::java::lang::Object
  37. {
  38. public: // actually package-private
  39. SSLRandom();
  40. public:
  41. virtual void init(::java::util::Map *);
  42. virtual ::java::lang::String * name();
  43. virtual ::java::lang::Object * clone();
  44. virtual jbyte nextByte();
  45. virtual void nextBytes(JArray< jbyte > *, jint, jint);
  46. virtual jboolean selfTest();
  47. virtual void addRandomByte(jbyte);
  48. virtual void addRandomBytes(JArray< jbyte > *);
  49. virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
  50. private:
  51. JArray< jbyte > * nextBlock();
  52. public: // actually package-private
  53. static ::java::lang::String * SECRET;
  54. static ::java::lang::String * SEED;
  55. private:
  56. ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::lang::Object)))) md5;
  57. ::gnu::java::security::hash::IMessageDigest * sha;
  58. JArray< jbyte > * secret;
  59. JArray< jbyte > * buffer;
  60. jbyte pad;
  61. JArray< jbyte > * seed;
  62. jint idx;
  63. public:
  64. static ::java::lang::Class class$;
  65. };
  66. #endif // __gnu_javax_net_ssl_provider_SSLRandom__