summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/security/key/dss/FIPS186.h
blob: 1b972d44843c1d24115455ac1c35e8cfe75790b8 (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_security_key_dss_FIPS186__
#define __gnu_java_security_key_dss_FIPS186__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace security
      {
        namespace hash
        {
            class Sha160;
        }
        namespace key
        {
          namespace dss
          {
              class FIPS186;
          }
        }
        namespace util
        {
            class PRNG;
        }
      }
    }
  }
  namespace java
  {
    namespace math
    {
        class BigInteger;
    }
    namespace security
    {
        class SecureRandom;
    }
  }
}

class gnu::java::security::key::dss::FIPS186 : public ::java::lang::Object
{

public:
  FIPS186(jint, ::java::security::SecureRandom *);
  virtual JArray< ::java::math::BigInteger * > * generateParameters();
private:
  void nextRandomBytes(JArray< jbyte > *);
  ::gnu::java::security::util::PRNG * getDefaultPRNG();
public:
  static const jint DSA_PARAMS_SEED = 0;
  static const jint DSA_PARAMS_COUNTER = 1;
  static const jint DSA_PARAMS_Q = 2;
  static const jint DSA_PARAMS_P = 3;
  static const jint DSA_PARAMS_E = 4;
  static const jint DSA_PARAMS_G = 5;
private:
  static ::java::math::BigInteger * TWO;
  static ::java::math::BigInteger * TWO_POW_160;
  ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
  jint L;
  ::java::security::SecureRandom * rnd;
  ::gnu::java::security::util::PRNG * prng;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_security_key_dss_FIPS186__