summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/crypto/key/dh
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/javax/crypto/key/dh
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/javax/crypto/key/dh')
-rw-r--r--libjava/gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.h63
-rw-r--r--libjava/gnu/javax/crypto/key/dh/DHKeyPairRawCodec.h53
-rw-r--r--libjava/gnu/javax/crypto/key/dh/DHKeyPairX509Codec.h63
-rw-r--r--libjava/gnu/javax/crypto/key/dh/DiffieHellmanKeyAgreement.h66
-rw-r--r--libjava/gnu/javax/crypto/key/dh/DiffieHellmanReceiver.h54
-rw-r--r--libjava/gnu/javax/crypto/key/dh/DiffieHellmanSender.h55
-rw-r--r--libjava/gnu/javax/crypto/key/dh/ElGamalKeyAgreement.h56
-rw-r--r--libjava/gnu/javax/crypto/key/dh/ElGamalReceiver.h57
-rw-r--r--libjava/gnu/javax/crypto/key/dh/ElGamalSender.h57
-rw-r--r--libjava/gnu/javax/crypto/key/dh/GnuDHKey.h74
-rw-r--r--libjava/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.h96
-rw-r--r--libjava/gnu/javax/crypto/key/dh/GnuDHPrivateKey.h57
-rw-r--r--libjava/gnu/javax/crypto/key/dh/GnuDHPublicKey.h57
-rw-r--r--libjava/gnu/javax/crypto/key/dh/RFC2631.h84
14 files changed, 892 insertions, 0 deletions
diff --git a/libjava/gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.h b/libjava/gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.h
new file mode 100644
index 000000000..17e0ccea0
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/DHKeyPairPKCS8Codec.h
@@ -0,0 +1,63 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_DHKeyPairPKCS8Codec__
+#define __gnu_javax_crypto_key_dh_DHKeyPairPKCS8Codec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ class OID;
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class DHKeyPairPKCS8Codec;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::DHKeyPairPKCS8Codec : public ::java::lang::Object
+{
+
+public:
+ DHKeyPairPKCS8Codec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *);
+ virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *);
+ virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *);
+ virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *);
+private:
+ static ::gnu::java::security::OID * DH_ALG_OID;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_DHKeyPairPKCS8Codec__
diff --git a/libjava/gnu/javax/crypto/key/dh/DHKeyPairRawCodec.h b/libjava/gnu/javax/crypto/key/dh/DHKeyPairRawCodec.h
new file mode 100644
index 000000000..1c5507c98
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/DHKeyPairRawCodec.h
@@ -0,0 +1,53 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_DHKeyPairRawCodec__
+#define __gnu_javax_crypto_key_dh_DHKeyPairRawCodec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class DHKeyPairRawCodec;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::DHKeyPairRawCodec : public ::java::lang::Object
+{
+
+public:
+ DHKeyPairRawCodec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *);
+ virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *);
+ virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *);
+ virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_DHKeyPairRawCodec__
diff --git a/libjava/gnu/javax/crypto/key/dh/DHKeyPairX509Codec.h b/libjava/gnu/javax/crypto/key/dh/DHKeyPairX509Codec.h
new file mode 100644
index 000000000..a52ab8adc
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/DHKeyPairX509Codec.h
@@ -0,0 +1,63 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_DHKeyPairX509Codec__
+#define __gnu_javax_crypto_key_dh_DHKeyPairX509Codec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ class OID;
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class DHKeyPairX509Codec;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::DHKeyPairX509Codec : public ::java::lang::Object
+{
+
+public:
+ DHKeyPairX509Codec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *);
+ virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *);
+ virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *);
+ virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *);
+private:
+ static ::gnu::java::security::OID * DH_ALG_OID;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_DHKeyPairX509Codec__
diff --git a/libjava/gnu/javax/crypto/key/dh/DiffieHellmanKeyAgreement.h b/libjava/gnu/javax/crypto/key/dh/DiffieHellmanKeyAgreement.h
new file mode 100644
index 000000000..c592f769a
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/DiffieHellmanKeyAgreement.h
@@ -0,0 +1,66 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_DiffieHellmanKeyAgreement__
+#define __gnu_javax_crypto_key_dh_DiffieHellmanKeyAgreement__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/BaseKeyAgreementParty.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class DiffieHellmanKeyAgreement;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace interfaces
+ {
+ class DHPrivateKey;
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::DiffieHellmanKeyAgreement : public ::gnu::javax::crypto::key::BaseKeyAgreementParty
+{
+
+public: // actually protected
+ DiffieHellmanKeyAgreement();
+ virtual JArray< jbyte > * engineSharedSecret();
+ virtual void engineReset();
+public:
+ static ::java::lang::String * SOURCE_OF_RANDOMNESS;
+ static ::java::lang::String * KA_DIFFIE_HELLMAN_OWNER_PRIVATE_KEY;
+public: // actually protected
+ ::javax::crypto::interfaces::DHPrivateKey * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::BaseKeyAgreementParty)))) ownerKey;
+ ::java::math::BigInteger * ZZ;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_DiffieHellmanKeyAgreement__
diff --git a/libjava/gnu/javax/crypto/key/dh/DiffieHellmanReceiver.h b/libjava/gnu/javax/crypto/key/dh/DiffieHellmanReceiver.h
new file mode 100644
index 000000000..56bae1b6f
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/DiffieHellmanReceiver.h
@@ -0,0 +1,54 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_DiffieHellmanReceiver__
+#define __gnu_javax_crypto_key_dh_DiffieHellmanReceiver__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/dh/DiffieHellmanKeyAgreement.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace dh
+ {
+ class DiffieHellmanReceiver;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::DiffieHellmanReceiver : public ::gnu::javax::crypto::key::dh::DiffieHellmanKeyAgreement
+{
+
+public:
+ DiffieHellmanReceiver();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::dh::DiffieHellmanKeyAgreement)))) y;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_DiffieHellmanReceiver__
diff --git a/libjava/gnu/javax/crypto/key/dh/DiffieHellmanSender.h b/libjava/gnu/javax/crypto/key/dh/DiffieHellmanSender.h
new file mode 100644
index 000000000..ff9ab2984
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/DiffieHellmanSender.h
@@ -0,0 +1,55 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_DiffieHellmanSender__
+#define __gnu_javax_crypto_key_dh_DiffieHellmanSender__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/dh/DiffieHellmanKeyAgreement.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace dh
+ {
+ class DiffieHellmanSender;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::DiffieHellmanSender : public ::gnu::javax::crypto::key::dh::DiffieHellmanKeyAgreement
+{
+
+public:
+ DiffieHellmanSender();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * sendRandomSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::dh::DiffieHellmanKeyAgreement)))) x;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_DiffieHellmanSender__
diff --git a/libjava/gnu/javax/crypto/key/dh/ElGamalKeyAgreement.h b/libjava/gnu/javax/crypto/key/dh/ElGamalKeyAgreement.h
new file mode 100644
index 000000000..d167c7ce1
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/ElGamalKeyAgreement.h
@@ -0,0 +1,56 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_ElGamalKeyAgreement__
+#define __gnu_javax_crypto_key_dh_ElGamalKeyAgreement__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/BaseKeyAgreementParty.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class ElGamalKeyAgreement;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::ElGamalKeyAgreement : public ::gnu::javax::crypto::key::BaseKeyAgreementParty
+{
+
+public: // actually protected
+ ElGamalKeyAgreement();
+ virtual JArray< jbyte > * engineSharedSecret();
+ virtual void engineReset();
+public:
+ static ::java::lang::String * SOURCE_OF_RANDOMNESS;
+ static ::java::lang::String * KA_ELGAMAL_RECIPIENT_PRIVATE_KEY;
+ static ::java::lang::String * KA_ELGAMAL_RECIPIENT_PUBLIC_KEY;
+public: // actually protected
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::BaseKeyAgreementParty)))) ZZ;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_ElGamalKeyAgreement__
diff --git a/libjava/gnu/javax/crypto/key/dh/ElGamalReceiver.h b/libjava/gnu/javax/crypto/key/dh/ElGamalReceiver.h
new file mode 100644
index 000000000..cba0013d3
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/ElGamalReceiver.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_ElGamalReceiver__
+#define __gnu_javax_crypto_key_dh_ElGamalReceiver__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/dh/ElGamalKeyAgreement.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace dh
+ {
+ class ElGamalReceiver;
+ }
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace interfaces
+ {
+ class DHPrivateKey;
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::ElGamalReceiver : public ::gnu::javax::crypto::key::dh::ElGamalKeyAgreement
+{
+
+public:
+ ElGamalReceiver();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::javax::crypto::interfaces::DHPrivateKey * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::dh::ElGamalKeyAgreement)))) B;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_ElGamalReceiver__
diff --git a/libjava/gnu/javax/crypto/key/dh/ElGamalSender.h b/libjava/gnu/javax/crypto/key/dh/ElGamalSender.h
new file mode 100644
index 000000000..487867fd6
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/ElGamalSender.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_ElGamalSender__
+#define __gnu_javax_crypto_key_dh_ElGamalSender__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/dh/ElGamalKeyAgreement.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace dh
+ {
+ class ElGamalSender;
+ }
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace interfaces
+ {
+ class DHPublicKey;
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::ElGamalSender : public ::gnu::javax::crypto::key::dh::ElGamalKeyAgreement
+{
+
+public:
+ ElGamalSender();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::javax::crypto::interfaces::DHPublicKey * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::dh::ElGamalKeyAgreement)))) B;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_ElGamalSender__
diff --git a/libjava/gnu/javax/crypto/key/dh/GnuDHKey.h b/libjava/gnu/javax/crypto/key/dh/GnuDHKey.h
new file mode 100644
index 000000000..2d8f29222
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/GnuDHKey.h
@@ -0,0 +1,74 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_GnuDHKey__
+#define __gnu_javax_crypto_key_dh_GnuDHKey__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class GnuDHKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace spec
+ {
+ class DHParameterSpec;
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::GnuDHKey : public ::java::lang::Object
+{
+
+public: // actually protected
+ GnuDHKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+public:
+ virtual ::javax::crypto::spec::DHParameterSpec * getParams();
+ virtual ::java::lang::String * getAlgorithm();
+ virtual JArray< jbyte > * getEncoded();
+ virtual ::java::lang::String * getFormat();
+ virtual ::java::math::BigInteger * getQ();
+ virtual jboolean equals(::java::lang::Object *);
+ virtual ::java::lang::String * toString();
+ virtual JArray< jbyte > * getEncoded(jint) = 0;
+public: // actually protected
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) q;
+ ::java::math::BigInteger * p;
+ ::java::math::BigInteger * g;
+ jint defaultFormat;
+private:
+ ::java::lang::String * str;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_GnuDHKey__
diff --git a/libjava/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.h b/libjava/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.h
new file mode 100644
index 000000000..aaab2bf51
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.h
@@ -0,0 +1,96 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_GnuDHKeyPairGenerator__
+#define __gnu_javax_crypto_key_dh_GnuDHKeyPairGenerator__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class Sha160;
+ }
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class GnuDHKeyPairGenerator;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class KeyPair;
+ class SecureRandom;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::GnuDHKeyPairGenerator : public ::java::lang::Object
+{
+
+public:
+ GnuDHKeyPairGenerator();
+ virtual ::java::lang::String * name();
+ virtual void setup(::java::util::Map *);
+ virtual ::java::security::KeyPair * generate();
+private:
+ void nextRandomBytes(JArray< jbyte > *);
+ ::gnu::java::security::util::PRNG * getDefaultPRNG();
+ static ::java::util::logging::Logger * log;
+public:
+ static ::java::lang::String * SOURCE_OF_RANDOMNESS;
+ static ::java::lang::String * DH_PARAMETERS;
+ static ::java::lang::String * PRIME_SIZE;
+ static ::java::lang::String * EXPONENT_SIZE;
+ static ::java::lang::String * PREFERRED_ENCODING_FORMAT;
+ static const jint DEFAULT_PRIME_SIZE = 512;
+ static const jint DEFAULT_EXPONENT_SIZE = 160;
+private:
+ static const jint DEFAULT_ENCODING_FORMAT = 1;
+ ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
+ ::java::security::SecureRandom * rnd;
+ jint l;
+ jint m;
+ ::java::math::BigInteger * seed;
+ ::java::math::BigInteger * counter;
+ ::java::math::BigInteger * q;
+ ::java::math::BigInteger * p;
+ ::java::math::BigInteger * j;
+ ::java::math::BigInteger * g;
+ ::gnu::java::security::util::PRNG * prng;
+ jint preferredFormat;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_GnuDHKeyPairGenerator__
diff --git a/libjava/gnu/javax/crypto/key/dh/GnuDHPrivateKey.h b/libjava/gnu/javax/crypto/key/dh/GnuDHPrivateKey.h
new file mode 100644
index 000000000..142262255
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/GnuDHPrivateKey.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_GnuDHPrivateKey__
+#define __gnu_javax_crypto_key_dh_GnuDHPrivateKey__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/dh/GnuDHKey.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class GnuDHPrivateKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::GnuDHPrivateKey : public ::gnu::javax::crypto::key::dh::GnuDHKey
+{
+
+public:
+ GnuDHPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+ GnuDHPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+ static ::gnu::javax::crypto::key::dh::GnuDHPrivateKey * valueOf(JArray< jbyte > *);
+ virtual ::java::math::BigInteger * getX();
+ virtual JArray< jbyte > * getEncoded(jint);
+ virtual jboolean equals(::java::lang::Object *);
+ virtual ::java::lang::String * toString();
+private:
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::dh::GnuDHKey)))) x;
+ ::java::lang::String * str;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_GnuDHPrivateKey__
diff --git a/libjava/gnu/javax/crypto/key/dh/GnuDHPublicKey.h b/libjava/gnu/javax/crypto/key/dh/GnuDHPublicKey.h
new file mode 100644
index 000000000..980e7f74b
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/GnuDHPublicKey.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_GnuDHPublicKey__
+#define __gnu_javax_crypto_key_dh_GnuDHPublicKey__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/dh/GnuDHKey.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class GnuDHPublicKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::GnuDHPublicKey : public ::gnu::javax::crypto::key::dh::GnuDHKey
+{
+
+public:
+ GnuDHPublicKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+ GnuDHPublicKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+ static ::gnu::javax::crypto::key::dh::GnuDHPublicKey * valueOf(JArray< jbyte > *);
+ virtual ::java::math::BigInteger * getY();
+ virtual JArray< jbyte > * getEncoded(jint);
+ virtual jboolean equals(::java::lang::Object *);
+ virtual ::java::lang::String * toString();
+private:
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::dh::GnuDHKey)))) y;
+ ::java::lang::String * str;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_GnuDHPublicKey__
diff --git a/libjava/gnu/javax/crypto/key/dh/RFC2631.h b/libjava/gnu/javax/crypto/key/dh/RFC2631.h
new file mode 100644
index 000000000..36f1f46c0
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/dh/RFC2631.h
@@ -0,0 +1,84 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_dh_RFC2631__
+#define __gnu_javax_crypto_key_dh_RFC2631__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class Sha160;
+ }
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace dh
+ {
+ class RFC2631;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class SecureRandom;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::dh::RFC2631 : public ::java::lang::Object
+{
+
+public:
+ RFC2631(jint, jint, ::java::security::SecureRandom *);
+ virtual JArray< ::java::math::BigInteger * > * generateParameters();
+private:
+ void nextRandomBytes(JArray< jbyte > *);
+ ::gnu::java::security::util::PRNG * getDefaultPRNG();
+public:
+ static const jint DH_PARAMS_SEED = 0;
+ static const jint DH_PARAMS_COUNTER = 1;
+ static const jint DH_PARAMS_Q = 2;
+ static const jint DH_PARAMS_P = 3;
+ static const jint DH_PARAMS_J = 4;
+ static const jint DH_PARAMS_G = 5;
+private:
+ static ::java::math::BigInteger * TWO;
+ ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
+ jint m;
+ jint L;
+ ::java::security::SecureRandom * rnd;
+ ::gnu::java::security::util::PRNG * prng;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_dh_RFC2631__