SRPServer.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_sasl_srp_SRPServer__
  3. #define __gnu_javax_crypto_sasl_srp_SRPServer__
  4. #pragma interface
  5. #include <gnu/javax/crypto/sasl/ServerMechanism.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace java
  12. {
  13. namespace security
  14. {
  15. namespace util
  16. {
  17. class PRNG;
  18. }
  19. }
  20. }
  21. namespace javax
  22. {
  23. namespace crypto
  24. {
  25. namespace key
  26. {
  27. class IKeyAgreementParty;
  28. }
  29. namespace sasl
  30. {
  31. namespace srp
  32. {
  33. class CALG;
  34. class IALG;
  35. class SRP;
  36. class SRPServer;
  37. }
  38. }
  39. }
  40. }
  41. }
  42. namespace java
  43. {
  44. namespace math
  45. {
  46. class BigInteger;
  47. }
  48. }
  49. }
  50. class gnu::javax::crypto::sasl::srp::SRPServer : public ::gnu::javax::crypto::sasl::ServerMechanism
  51. {
  52. public:
  53. SRPServer();
  54. public: // actually protected
  55. virtual void initMechanism();
  56. virtual void resetMechanism();
  57. public:
  58. virtual JArray< jbyte > * evaluateResponse(JArray< jbyte > *);
  59. public: // actually protected
  60. virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint);
  61. virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint);
  62. virtual ::java::lang::String * getNegotiatedQOP();
  63. virtual ::java::lang::String * getNegotiatedStrength();
  64. virtual ::java::lang::String * getNegotiatedRawSendSize();
  65. virtual ::java::lang::String * getReuse();
  66. private:
  67. JArray< jbyte > * sendProtocolElements(JArray< jbyte > *);
  68. JArray< jbyte > * sendEvidence(JArray< jbyte > *);
  69. ::java::lang::String * createL();
  70. void parseO(::java::lang::String *);
  71. void setupSecurityServices(jboolean);
  72. ::gnu::java::security::util::PRNG * getDefaultPRNG();
  73. static ::java::util::logging::Logger * log;
  74. ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::sasl::ServerMechanism)))) U;
  75. ::java::math::BigInteger * N;
  76. ::java::math::BigInteger * g;
  77. ::java::math::BigInteger * A;
  78. ::java::math::BigInteger * B;
  79. JArray< jbyte > * s;
  80. JArray< jbyte > * cIV;
  81. JArray< jbyte > * sIV;
  82. JArray< jbyte > * cn;
  83. JArray< jbyte > * sn;
  84. ::gnu::javax::crypto::sasl::srp::SRP * srp;
  85. JArray< jbyte > * sid;
  86. jint ttl;
  87. JArray< jbyte > * cCB;
  88. ::java::lang::String * mandatory;
  89. ::java::lang::String * L;
  90. ::java::lang::String * o;
  91. ::java::lang::String * chosenIntegrityAlgorithm;
  92. ::java::lang::String * chosenConfidentialityAlgorithm;
  93. jint rawSendSize;
  94. JArray< jbyte > * K;
  95. jboolean replayDetection;
  96. jint inCounter;
  97. jint outCounter;
  98. ::gnu::javax::crypto::sasl::srp::IALG * inMac;
  99. ::gnu::javax::crypto::sasl::srp::IALG * outMac;
  100. ::gnu::javax::crypto::sasl::srp::CALG * inCipher;
  101. ::gnu::javax::crypto::sasl::srp::CALG * outCipher;
  102. ::gnu::javax::crypto::key::IKeyAgreementParty * serverHandler;
  103. ::gnu::java::security::util::PRNG * prng;
  104. public:
  105. static ::java::lang::Class class$;
  106. };
  107. #endif // __gnu_javax_crypto_sasl_srp_SRPServer__