summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/security/prng
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/java/security/prng')
-rw-r--r--libjava/gnu/java/security/prng/BasePRNG.h59
-rw-r--r--libjava/gnu/java/security/prng/EntropySource.h38
-rw-r--r--libjava/gnu/java/security/prng/IRandom.h44
-rw-r--r--libjava/gnu/java/security/prng/LimitReachedException.h36
-rw-r--r--libjava/gnu/java/security/prng/MDGenerator.h51
-rw-r--r--libjava/gnu/java/security/prng/PRNGFactory.h39
-rw-r--r--libjava/gnu/java/security/prng/RandomEvent.h45
-rw-r--r--libjava/gnu/java/security/prng/RandomEventListener.h36
8 files changed, 348 insertions, 0 deletions
diff --git a/libjava/gnu/java/security/prng/BasePRNG.h b/libjava/gnu/java/security/prng/BasePRNG.h
new file mode 100644
index 000000000..4b20623ef
--- /dev/null
+++ b/libjava/gnu/java/security/prng/BasePRNG.h
@@ -0,0 +1,59 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_BasePRNG__
+#define __gnu_java_security_prng_BasePRNG__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class BasePRNG;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::BasePRNG : public ::java::lang::Object
+{
+
+public: // actually protected
+ BasePRNG(::java::lang::String *);
+public:
+ virtual ::java::lang::String * name();
+ virtual void init(::java::util::Map *);
+ virtual jbyte nextByte();
+ virtual void nextBytes(JArray< jbyte > *);
+ virtual void nextBytes(JArray< jbyte > *, jint, jint);
+ virtual void addRandomByte(jbyte);
+ virtual void addRandomBytes(JArray< jbyte > *);
+ virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
+ virtual jboolean isInitialised();
+private:
+ jbyte nextByteInternal();
+public:
+ virtual ::java::lang::Object * clone();
+ virtual void setup(::java::util::Map *) = 0;
+ virtual void fillBlock() = 0;
+public: // actually protected
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__;
+ jboolean initialised;
+ JArray< jbyte > * buffer;
+ jint ndx;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_prng_BasePRNG__
diff --git a/libjava/gnu/java/security/prng/EntropySource.h b/libjava/gnu/java/security/prng/EntropySource.h
new file mode 100644
index 000000000..8f7377ac8
--- /dev/null
+++ b/libjava/gnu/java/security/prng/EntropySource.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_EntropySource__
+#define __gnu_java_security_prng_EntropySource__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class EntropySource;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::EntropySource : public ::java::lang::Object
+{
+
+public:
+ virtual jdouble quality() = 0;
+ virtual JArray< jbyte > * nextBytes() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __gnu_java_security_prng_EntropySource__
diff --git a/libjava/gnu/java/security/prng/IRandom.h b/libjava/gnu/java/security/prng/IRandom.h
new file mode 100644
index 000000000..54a7373f6
--- /dev/null
+++ b/libjava/gnu/java/security/prng/IRandom.h
@@ -0,0 +1,44 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_IRandom__
+#define __gnu_java_security_prng_IRandom__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class IRandom;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::IRandom : public ::java::lang::Object
+{
+
+public:
+ virtual ::java::lang::String * name() = 0;
+ virtual void init(::java::util::Map *) = 0;
+ virtual jbyte nextByte() = 0;
+ virtual void nextBytes(JArray< jbyte > *, jint, jint) = 0;
+ virtual void addRandomByte(jbyte) = 0;
+ virtual void addRandomBytes(JArray< jbyte > *) = 0;
+ virtual void addRandomBytes(JArray< jbyte > *, jint, jint) = 0;
+ virtual ::java::lang::Object * clone() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __gnu_java_security_prng_IRandom__
diff --git a/libjava/gnu/java/security/prng/LimitReachedException.h b/libjava/gnu/java/security/prng/LimitReachedException.h
new file mode 100644
index 000000000..3dede836c
--- /dev/null
+++ b/libjava/gnu/java/security/prng/LimitReachedException.h
@@ -0,0 +1,36 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_LimitReachedException__
+#define __gnu_java_security_prng_LimitReachedException__
+
+#pragma interface
+
+#include <java/lang/Exception.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class LimitReachedException;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::LimitReachedException : public ::java::lang::Exception
+{
+
+public:
+ LimitReachedException();
+ LimitReachedException(::java::lang::String *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_prng_LimitReachedException__
diff --git a/libjava/gnu/java/security/prng/MDGenerator.h b/libjava/gnu/java/security/prng/MDGenerator.h
new file mode 100644
index 000000000..d14566c89
--- /dev/null
+++ b/libjava/gnu/java/security/prng/MDGenerator.h
@@ -0,0 +1,51 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_MDGenerator__
+#define __gnu_java_security_prng_MDGenerator__
+
+#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 MDGenerator;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::MDGenerator : public ::gnu::java::security::prng::BasePRNG
+{
+
+public:
+ MDGenerator();
+ virtual void setup(::java::util::Map *);
+ virtual void fillBlock();
+ virtual void addRandomByte(jbyte);
+ virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
+ virtual ::java::lang::Object * clone();
+ static ::java::lang::String * MD_NAME;
+ static ::java::lang::String * SEEED;
+private:
+ ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) md;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_prng_MDGenerator__
diff --git a/libjava/gnu/java/security/prng/PRNGFactory.h b/libjava/gnu/java/security/prng/PRNGFactory.h
new file mode 100644
index 000000000..a1e3f28cd
--- /dev/null
+++ b/libjava/gnu/java/security/prng/PRNGFactory.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_PRNGFactory__
+#define __gnu_java_security_prng_PRNGFactory__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class IRandom;
+ class PRNGFactory;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::PRNGFactory : public ::java::lang::Object
+{
+
+public: // actually protected
+ PRNGFactory();
+public:
+ static ::gnu::java::security::prng::IRandom * getInstance(::java::lang::String *);
+ static ::java::util::Set * getNames();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_prng_PRNGFactory__
diff --git a/libjava/gnu/java/security/prng/RandomEvent.h b/libjava/gnu/java/security/prng/RandomEvent.h
new file mode 100644
index 000000000..2b2639633
--- /dev/null
+++ b/libjava/gnu/java/security/prng/RandomEvent.h
@@ -0,0 +1,45 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_RandomEvent__
+#define __gnu_java_security_prng_RandomEvent__
+
+#pragma interface
+
+#include <java/util/EventObject.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class RandomEvent;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::RandomEvent : public ::java::util::EventObject
+{
+
+public:
+ RandomEvent(::java::lang::Object *, jbyte, jbyte, JArray< jbyte > *);
+ virtual jbyte getSourceNumber();
+ virtual jbyte getPoolNumber();
+ virtual JArray< jbyte > * getData();
+private:
+ jbyte __attribute__((aligned(__alignof__( ::java::util::EventObject)))) sourceNumber;
+ jbyte poolNumber;
+ JArray< jbyte > * data;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_prng_RandomEvent__
diff --git a/libjava/gnu/java/security/prng/RandomEventListener.h b/libjava/gnu/java/security/prng/RandomEventListener.h
new file mode 100644
index 000000000..5aef74bec
--- /dev/null
+++ b/libjava/gnu/java/security/prng/RandomEventListener.h
@@ -0,0 +1,36 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_prng_RandomEventListener__
+#define __gnu_java_security_prng_RandomEventListener__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class RandomEvent;
+ class RandomEventListener;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::prng::RandomEventListener : public ::java::lang::Object
+{
+
+public:
+ virtual void addRandomEvent(::gnu::java::security::prng::RandomEvent *) = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __gnu_java_security_prng_RandomEventListener__