blob: 4773413e6f1939af7f6cfd7d105abcdded55b26d (
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
116
117
118
119
120
121
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_javax_crypto_prng_CSPRNG__
#define __gnu_javax_crypto_prng_CSPRNG__
#pragma interface
#include <gnu/java/security/prng/BasePRNG.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace java
{
namespace security
{
namespace hash
{
class IMessageDigest;
}
namespace prng
{
class IRandom;
}
}
}
namespace javax
{
namespace crypto
{
namespace cipher
{
class IBlockCipher;
}
namespace prng
{
class CSPRNG;
class CSPRNG$Poller;
class CSPRNG$Spinner;
}
}
}
}
}
class gnu::javax::crypto::prng::CSPRNG : public ::gnu::java::security::prng::BasePRNG
{
public:
CSPRNG();
static ::gnu::java::security::prng::IRandom * getSystemInstance();
private:
static ::java::lang::String * getProperty(::java::lang::String *);
static ::java::util::List * parseString(::java::lang::String *);
static ::java::util::List * parseURL(::java::lang::String *);
public:
virtual ::java::lang::Object * clone();
virtual void setup(::java::util::Map *);
virtual void fillBlock();
virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
virtual void addRandomByte(jbyte);
public: // actually package-private
virtual void addQuality(jdouble);
virtual jdouble getQuality();
private:
void mixRandomPool(JArray< jbyte > *);
void mixRandomPool();
void generateX917(JArray< jbyte > *);
void fastPoll();
void slowPoll();
public: // actually protected
virtual void finalize();
private:
static ::java::util::logging::Logger * log;
public:
static ::java::lang::String * FILE_SOURCES;
static ::java::lang::String * URL_SOURCES;
static ::java::lang::String * PROGRAM_SOURCES;
static ::java::lang::String * OTHER_SOURCES;
static ::java::lang::String * BLOCKING;
private:
static ::java::lang::String * FILES;
static ::java::lang::String * URLS;
static ::java::lang::String * PROGS;
static ::java::lang::String * OTHER;
static ::java::lang::String * BLOCK;
static const jint POOL_SIZE = 256;
static const jint ALLOC_SIZE = 260;
static const jint OUTPUT_SIZE = 128;
static const jint X917_POOL_SIZE = 16;
static ::java::lang::String * HASH_FUNCTION;
static ::java::lang::String * CIPHER;
static const jint MIX_COUNT = 10;
static const jint X917_LIFETIME = 8192;
static const jint SPINNER_COUNT = 8;
static JArray< ::gnu::javax::crypto::prng::CSPRNG$Spinner * > * SPINNERS;
static JArray< ::java::lang::Thread * > * SPINNER_THREADS;
::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) hash;
::gnu::javax::crypto::cipher::IBlockCipher * cipher;
jint mixCount;
JArray< jbyte > * pool;
jdouble quality;
jint index;
JArray< jbyte > * x917pool;
jint x917count;
jboolean x917init;
::java::util::List * files;
::java::util::List * urls;
::java::util::List * progs;
::java::util::List * other;
jboolean blocking;
::gnu::javax::crypto::prng::CSPRNG$Poller * poller;
::java::lang::Thread * pollerThread;
public:
static ::java::lang::Class class$;
};
#endif // __gnu_javax_crypto_prng_CSPRNG__
|