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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [prng/] [CSPRNG.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_prng_CSPRNG__
5
#define __gnu_javax_crypto_prng_CSPRNG__
6
 
7
#pragma interface
8
 
9
#include <gnu/java/security/prng/BasePRNG.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 IMessageDigest;
23
        }
24
        namespace prng
25
        {
26
            class IRandom;
27
        }
28
      }
29
    }
30
    namespace javax
31
    {
32
      namespace crypto
33
      {
34
        namespace cipher
35
        {
36
            class IBlockCipher;
37
        }
38
        namespace prng
39
        {
40
            class CSPRNG;
41
            class CSPRNG$Poller;
42
            class CSPRNG$Spinner;
43
        }
44
      }
45
    }
46
  }
47
}
48
 
49
class gnu::javax::crypto::prng::CSPRNG : public ::gnu::java::security::prng::BasePRNG
50
{
51
 
52
public:
53
  CSPRNG();
54
  static ::gnu::java::security::prng::IRandom * getSystemInstance();
55
private:
56
  static ::java::lang::String * getProperty(::java::lang::String *);
57
  static ::java::util::List * parseString(::java::lang::String *);
58
  static ::java::util::List * parseURL(::java::lang::String *);
59
public:
60
  virtual ::java::lang::Object * clone();
61
  virtual void setup(::java::util::Map *);
62
  virtual void fillBlock();
63
  virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
64
  virtual void addRandomByte(jbyte);
65
public: // actually package-private
66
  virtual void addQuality(jdouble);
67
  virtual jdouble getQuality();
68
private:
69
  void mixRandomPool(JArray< jbyte > *);
70
  void mixRandomPool();
71
  void generateX917(JArray< jbyte > *);
72
  void fastPoll();
73
  void slowPoll();
74
public: // actually protected
75
  virtual void finalize();
76
private:
77
  static ::java::util::logging::Logger * log;
78
public:
79
  static ::java::lang::String * FILE_SOURCES;
80
  static ::java::lang::String * URL_SOURCES;
81
  static ::java::lang::String * PROGRAM_SOURCES;
82
  static ::java::lang::String * OTHER_SOURCES;
83
  static ::java::lang::String * BLOCKING;
84
private:
85
  static ::java::lang::String * FILES;
86
  static ::java::lang::String * URLS;
87
  static ::java::lang::String * PROGS;
88
  static ::java::lang::String * OTHER;
89
  static ::java::lang::String * BLOCK;
90
  static const jint POOL_SIZE = 256;
91
  static const jint ALLOC_SIZE = 260;
92
  static const jint OUTPUT_SIZE = 128;
93
  static const jint X917_POOL_SIZE = 16;
94
  static ::java::lang::String * HASH_FUNCTION;
95
  static ::java::lang::String * CIPHER;
96
  static const jint MIX_COUNT = 10;
97
  static const jint X917_LIFETIME = 8192;
98
  static const jint SPINNER_COUNT = 8;
99
  static JArray< ::gnu::javax::crypto::prng::CSPRNG$Spinner * > * SPINNERS;
100
  static JArray< ::java::lang::Thread * > * SPINNER_THREADS;
101
  ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) hash;
102
  ::gnu::javax::crypto::cipher::IBlockCipher * cipher;
103
  jint mixCount;
104
  JArray< jbyte > * pool;
105
  jdouble quality;
106
  jint index;
107
  JArray< jbyte > * x917pool;
108
  jint x917count;
109
  jboolean x917init;
110
  ::java::util::List * files;
111
  ::java::util::List * urls;
112
  ::java::util::List * progs;
113
  ::java::util::List * other;
114
  jboolean blocking;
115
  ::gnu::javax::crypto::prng::CSPRNG$Poller * poller;
116
  ::java::lang::Thread * pollerThread;
117
public:
118
  static ::java::lang::Class class$;
119
};
120
 
121
#endif // __gnu_javax_crypto_prng_CSPRNG__

powered by: WebSVN 2.1.0

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