OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [key/] [dh/] [GnuDHKeyPairGenerator.h] - Blame information for rev 756

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 756 jeremybenn
 
2
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3
 
4
#ifndef __gnu_javax_crypto_key_dh_GnuDHKeyPairGenerator__
5
#define __gnu_javax_crypto_key_dh_GnuDHKeyPairGenerator__
6
 
7
#pragma interface
8
 
9
#include <java/lang/Object.h>
10
#include <gcj/array.h>
11
 
12
extern "Java"
13
{
14
  namespace gnu
15
  {
16
    namespace java
17
    {
18
      namespace security
19
      {
20
        namespace hash
21
        {
22
            class Sha160;
23
        }
24
        namespace util
25
        {
26
            class PRNG;
27
        }
28
      }
29
    }
30
    namespace javax
31
    {
32
      namespace crypto
33
      {
34
        namespace key
35
        {
36
          namespace dh
37
          {
38
              class GnuDHKeyPairGenerator;
39
          }
40
        }
41
      }
42
    }
43
  }
44
  namespace java
45
  {
46
    namespace math
47
    {
48
        class BigInteger;
49
    }
50
    namespace security
51
    {
52
        class KeyPair;
53
        class SecureRandom;
54
    }
55
  }
56
}
57
 
58
class gnu::javax::crypto::key::dh::GnuDHKeyPairGenerator : public ::java::lang::Object
59
{
60
 
61
public:
62
  GnuDHKeyPairGenerator();
63
  virtual ::java::lang::String * name();
64
  virtual void setup(::java::util::Map *);
65
  virtual ::java::security::KeyPair * generate();
66
private:
67
  void nextRandomBytes(JArray< jbyte > *);
68
  ::gnu::java::security::util::PRNG * getDefaultPRNG();
69
  static ::java::util::logging::Logger * log;
70
public:
71
  static ::java::lang::String * SOURCE_OF_RANDOMNESS;
72
  static ::java::lang::String * DH_PARAMETERS;
73
  static ::java::lang::String * PRIME_SIZE;
74
  static ::java::lang::String * EXPONENT_SIZE;
75
  static ::java::lang::String * PREFERRED_ENCODING_FORMAT;
76
  static const jint DEFAULT_PRIME_SIZE = 512;
77
  static const jint DEFAULT_EXPONENT_SIZE = 160;
78
private:
79
  static const jint DEFAULT_ENCODING_FORMAT = 1;
80
  ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
81
  ::java::security::SecureRandom * rnd;
82
  jint l;
83
  jint m;
84
  ::java::math::BigInteger * seed;
85
  ::java::math::BigInteger * counter;
86
  ::java::math::BigInteger * q;
87
  ::java::math::BigInteger * p;
88
  ::java::math::BigInteger * j;
89
  ::java::math::BigInteger * g;
90
  ::gnu::java::security::util::PRNG * prng;
91
  jint preferredFormat;
92
public:
93
  static ::java::lang::Class class$;
94
};
95
 
96
#endif // __gnu_javax_crypto_key_dh_GnuDHKeyPairGenerator__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.