TLSRandom.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_net_ssl_provider_TLSRandom__
  3. #define __gnu_javax_net_ssl_provider_TLSRandom__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace javax
  12. {
  13. namespace crypto
  14. {
  15. namespace mac
  16. {
  17. class IMac;
  18. }
  19. }
  20. namespace net
  21. {
  22. namespace ssl
  23. {
  24. namespace provider
  25. {
  26. class TLSRandom;
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. class gnu::javax::net::ssl::provider::TLSRandom : public ::java::lang::Object
  34. {
  35. public: // actually package-private
  36. TLSRandom();
  37. public:
  38. virtual ::java::lang::Object * clone();
  39. virtual void init(::java::util::Map *);
  40. virtual ::java::lang::String * name();
  41. virtual jbyte nextByte();
  42. virtual void nextBytes(JArray< jbyte > *, jint, jint);
  43. virtual void addRandomByte(jbyte);
  44. virtual void addRandomBytes(JArray< jbyte > *);
  45. virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
  46. private:
  47. void fillBuffer();
  48. public: // actually package-private
  49. static ::java::lang::String * SECRET;
  50. static ::java::lang::String * SEED;
  51. private:
  52. ::gnu::javax::crypto::mac::IMac * __attribute__((aligned(__alignof__( ::java::lang::Object)))) hmac_sha;
  53. ::gnu::javax::crypto::mac::IMac * hmac_md5;
  54. JArray< jbyte > * sha_a;
  55. JArray< jbyte > * md5_a;
  56. JArray< jbyte > * seed;
  57. JArray< jbyte > * buffer;
  58. jint idx;
  59. jboolean init__;
  60. public:
  61. static ::java::lang::Class class$;
  62. };
  63. #endif // __gnu_javax_net_ssl_provider_TLSRandom__