summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/crypto/sasl/srp/SRPServer.h
blob: b78a26bca83146dc98e6431dd67851316538ccf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_crypto_sasl_srp_SRPServer__
#define __gnu_javax_crypto_sasl_srp_SRPServer__

#pragma interface

#include <gnu/javax/crypto/sasl/ServerMechanism.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace security
      {
        namespace util
        {
            class PRNG;
        }
      }
    }
    namespace javax
    {
      namespace crypto
      {
        namespace key
        {
            class IKeyAgreementParty;
        }
        namespace sasl
        {
          namespace srp
          {
              class CALG;
              class IALG;
              class SRP;
              class SRPServer;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace math
    {
        class BigInteger;
    }
  }
}

class gnu::javax::crypto::sasl::srp::SRPServer : public ::gnu::javax::crypto::sasl::ServerMechanism
{

public:
  SRPServer();
public: // actually protected
  virtual void initMechanism();
  virtual void resetMechanism();
public:
  virtual JArray< jbyte > * evaluateResponse(JArray< jbyte > *);
public: // actually protected
  virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint);
  virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint);
  virtual ::java::lang::String * getNegotiatedQOP();
  virtual ::java::lang::String * getNegotiatedStrength();
  virtual ::java::lang::String * getNegotiatedRawSendSize();
  virtual ::java::lang::String * getReuse();
private:
  JArray< jbyte > * sendProtocolElements(JArray< jbyte > *);
  JArray< jbyte > * sendEvidence(JArray< jbyte > *);
  ::java::lang::String * createL();
  void parseO(::java::lang::String *);
  void setupSecurityServices(jboolean);
  ::gnu::java::security::util::PRNG * getDefaultPRNG();
  static ::java::util::logging::Logger * log;
  ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::sasl::ServerMechanism)))) U;
  ::java::math::BigInteger * N;
  ::java::math::BigInteger * g;
  ::java::math::BigInteger * A;
  ::java::math::BigInteger * B;
  JArray< jbyte > * s;
  JArray< jbyte > * cIV;
  JArray< jbyte > * sIV;
  JArray< jbyte > * cn;
  JArray< jbyte > * sn;
  ::gnu::javax::crypto::sasl::srp::SRP * srp;
  JArray< jbyte > * sid;
  jint ttl;
  JArray< jbyte > * cCB;
  ::java::lang::String * mandatory;
  ::java::lang::String * L;
  ::java::lang::String * o;
  ::java::lang::String * chosenIntegrityAlgorithm;
  ::java::lang::String * chosenConfidentialityAlgorithm;
  jint rawSendSize;
  JArray< jbyte > * K;
  jboolean replayDetection;
  jint inCounter;
  jint outCounter;
  ::gnu::javax::crypto::sasl::srp::IALG * inMac;
  ::gnu::javax::crypto::sasl::srp::IALG * outMac;
  ::gnu::javax::crypto::sasl::srp::CALG * inCipher;
  ::gnu::javax::crypto::sasl::srp::CALG * outCipher;
  ::gnu::javax::crypto::key::IKeyAgreementParty * serverHandler;
  ::gnu::java::security::util::PRNG * prng;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_crypto_sasl_srp_SRPServer__