summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/security/jce
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/gnu/java/security/jce
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'libjava/gnu/java/security/jce')
-rw-r--r--libjava/gnu/java/security/jce/hash/HavalSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/MD2Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/MD4Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/MD5Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h57
-rw-r--r--libjava/gnu/java/security/jce/hash/RipeMD128Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/RipeMD160Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/Sha160Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/Sha256Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/Sha384Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/Sha512Spi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/TigerSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/HavalRandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/MD2RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/MD4RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/MD5RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h57
-rw-r--r--libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/TigerRandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/VMSecureRandom.h43
-rw-r--r--libjava/gnu/java/security/jce/prng/VMSecureRandom.java78
-rw-r--r--libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc54
-rwxr-xr-xlibjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc33
-rw-r--r--libjava/gnu/java/security/jce/sig/DSSKeyFactory.h57
-rw-r--r--libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h57
-rw-r--r--libjava/gnu/java/security/jce/sig/DSSParameters.h67
-rw-r--r--libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h68
-rw-r--r--libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h106
-rw-r--r--libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h61
-rw-r--r--libjava/gnu/java/security/jce/sig/MD2withRSA.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/MD5withRSA.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/RSAKeyFactory.h57
-rw-r--r--libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h51
-rw-r--r--libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/SHA160withDSS.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/SHA160withRSA.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/SHA256withRSA.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/SHA384withRSA.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/SHA512withRSA.h38
-rw-r--r--libjava/gnu/java/security/jce/sig/SignatureAdapter.h78
48 files changed, 2178 insertions, 0 deletions
diff --git a/libjava/gnu/java/security/jce/hash/HavalSpi.h b/libjava/gnu/java/security/jce/hash/HavalSpi.h
new file mode 100644
index 000000000..71d304a0f
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/HavalSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_HavalSpi__
+#define __gnu_java_security_jce_hash_HavalSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class HavalSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::HavalSpi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ HavalSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_HavalSpi__
diff --git a/libjava/gnu/java/security/jce/hash/MD2Spi.h b/libjava/gnu/java/security/jce/hash/MD2Spi.h
new file mode 100644
index 000000000..88aeccdea
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/MD2Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_MD2Spi__
+#define __gnu_java_security_jce_hash_MD2Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class MD2Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::MD2Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ MD2Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_MD2Spi__
diff --git a/libjava/gnu/java/security/jce/hash/MD4Spi.h b/libjava/gnu/java/security/jce/hash/MD4Spi.h
new file mode 100644
index 000000000..0bc60f7a3
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/MD4Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_MD4Spi__
+#define __gnu_java_security_jce_hash_MD4Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class MD4Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::MD4Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ MD4Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_MD4Spi__
diff --git a/libjava/gnu/java/security/jce/hash/MD5Spi.h b/libjava/gnu/java/security/jce/hash/MD5Spi.h
new file mode 100644
index 000000000..06e97fc9d
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/MD5Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_MD5Spi__
+#define __gnu_java_security_jce_hash_MD5Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class MD5Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::MD5Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ MD5Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_MD5Spi__
diff --git a/libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h b/libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h
new file mode 100644
index 000000000..f12d4caa2
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_MessageDigestAdapter__
+#define __gnu_java_security_jce_hash_MessageDigestAdapter__
+
+#pragma interface
+
+#include <java/security/MessageDigestSpi.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class IMessageDigest;
+ }
+ namespace jce
+ {
+ namespace hash
+ {
+ class MessageDigestAdapter;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::MessageDigestAdapter : public ::java::security::MessageDigestSpi
+{
+
+public: // actually protected
+ MessageDigestAdapter(::java::lang::String *);
+private:
+ MessageDigestAdapter(::gnu::java::security::hash::IMessageDigest *);
+public:
+ virtual ::java::lang::Object * clone();
+ virtual jint engineGetDigestLength();
+ virtual void engineUpdate(jbyte);
+ virtual void engineUpdate(JArray< jbyte > *, jint, jint);
+ virtual JArray< jbyte > * engineDigest();
+ virtual jint engineDigest(JArray< jbyte > *, jint, jint);
+ virtual void engineReset();
+private:
+ ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::security::MessageDigestSpi)))) adaptee;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_MessageDigestAdapter__
diff --git a/libjava/gnu/java/security/jce/hash/RipeMD128Spi.h b/libjava/gnu/java/security/jce/hash/RipeMD128Spi.h
new file mode 100644
index 000000000..35f1979fe
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/RipeMD128Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_RipeMD128Spi__
+#define __gnu_java_security_jce_hash_RipeMD128Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class RipeMD128Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::RipeMD128Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ RipeMD128Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_RipeMD128Spi__
diff --git a/libjava/gnu/java/security/jce/hash/RipeMD160Spi.h b/libjava/gnu/java/security/jce/hash/RipeMD160Spi.h
new file mode 100644
index 000000000..79f5e4960
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/RipeMD160Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_RipeMD160Spi__
+#define __gnu_java_security_jce_hash_RipeMD160Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class RipeMD160Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::RipeMD160Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ RipeMD160Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_RipeMD160Spi__
diff --git a/libjava/gnu/java/security/jce/hash/Sha160Spi.h b/libjava/gnu/java/security/jce/hash/Sha160Spi.h
new file mode 100644
index 000000000..d4fc3924e
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/Sha160Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_Sha160Spi__
+#define __gnu_java_security_jce_hash_Sha160Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class Sha160Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::Sha160Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ Sha160Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_Sha160Spi__
diff --git a/libjava/gnu/java/security/jce/hash/Sha256Spi.h b/libjava/gnu/java/security/jce/hash/Sha256Spi.h
new file mode 100644
index 000000000..206ff8220
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/Sha256Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_Sha256Spi__
+#define __gnu_java_security_jce_hash_Sha256Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class Sha256Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::Sha256Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ Sha256Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_Sha256Spi__
diff --git a/libjava/gnu/java/security/jce/hash/Sha384Spi.h b/libjava/gnu/java/security/jce/hash/Sha384Spi.h
new file mode 100644
index 000000000..2270ffe82
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/Sha384Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_Sha384Spi__
+#define __gnu_java_security_jce_hash_Sha384Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class Sha384Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::Sha384Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ Sha384Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_Sha384Spi__
diff --git a/libjava/gnu/java/security/jce/hash/Sha512Spi.h b/libjava/gnu/java/security/jce/hash/Sha512Spi.h
new file mode 100644
index 000000000..f193304e1
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/Sha512Spi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_Sha512Spi__
+#define __gnu_java_security_jce_hash_Sha512Spi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class Sha512Spi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::Sha512Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ Sha512Spi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_Sha512Spi__
diff --git a/libjava/gnu/java/security/jce/hash/TigerSpi.h b/libjava/gnu/java/security/jce/hash/TigerSpi.h
new file mode 100644
index 000000000..42897e8a5
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/TigerSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_TigerSpi__
+#define __gnu_java_security_jce_hash_TigerSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class TigerSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::TigerSpi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ TigerSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_TigerSpi__
diff --git a/libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h b/libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h
new file mode 100644
index 000000000..a8d883e90
--- /dev/null
+++ b/libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_hash_WhirlpoolSpi__
+#define __gnu_java_security_jce_hash_WhirlpoolSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/hash/MessageDigestAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace hash
+ {
+ class WhirlpoolSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::hash::WhirlpoolSpi : public ::gnu::java::security::jce::hash::MessageDigestAdapter
+{
+
+public:
+ WhirlpoolSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_hash_WhirlpoolSpi__
diff --git a/libjava/gnu/java/security/jce/prng/HavalRandomSpi.h b/libjava/gnu/java/security/jce/prng/HavalRandomSpi.h
new file mode 100644
index 000000000..727d444e9
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/HavalRandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_HavalRandomSpi__
+#define __gnu_java_security_jce_prng_HavalRandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class HavalRandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::HavalRandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ HavalRandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_HavalRandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/MD2RandomSpi.h b/libjava/gnu/java/security/jce/prng/MD2RandomSpi.h
new file mode 100644
index 000000000..053a305aa
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/MD2RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_MD2RandomSpi__
+#define __gnu_java_security_jce_prng_MD2RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class MD2RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::MD2RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ MD2RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_MD2RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/MD4RandomSpi.h b/libjava/gnu/java/security/jce/prng/MD4RandomSpi.h
new file mode 100644
index 000000000..0f11deb53
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/MD4RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_MD4RandomSpi__
+#define __gnu_java_security_jce_prng_MD4RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class MD4RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::MD4RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ MD4RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_MD4RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/MD5RandomSpi.h b/libjava/gnu/java/security/jce/prng/MD5RandomSpi.h
new file mode 100644
index 000000000..8e5cc27f8
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/MD5RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_MD5RandomSpi__
+#define __gnu_java_security_jce_prng_MD5RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class MD5RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::MD5RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ MD5RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_MD5RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h b/libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h
new file mode 100644
index 000000000..51afaea58
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_RipeMD128RandomSpi__
+#define __gnu_java_security_jce_prng_RipeMD128RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class RipeMD128RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::RipeMD128RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ RipeMD128RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_RipeMD128RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h b/libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h
new file mode 100644
index 000000000..f590267fd
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_RipeMD160RandomSpi__
+#define __gnu_java_security_jce_prng_RipeMD160RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class RipeMD160RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::RipeMD160RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ RipeMD160RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_RipeMD160RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h b/libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h
new file mode 100644
index 000000000..7495038c7
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_SecureRandomAdapter__
+#define __gnu_java_security_jce_prng_SecureRandomAdapter__
+
+#pragma interface
+
+#include <java/security/SecureRandomSpi.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class SecureRandomAdapter;
+ }
+ }
+ namespace prng
+ {
+ class MDGenerator;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::SecureRandomAdapter : public ::java::security::SecureRandomSpi
+{
+
+public: // actually protected
+ SecureRandomAdapter(::java::lang::String *);
+public:
+ static JArray< jbyte > * getSeed(jint);
+ virtual JArray< jbyte > * engineGenerateSeed(jint);
+ virtual void engineNextBytes(JArray< jbyte > *);
+ virtual void engineSetSeed(JArray< jbyte > *);
+private:
+ jboolean __attribute__((aligned(__alignof__( ::java::security::SecureRandomSpi)))) isSeeded;
+ ::gnu::java::security::prng::MDGenerator * adaptee;
+ ::java::lang::String * mdName;
+ static ::java::util::logging::Logger * logger;
+ static ::java::lang::String * SECURERANDOM_SOURCE;
+ static ::java::lang::String * JAVA_SECURITY_EGD;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_SecureRandomAdapter__
diff --git a/libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h
new file mode 100644
index 000000000..dc896ab56
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_Sha160RandomSpi__
+#define __gnu_java_security_jce_prng_Sha160RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class Sha160RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::Sha160RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ Sha160RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_Sha160RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h
new file mode 100644
index 000000000..73e676cea
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_Sha256RandomSpi__
+#define __gnu_java_security_jce_prng_Sha256RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class Sha256RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::Sha256RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ Sha256RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_Sha256RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h
new file mode 100644
index 000000000..2f76f6903
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_Sha384RandomSpi__
+#define __gnu_java_security_jce_prng_Sha384RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class Sha384RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::Sha384RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ Sha384RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_Sha384RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h
new file mode 100644
index 000000000..0209fec83
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_Sha512RandomSpi__
+#define __gnu_java_security_jce_prng_Sha512RandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class Sha512RandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::Sha512RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ Sha512RandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_Sha512RandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/TigerRandomSpi.h b/libjava/gnu/java/security/jce/prng/TigerRandomSpi.h
new file mode 100644
index 000000000..238685cc6
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/TigerRandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_TigerRandomSpi__
+#define __gnu_java_security_jce_prng_TigerRandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class TigerRandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::TigerRandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ TigerRandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_TigerRandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/VMSecureRandom.h b/libjava/gnu/java/security/jce/prng/VMSecureRandom.h
new file mode 100644
index 000000000..b24c80514
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/VMSecureRandom.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_VMSecureRandom__
+#define __gnu_java_security_jce_prng_VMSecureRandom__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class VMSecureRandom;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::VMSecureRandom : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMSecureRandom();
+ static jint generateSeed(JArray< jbyte > *, jint, jint);
+ static jint natGenerateSeed(JArray< jbyte > *, jint, jint);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_VMSecureRandom__
diff --git a/libjava/gnu/java/security/jce/prng/VMSecureRandom.java b/libjava/gnu/java/security/jce/prng/VMSecureRandom.java
new file mode 100644
index 000000000..62ff8b7aa
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/VMSecureRandom.java
@@ -0,0 +1,78 @@
+/* VMSecureRandom.java -- random seed generator.
+ Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+
+This file is a part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at
+your option) any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+USA
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package gnu.java.security.jce.prng;
+
+/**
+ * VM-specific methods for generating real (or almost real) random
+ * seeds. VM implementors should write a version of this class that
+ * reads random bytes from some system source.
+ */
+final class VMSecureRandom
+{
+
+ /**
+ * <p>
+ * Generate a random seed. Implementations are free to generate
+ * fewer random bytes than are requested, and leave the remaining
+ * bytes of the destination buffer as zeros. Implementations SHOULD,
+ * however, make a best-effort attempt to satisfy the request.
+ * </p>
+ * <p>
+ * The GCJ implementation uses a native method to read bytes from
+ * a system random source (e.g. /dev/random).
+ * </p>
+ *
+ * @param buffer The destination buffer.
+ * @param offset The offset in the buffer to start putting bytes.
+ * @param length The number of random bytes to generate.
+ * @return the number of bytes generated.
+ */
+ static int generateSeed(byte[] buffer, int offset, int length)
+ {
+ if (length < 0)
+ throw new IllegalArgumentException("length must be nonnegative");
+ if (offset < 0 || offset + length > buffer.length)
+ throw new IndexOutOfBoundsException();
+
+ return natGenerateSeed(buffer, offset, length);
+ }
+
+ static native int natGenerateSeed(byte[] buffer, int offset, int length);
+
+} \ No newline at end of file
diff --git a/libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h b/libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h
new file mode 100644
index 000000000..4d31a5e8d
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_prng_WhirlpoolRandomSpi__
+#define __gnu_java_security_jce_prng_WhirlpoolRandomSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/prng/SecureRandomAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace prng
+ {
+ class WhirlpoolRandomSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::prng::WhirlpoolRandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter
+{
+
+public:
+ WhirlpoolRandomSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_prng_WhirlpoolRandomSpi__
diff --git a/libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc b/libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc
new file mode 100644
index 000000000..a44f3f457
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc
@@ -0,0 +1,54 @@
+// natVMSecureRandomPosix.cc - Native part of VMSecureRandom class for POSIX.
+
+/* Copyright (C) 2009 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+#include <config.h>
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <errno.h>
+
+#include <gcj/cni.h>
+#include <java/lang/InternalError.h>
+#include <gnu/java/security/jce/prng/VMSecureRandom.h>
+
+jint
+gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length)
+{
+ int a, fd;
+ jbyte *bytes = elements (byte_array);
+ ssize_t count;
+
+ for (a = 0; a < offset; ++a)
+ bytes++;
+ fd = open ("/dev/random", O_RDONLY);
+
+ if (fd == -1)
+ {
+ jstring oserr = JvNewStringLatin1 (strerror (errno));
+ throw new ::java::lang::InternalError
+ (JvNewStringLatin1 ("Error opening /dev/random: ")->concat(oserr));
+ }
+
+ count = read (fd, bytes, length);
+ close (fd);
+
+ if (count == -1)
+ {
+ jstring oserr = JvNewStringLatin1 (strerror (errno));
+ throw new ::java::lang::InternalError
+ (JvNewStringLatin1 ("Error reading /dev/random: ")->concat(oserr));
+ }
+
+ return count;
+}
+
diff --git a/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
new file mode 100755
index 000000000..4c7c1f520
--- /dev/null
+++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
@@ -0,0 +1,33 @@
+// natVMSecureRandomWin32.cc - Native part of VMSecureRandom class for Win32.
+
+/* Copyright (C) 2009, 2010 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+#include <config.h>
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <errno.h>
+
+#include <gcj/cni.h>
+#include <java/lang/InternalError.h>
+#include <java/lang/UnsupportedOperationException.h>
+#include <gnu/java/security/jce/prng/VMSecureRandom.h>
+
+jint
+gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length)
+{
+ if (length != 0)
+ throw new ::java::lang::UnsupportedOperationException (
+ JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target."));
+ return 0;
+}
+
diff --git a/libjava/gnu/java/security/jce/sig/DSSKeyFactory.h b/libjava/gnu/java/security/jce/sig/DSSKeyFactory.h
new file mode 100644
index 000000000..139ee5ddf
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/DSSKeyFactory.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_DSSKeyFactory__
+#define __gnu_java_security_jce_sig_DSSKeyFactory__
+
+#pragma interface
+
+#include <java/security/KeyFactorySpi.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class DSSKeyFactory;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class Key;
+ class PrivateKey;
+ class PublicKey;
+ namespace spec
+ {
+ class KeySpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::DSSKeyFactory : public ::java::security::KeyFactorySpi
+{
+
+public:
+ DSSKeyFactory();
+public: // actually protected
+ virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *);
+ virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *);
+ virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *);
+ virtual ::java::security::Key * engineTranslateKey(::java::security::Key *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_DSSKeyFactory__
diff --git a/libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h b/libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h
new file mode 100644
index 000000000..38a6a9419
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_DSSKeyPairGeneratorSpi__
+#define __gnu_java_security_jce_sig_DSSKeyPairGeneratorSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class DSSKeyPairGeneratorSpi;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class SecureRandom;
+ namespace interfaces
+ {
+ class DSAParams;
+ }
+ namespace spec
+ {
+ class AlgorithmParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::DSSKeyPairGeneratorSpi : public ::gnu::java::security::jce::sig::KeyPairGeneratorAdapter
+{
+
+public:
+ DSSKeyPairGeneratorSpi();
+ virtual void initialize(jint, ::java::security::SecureRandom *);
+ virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
+ virtual void initialize(::java::security::interfaces::DSAParams *, ::java::security::SecureRandom *);
+ virtual void initialize(jint, jboolean, ::java::security::SecureRandom *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_DSSKeyPairGeneratorSpi__
diff --git a/libjava/gnu/java/security/jce/sig/DSSParameters.h b/libjava/gnu/java/security/jce/sig/DSSParameters.h
new file mode 100644
index 000000000..6d6f612bd
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/DSSParameters.h
@@ -0,0 +1,67 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_DSSParameters__
+#define __gnu_java_security_jce_sig_DSSParameters__
+
+#pragma interface
+
+#include <java/security/AlgorithmParametersSpi.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class DSSParameters;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ namespace spec
+ {
+ class AlgorithmParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::DSSParameters : public ::java::security::AlgorithmParametersSpi
+{
+
+public:
+ DSSParameters();
+public: // actually protected
+ virtual void engineInit(::java::security::spec::AlgorithmParameterSpec *);
+ virtual void engineInit(JArray< jbyte > *);
+ virtual void engineInit(JArray< jbyte > *, ::java::lang::String *);
+ virtual ::java::security::spec::AlgorithmParameterSpec * engineGetParameterSpec(::java::lang::Class *);
+ virtual JArray< jbyte > * engineGetEncoded();
+ virtual JArray< jbyte > * engineGetEncoded(::java::lang::String *);
+ virtual ::java::lang::String * engineToString();
+private:
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::security::AlgorithmParametersSpi)))) p;
+ ::java::math::BigInteger * q;
+ ::java::math::BigInteger * g;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_DSSParameters__
diff --git a/libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h b/libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h
new file mode 100644
index 000000000..292069400
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h
@@ -0,0 +1,68 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_DSSParametersGenerator__
+#define __gnu_java_security_jce_sig_DSSParametersGenerator__
+
+#pragma interface
+
+#include <java/security/AlgorithmParameterGeneratorSpi.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class DSSParametersGenerator;
+ }
+ }
+ namespace key
+ {
+ namespace dss
+ {
+ class FIPS186;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class AlgorithmParameters;
+ class Provider;
+ class SecureRandom;
+ namespace spec
+ {
+ class AlgorithmParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::DSSParametersGenerator : public ::java::security::AlgorithmParameterGeneratorSpi
+{
+
+public:
+ DSSParametersGenerator();
+public: // actually protected
+ virtual void engineInit(jint, ::java::security::SecureRandom *);
+ virtual void engineInit(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
+ virtual ::java::security::AlgorithmParameters * engineGenerateParameters();
+private:
+ static ::java::security::Provider * GNU;
+ jint __attribute__((aligned(__alignof__( ::java::security::AlgorithmParameterGeneratorSpi)))) modulusLength;
+ ::java::security::SecureRandom * rnd;
+ ::gnu::java::security::key::dss::FIPS186 * fips;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_DSSParametersGenerator__
diff --git a/libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h b/libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h
new file mode 100644
index 000000000..d135b61f9
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_DSSRawSignatureSpi__
+#define __gnu_java_security_jce_sig_DSSRawSignatureSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class DSSRawSignatureSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::DSSRawSignatureSpi : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ DSSRawSignatureSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_DSSRawSignatureSpi__
diff --git a/libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h b/libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h
new file mode 100644
index 000000000..23dced6db
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h
@@ -0,0 +1,106 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_EncodedKeyFactory__
+#define __gnu_java_security_jce_sig_EncodedKeyFactory__
+
+#pragma interface
+
+#include <java/security/KeyFactorySpi.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class EncodedKeyFactory;
+ }
+ }
+ namespace key
+ {
+ namespace dss
+ {
+ class DSSPublicKey;
+ }
+ namespace rsa
+ {
+ class GnuRSAPublicKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class Key;
+ class PrivateKey;
+ class PublicKey;
+ namespace spec
+ {
+ class DSAPrivateKeySpec;
+ class DSAPublicKeySpec;
+ class KeySpec;
+ class RSAPrivateCrtKeySpec;
+ class RSAPublicKeySpec;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace interfaces
+ {
+ class DHPrivateKey;
+ class DHPublicKey;
+ }
+ namespace spec
+ {
+ class DHPrivateKeySpec;
+ class DHPublicKeySpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::EncodedKeyFactory : public ::java::security::KeyFactorySpi
+{
+
+public:
+ EncodedKeyFactory();
+private:
+ static ::java::lang::Object * invokeConstructor(::java::lang::String *, JArray< ::java::lang::Object * > *);
+ static ::java::lang::Class * getConcreteClass(::java::lang::String *);
+ static ::java::lang::reflect::Constructor * getConcreteCtor(::java::lang::Class *);
+ static ::java::lang::Object * invokeValueOf(::java::lang::String *, JArray< jbyte > *);
+ static ::java::lang::reflect::Method * getValueOfMethod(::java::lang::Class *);
+public: // actually protected
+ virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *);
+ virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *);
+ virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *);
+ virtual ::java::security::Key * engineTranslateKey(::java::security::Key *);
+private:
+ ::gnu::java::security::key::dss::DSSPublicKey * decodeDSSPublicKey(::java::security::spec::DSAPublicKeySpec *);
+ ::gnu::java::security::key::rsa::GnuRSAPublicKey * decodeRSAPublicKey(::java::security::spec::RSAPublicKeySpec *);
+ ::javax::crypto::interfaces::DHPublicKey * decodeDHPublicKey(::javax::crypto::spec::DHPublicKeySpec *);
+ ::javax::crypto::interfaces::DHPublicKey * decodeDHPublicKey(JArray< jbyte > *);
+ ::java::security::PrivateKey * decodeDSSPrivateKey(::java::security::spec::DSAPrivateKeySpec *);
+ ::java::security::PrivateKey * decodeRSAPrivateKey(::java::security::spec::RSAPrivateCrtKeySpec *);
+ ::javax::crypto::interfaces::DHPrivateKey * decodeDHPrivateKey(::javax::crypto::spec::DHPrivateKeySpec *);
+ ::javax::crypto::interfaces::DHPrivateKey * decodeDHPrivateKey(JArray< jbyte > *);
+ static ::java::util::logging::Logger * log;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_EncodedKeyFactory__
diff --git a/libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h b/libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h
new file mode 100644
index 000000000..9a7778408
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h
@@ -0,0 +1,61 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_KeyPairGeneratorAdapter__
+#define __gnu_java_security_jce_sig_KeyPairGeneratorAdapter__
+
+#pragma interface
+
+#include <java/security/KeyPairGenerator.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class KeyPairGeneratorAdapter;
+ }
+ }
+ namespace key
+ {
+ class IKeyPairGenerator;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class KeyPair;
+ class SecureRandom;
+ namespace spec
+ {
+ class AlgorithmParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::KeyPairGeneratorAdapter : public ::java::security::KeyPairGenerator
+{
+
+public: // actually protected
+ KeyPairGeneratorAdapter(::java::lang::String *);
+public:
+ virtual void initialize(jint, ::java::security::SecureRandom *) = 0;
+ virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *) = 0;
+ virtual ::java::security::KeyPair * generateKeyPair();
+public: // actually protected
+ ::gnu::java::security::key::IKeyPairGenerator * __attribute__((aligned(__alignof__( ::java::security::KeyPairGenerator)))) adaptee;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_KeyPairGeneratorAdapter__
diff --git a/libjava/gnu/java/security/jce/sig/MD2withRSA.h b/libjava/gnu/java/security/jce/sig/MD2withRSA.h
new file mode 100644
index 000000000..68ae75f32
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/MD2withRSA.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_MD2withRSA__
+#define __gnu_java_security_jce_sig_MD2withRSA__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class MD2withRSA;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::MD2withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ MD2withRSA();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_MD2withRSA__
diff --git a/libjava/gnu/java/security/jce/sig/MD5withRSA.h b/libjava/gnu/java/security/jce/sig/MD5withRSA.h
new file mode 100644
index 000000000..919b74fea
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/MD5withRSA.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_MD5withRSA__
+#define __gnu_java_security_jce_sig_MD5withRSA__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class MD5withRSA;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::MD5withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ MD5withRSA();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_MD5withRSA__
diff --git a/libjava/gnu/java/security/jce/sig/RSAKeyFactory.h b/libjava/gnu/java/security/jce/sig/RSAKeyFactory.h
new file mode 100644
index 000000000..8c10a0a12
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/RSAKeyFactory.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_RSAKeyFactory__
+#define __gnu_java_security_jce_sig_RSAKeyFactory__
+
+#pragma interface
+
+#include <java/security/KeyFactorySpi.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class RSAKeyFactory;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class Key;
+ class PrivateKey;
+ class PublicKey;
+ namespace spec
+ {
+ class KeySpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::RSAKeyFactory : public ::java::security::KeyFactorySpi
+{
+
+public:
+ RSAKeyFactory();
+public: // actually protected
+ virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *);
+ virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *);
+ virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *);
+ virtual ::java::security::Key * engineTranslateKey(::java::security::Key *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_RSAKeyFactory__
diff --git a/libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h b/libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h
new file mode 100644
index 000000000..97f6aced8
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h
@@ -0,0 +1,51 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_RSAKeyPairGeneratorSpi__
+#define __gnu_java_security_jce_sig_RSAKeyPairGeneratorSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class RSAKeyPairGeneratorSpi;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class SecureRandom;
+ namespace spec
+ {
+ class AlgorithmParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::RSAKeyPairGeneratorSpi : public ::gnu::java::security::jce::sig::KeyPairGeneratorAdapter
+{
+
+public:
+ RSAKeyPairGeneratorSpi();
+ virtual void initialize(jint, ::java::security::SecureRandom *);
+ virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_RSAKeyPairGeneratorSpi__
diff --git a/libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h b/libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h
new file mode 100644
index 000000000..56ad41681
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_RSAPSSRawSignatureSpi__
+#define __gnu_java_security_jce_sig_RSAPSSRawSignatureSpi__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class RSAPSSRawSignatureSpi;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::RSAPSSRawSignatureSpi : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ RSAPSSRawSignatureSpi();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_RSAPSSRawSignatureSpi__
diff --git a/libjava/gnu/java/security/jce/sig/SHA160withDSS.h b/libjava/gnu/java/security/jce/sig/SHA160withDSS.h
new file mode 100644
index 000000000..fc595d465
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/SHA160withDSS.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_SHA160withDSS__
+#define __gnu_java_security_jce_sig_SHA160withDSS__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class SHA160withDSS;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::SHA160withDSS : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ SHA160withDSS();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_SHA160withDSS__
diff --git a/libjava/gnu/java/security/jce/sig/SHA160withRSA.h b/libjava/gnu/java/security/jce/sig/SHA160withRSA.h
new file mode 100644
index 000000000..93a886c27
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/SHA160withRSA.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_SHA160withRSA__
+#define __gnu_java_security_jce_sig_SHA160withRSA__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class SHA160withRSA;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::SHA160withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ SHA160withRSA();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_SHA160withRSA__
diff --git a/libjava/gnu/java/security/jce/sig/SHA256withRSA.h b/libjava/gnu/java/security/jce/sig/SHA256withRSA.h
new file mode 100644
index 000000000..9b736522a
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/SHA256withRSA.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_SHA256withRSA__
+#define __gnu_java_security_jce_sig_SHA256withRSA__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class SHA256withRSA;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::SHA256withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ SHA256withRSA();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_SHA256withRSA__
diff --git a/libjava/gnu/java/security/jce/sig/SHA384withRSA.h b/libjava/gnu/java/security/jce/sig/SHA384withRSA.h
new file mode 100644
index 000000000..db01a6e14
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/SHA384withRSA.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_SHA384withRSA__
+#define __gnu_java_security_jce_sig_SHA384withRSA__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class SHA384withRSA;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::SHA384withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ SHA384withRSA();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_SHA384withRSA__
diff --git a/libjava/gnu/java/security/jce/sig/SHA512withRSA.h b/libjava/gnu/java/security/jce/sig/SHA512withRSA.h
new file mode 100644
index 000000000..13ea93543
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/SHA512withRSA.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_SHA512withRSA__
+#define __gnu_java_security_jce_sig_SHA512withRSA__
+
+#pragma interface
+
+#include <gnu/java/security/jce/sig/SignatureAdapter.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class SHA512withRSA;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::SHA512withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter
+{
+
+public:
+ SHA512withRSA();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_SHA512withRSA__
diff --git a/libjava/gnu/java/security/jce/sig/SignatureAdapter.h b/libjava/gnu/java/security/jce/sig/SignatureAdapter.h
new file mode 100644
index 000000000..68fdd64cb
--- /dev/null
+++ b/libjava/gnu/java/security/jce/sig/SignatureAdapter.h
@@ -0,0 +1,78 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_jce_sig_SignatureAdapter__
+#define __gnu_java_security_jce_sig_SignatureAdapter__
+
+#pragma interface
+
+#include <java/security/SignatureSpi.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace jce
+ {
+ namespace sig
+ {
+ class SignatureAdapter;
+ }
+ }
+ namespace sig
+ {
+ class ISignature;
+ class ISignatureCodec;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ class SecureRandom;
+ namespace spec
+ {
+ class AlgorithmParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::java::security::jce::sig::SignatureAdapter : public ::java::security::SignatureSpi
+{
+
+public: // actually protected
+ SignatureAdapter(::java::lang::String *, ::gnu::java::security::sig::ISignatureCodec *);
+private:
+ SignatureAdapter(::gnu::java::security::sig::ISignature *, ::gnu::java::security::sig::ISignatureCodec *);
+public:
+ virtual ::java::lang::Object * clone();
+ virtual void engineInitVerify(::java::security::PublicKey *);
+ virtual void engineInitSign(::java::security::PrivateKey *);
+ virtual void engineInitSign(::java::security::PrivateKey *, ::java::security::SecureRandom *);
+ virtual void engineUpdate(jbyte);
+ virtual void engineUpdate(JArray< jbyte > *, jint, jint);
+ virtual JArray< jbyte > * engineSign();
+ virtual jint engineSign(JArray< jbyte > *, jint, jint);
+ virtual jboolean engineVerify(JArray< jbyte > *);
+ virtual void engineSetParameter(::java::lang::String *, ::java::lang::Object *);
+ virtual void engineSetParameter(::java::security::spec::AlgorithmParameterSpec *);
+ virtual ::java::lang::Object * engineGetParameter(::java::lang::String *);
+private:
+ static ::java::util::logging::Logger * log;
+ ::gnu::java::security::sig::ISignature * __attribute__((aligned(__alignof__( ::java::security::SignatureSpi)))) adaptee;
+ ::gnu::java::security::sig::ISignatureCodec * codec;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_jce_sig_SignatureAdapter__