summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/crypto/key
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/javax/crypto/key')
-rw-r--r--libjava/gnu/javax/crypto/key/BaseKeyAgreementParty.h90
-rw-r--r--libjava/gnu/javax/crypto/key/GnuPBEKey.h57
-rw-r--r--libjava/gnu/javax/crypto/key/GnuSecretKey.h47
-rw-r--r--libjava/gnu/javax/crypto/key/IKeyAgreementParty.h44
-rw-r--r--libjava/gnu/javax/crypto/key/IncomingMessage.h77
-rw-r--r--libjava/gnu/javax/crypto/key/KeyAgreementException.h45
-rw-r--r--libjava/gnu/javax/crypto/key/KeyAgreementFactory.h39
-rw-r--r--libjava/gnu/javax/crypto/key/OutgoingMessage.h61
-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
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6Host.h63
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h72
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6SaslClient.h43
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6SaslServer.h43
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6TLSClient.h62
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6TLSServer.h66
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRP6User.h60
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRPAlgorithm.h60
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRPKey.h59
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.h92
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRPKeyPairRawCodec.h53
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRPPrivateKey.h60
-rw-r--r--libjava/gnu/javax/crypto/key/srp6/SRPPublicKey.h57
35 files changed, 2142 insertions, 0 deletions
diff --git a/libjava/gnu/javax/crypto/key/BaseKeyAgreementParty.h b/libjava/gnu/javax/crypto/key/BaseKeyAgreementParty.h
new file mode 100644
index 000000000..20d76e632
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/BaseKeyAgreementParty.h
@@ -0,0 +1,90 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_BaseKeyAgreementParty__
+#define __gnu_javax_crypto_key_BaseKeyAgreementParty__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class IRandom;
+ }
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class BaseKeyAgreementParty;
+ class IncomingMessage;
+ class OutgoingMessage;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class SecureRandom;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::BaseKeyAgreementParty : public ::java::lang::Object
+{
+
+public: // actually protected
+ BaseKeyAgreementParty(::java::lang::String *);
+public:
+ virtual ::java::lang::String * name();
+ virtual void init(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * processMessage(::gnu::javax::crypto::key::IncomingMessage *);
+ virtual jboolean isComplete();
+ virtual JArray< jbyte > * getSharedSecret();
+ virtual void reset();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *) = 0;
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *) = 0;
+ virtual JArray< jbyte > * engineSharedSecret() = 0;
+ virtual void engineReset() = 0;
+ virtual void nextRandomBytes(JArray< jbyte > *);
+private:
+ ::gnu::java::security::util::PRNG * getDefaultPRNG();
+public: // actually protected
+ static ::java::math::BigInteger * TWO;
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__;
+ jboolean initialised;
+ jint step;
+ jboolean complete;
+ ::java::security::SecureRandom * rnd;
+ ::gnu::java::security::prng::IRandom * irnd;
+private:
+ ::gnu::java::security::util::PRNG * prng;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_BaseKeyAgreementParty__
diff --git a/libjava/gnu/javax/crypto/key/GnuPBEKey.h b/libjava/gnu/javax/crypto/key/GnuPBEKey.h
new file mode 100644
index 000000000..e52cd5e3c
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/GnuPBEKey.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_GnuPBEKey__
+#define __gnu_javax_crypto_key_GnuPBEKey__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class GnuPBEKey;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace spec
+ {
+ class PBEKeySpec;
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::GnuPBEKey : public ::java::lang::Object
+{
+
+public:
+ GnuPBEKey(::javax::crypto::spec::PBEKeySpec *);
+ GnuPBEKey(JArray< jchar > *, JArray< jbyte > *, jint);
+ virtual jint getIterationCount();
+ virtual JArray< jchar > * getPassword();
+ virtual JArray< jbyte > * getSalt();
+ virtual ::java::lang::String * getAlgorithm();
+ virtual ::java::lang::String * getFormat();
+ virtual JArray< jbyte > * getEncoded();
+private:
+ ::javax::crypto::spec::PBEKeySpec * __attribute__((aligned(__alignof__( ::java::lang::Object)))) spec;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_GnuPBEKey__
diff --git a/libjava/gnu/javax/crypto/key/GnuSecretKey.h b/libjava/gnu/javax/crypto/key/GnuSecretKey.h
new file mode 100644
index 000000000..b9a3133d6
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/GnuSecretKey.h
@@ -0,0 +1,47 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_GnuSecretKey__
+#define __gnu_javax_crypto_key_GnuSecretKey__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class GnuSecretKey;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::GnuSecretKey : public ::java::lang::Object
+{
+
+public:
+ GnuSecretKey(JArray< jbyte > *, ::java::lang::String *);
+ GnuSecretKey(JArray< jbyte > *, jint, jint, ::java::lang::String *);
+ virtual ::java::lang::String * getAlgorithm();
+ virtual JArray< jbyte > * getEncoded();
+ virtual ::java::lang::String * getFormat();
+ virtual jboolean equals(::java::lang::Object *);
+ virtual ::java::lang::String * toString();
+private:
+ JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) key;
+ ::java::lang::String * algorithm;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_GnuSecretKey__
diff --git a/libjava/gnu/javax/crypto/key/IKeyAgreementParty.h b/libjava/gnu/javax/crypto/key/IKeyAgreementParty.h
new file mode 100644
index 000000000..4fb301943
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/IKeyAgreementParty.h
@@ -0,0 +1,44 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_IKeyAgreementParty__
+#define __gnu_javax_crypto_key_IKeyAgreementParty__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IKeyAgreementParty;
+ class IncomingMessage;
+ class OutgoingMessage;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::IKeyAgreementParty : public ::java::lang::Object
+{
+
+public:
+ virtual ::java::lang::String * name() = 0;
+ virtual void init(::java::util::Map *) = 0;
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * processMessage(::gnu::javax::crypto::key::IncomingMessage *) = 0;
+ virtual jboolean isComplete() = 0;
+ virtual JArray< jbyte > * getSharedSecret() = 0;
+ virtual void reset() = 0;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __gnu_javax_crypto_key_IKeyAgreementParty__
diff --git a/libjava/gnu/javax/crypto/key/IncomingMessage.h b/libjava/gnu/javax/crypto/key/IncomingMessage.h
new file mode 100644
index 000000000..ed3f33a57
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/IncomingMessage.h
@@ -0,0 +1,77 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_IncomingMessage__
+#define __gnu_javax_crypto_key_IncomingMessage__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace key
+ {
+ class IKeyPairCodec;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::IncomingMessage : public ::java::lang::Object
+{
+
+public:
+ IncomingMessage(JArray< jbyte > *);
+private:
+ IncomingMessage();
+public:
+ static ::gnu::javax::crypto::key::IncomingMessage * getInstance(JArray< jbyte > *);
+ static ::gnu::javax::crypto::key::IncomingMessage * getInstance(JArray< jbyte > *, jint, jint);
+ static jint twoBytesToLength(JArray< jbyte > *);
+ static jint fourBytesToLength(JArray< jbyte > *);
+ virtual jboolean hasMoreElements();
+ virtual ::java::security::PublicKey * readPublicKey();
+ virtual ::java::security::PrivateKey * readPrivateKey();
+ virtual ::java::math::BigInteger * readMPI();
+ virtual ::java::lang::String * readString();
+private:
+ ::gnu::java::security::key::IKeyPairCodec * getKeyPairCodec(jint);
+public: // actually protected
+ ::java::io::ByteArrayInputStream * __attribute__((aligned(__alignof__( ::java::lang::Object)))) in;
+ jint length;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_IncomingMessage__
diff --git a/libjava/gnu/javax/crypto/key/KeyAgreementException.h b/libjava/gnu/javax/crypto/key/KeyAgreementException.h
new file mode 100644
index 000000000..77bc760d1
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/KeyAgreementException.h
@@ -0,0 +1,45 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_KeyAgreementException__
+#define __gnu_javax_crypto_key_KeyAgreementException__
+
+#pragma interface
+
+#include <java/security/KeyManagementException.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class KeyAgreementException;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::KeyAgreementException : public ::java::security::KeyManagementException
+{
+
+public:
+ KeyAgreementException();
+ KeyAgreementException(::java::lang::String *);
+ KeyAgreementException(::java::lang::String *, ::java::lang::Throwable *);
+ virtual ::java::lang::Throwable * getCause();
+ virtual void printStackTrace();
+ virtual void printStackTrace(::java::io::PrintStream *);
+ virtual void printStackTrace(::java::io::PrintWriter *);
+ virtual ::java::lang::String * toString();
+private:
+ ::java::lang::Throwable * __attribute__((aligned(__alignof__( ::java::security::KeyManagementException)))) cause;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_KeyAgreementException__
diff --git a/libjava/gnu/javax/crypto/key/KeyAgreementFactory.h b/libjava/gnu/javax/crypto/key/KeyAgreementFactory.h
new file mode 100644
index 000000000..abbfd2871
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/KeyAgreementFactory.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_KeyAgreementFactory__
+#define __gnu_javax_crypto_key_KeyAgreementFactory__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IKeyAgreementParty;
+ class KeyAgreementFactory;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::KeyAgreementFactory : public ::java::lang::Object
+{
+
+ KeyAgreementFactory();
+public:
+ static ::gnu::javax::crypto::key::IKeyAgreementParty * getPartyAInstance(::java::lang::String *);
+ static ::gnu::javax::crypto::key::IKeyAgreementParty * getPartyBInstance(::java::lang::String *);
+ static ::java::util::Set * getNames();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_KeyAgreementFactory__
diff --git a/libjava/gnu/javax/crypto/key/OutgoingMessage.h b/libjava/gnu/javax/crypto/key/OutgoingMessage.h
new file mode 100644
index 000000000..8f46a1e16
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/OutgoingMessage.h
@@ -0,0 +1,61 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_OutgoingMessage__
+#define __gnu_javax_crypto_key_OutgoingMessage__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class OutgoingMessage;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class Key;
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::OutgoingMessage : public ::java::lang::Object
+{
+
+public:
+ OutgoingMessage();
+ virtual JArray< jbyte > * toByteArray();
+ virtual JArray< jbyte > * wrap();
+ virtual void writePublicKey(::java::security::PublicKey *);
+ virtual void writePrivateKey(::java::security::PrivateKey *);
+ virtual void writeMPI(::java::math::BigInteger *);
+ virtual void writeString(::java::lang::String *);
+private:
+ void writeKey(::java::security::Key *);
+ jint getKeyType(::java::security::Key *);
+ ::java::io::ByteArrayOutputStream * __attribute__((aligned(__alignof__( ::java::lang::Object)))) out;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_OutgoingMessage__
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__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6Host.h b/libjava/gnu/javax/crypto/key/srp6/SRP6Host.h
new file mode 100644
index 000000000..34913f031
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6Host.h
@@ -0,0 +1,63 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6Host__
+#define __gnu_javax_crypto_key_srp6_SRP6Host__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace srp6
+ {
+ class SRP6Host;
+ }
+ }
+ namespace sasl
+ {
+ namespace srp
+ {
+ class SRPAuthInfoProvider;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class KeyPair;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6Host : public ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement
+{
+
+public:
+ SRP6Host();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+ virtual void engineReset();
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::java::security::KeyPair * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement)))) hostKeyPair;
+ ::gnu::javax::crypto::sasl::srp::SRPAuthInfoProvider * passwordDB;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6Host__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h b/libjava/gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h
new file mode 100644
index 000000000..7479d7e68
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h
@@ -0,0 +1,72 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6KeyAgreement__
+#define __gnu_javax_crypto_key_srp6_SRP6KeyAgreement__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/BaseKeyAgreementParty.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRP6KeyAgreement;
+ }
+ }
+ namespace sasl
+ {
+ namespace srp
+ {
+ class SRP;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6KeyAgreement : public ::gnu::javax::crypto::key::BaseKeyAgreementParty
+{
+
+public: // actually protected
+ SRP6KeyAgreement();
+ virtual JArray< jbyte > * engineSharedSecret();
+ virtual void engineReset();
+ virtual ::java::math::BigInteger * uValue(::java::math::BigInteger *, ::java::math::BigInteger *);
+public:
+ static ::java::lang::String * SOURCE_OF_RANDOMNESS;
+ static ::java::lang::String * SHARED_MODULUS;
+ static ::java::lang::String * GENERATOR;
+ static ::java::lang::String * HASH_FUNCTION;
+ static ::java::lang::String * USER_IDENTITY;
+ static ::java::lang::String * USER_PASSWORD;
+ static ::java::lang::String * HOST_PASSWORD_DB;
+public: // actually protected
+ static ::java::math::BigInteger * THREE;
+ ::gnu::javax::crypto::sasl::srp::SRP * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::BaseKeyAgreementParty)))) srp;
+ ::java::math::BigInteger * N;
+ ::java::math::BigInteger * g;
+ ::java::math::BigInteger * K;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6KeyAgreement__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6SaslClient.h b/libjava/gnu/javax/crypto/key/srp6/SRP6SaslClient.h
new file mode 100644
index 000000000..179741557
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6SaslClient.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6SaslClient__
+#define __gnu_javax_crypto_key_srp6_SRP6SaslClient__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRP6TLSClient.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace srp6
+ {
+ class SRP6SaslClient;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6SaslClient : public ::gnu::javax::crypto::key::srp6::SRP6TLSClient
+{
+
+public:
+ SRP6SaslClient();
+public: // actually protected
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6SaslClient__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6SaslServer.h b/libjava/gnu/javax/crypto/key/srp6/SRP6SaslServer.h
new file mode 100644
index 000000000..5ac6a478e
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6SaslServer.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6SaslServer__
+#define __gnu_javax_crypto_key_srp6_SRP6SaslServer__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRP6TLSServer.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace srp6
+ {
+ class SRP6SaslServer;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6SaslServer : public ::gnu::javax::crypto::key::srp6::SRP6TLSServer
+{
+
+public:
+ SRP6SaslServer();
+public: // actually protected
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6SaslServer__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6TLSClient.h b/libjava/gnu/javax/crypto/key/srp6/SRP6TLSClient.h
new file mode 100644
index 000000000..b5df35136
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6TLSClient.h
@@ -0,0 +1,62 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6TLSClient__
+#define __gnu_javax_crypto_key_srp6_SRP6TLSClient__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace srp6
+ {
+ class SRP6TLSClient;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class KeyPair;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6TLSClient : public ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement
+{
+
+public:
+ SRP6TLSClient();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+ virtual void engineReset();
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * sendIdentity(::gnu::javax::crypto::key::IncomingMessage *);
+public: // actually protected
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+private:
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement)))) I;
+ JArray< jbyte > * p;
+ ::java::security::KeyPair * userKeyPair;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6TLSClient__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6TLSServer.h b/libjava/gnu/javax/crypto/key/srp6/SRP6TLSServer.h
new file mode 100644
index 000000000..facb7cbb7
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6TLSServer.h
@@ -0,0 +1,66 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6TLSServer__
+#define __gnu_javax_crypto_key_srp6_SRP6TLSServer__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace srp6
+ {
+ class SRP6TLSServer;
+ }
+ }
+ namespace sasl
+ {
+ namespace srp
+ {
+ class SRPAuthInfoProvider;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class KeyPair;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6TLSServer : public ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement
+{
+
+public:
+ SRP6TLSServer();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+ virtual void engineReset();
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * sendParameters(::gnu::javax::crypto::key::IncomingMessage *);
+public: // actually protected
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+private:
+ ::java::security::KeyPair * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement)))) hostKeyPair;
+ ::gnu::javax::crypto::sasl::srp::SRPAuthInfoProvider * passwordDB;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6TLSServer__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRP6User.h b/libjava/gnu/javax/crypto/key/srp6/SRP6User.h
new file mode 100644
index 000000000..2d9f72510
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRP6User.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRP6User__
+#define __gnu_javax_crypto_key_srp6_SRP6User__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRP6KeyAgreement.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ class IncomingMessage;
+ class OutgoingMessage;
+ namespace srp6
+ {
+ class SRP6User;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class KeyPair;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRP6User : public ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement
+{
+
+public:
+ SRP6User();
+public: // actually protected
+ virtual void engineInit(::java::util::Map *);
+ virtual ::gnu::javax::crypto::key::OutgoingMessage * engineProcessMessage(::gnu::javax::crypto::key::IncomingMessage *);
+ virtual void engineReset();
+private:
+ ::gnu::javax::crypto::key::OutgoingMessage * sendIdentity(::gnu::javax::crypto::key::IncomingMessage *);
+ ::gnu::javax::crypto::key::OutgoingMessage * computeSharedSecret(::gnu::javax::crypto::key::IncomingMessage *);
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::srp6::SRP6KeyAgreement)))) I;
+ JArray< jbyte > * p;
+ ::java::security::KeyPair * userKeyPair;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRP6User__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRPAlgorithm.h b/libjava/gnu/javax/crypto/key/srp6/SRPAlgorithm.h
new file mode 100644
index 000000000..534c681c8
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRPAlgorithm.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRPAlgorithm__
+#define __gnu_javax_crypto_key_srp6_SRPAlgorithm__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRPAlgorithm;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRPAlgorithm : public ::java::lang::Object
+{
+
+ SRPAlgorithm();
+public:
+ static void checkParams(::java::math::BigInteger *, ::java::math::BigInteger *);
+ static ::java::math::BigInteger * N_2048;
+ static ::java::math::BigInteger * N_1536;
+ static ::java::math::BigInteger * N_1280;
+ static ::java::math::BigInteger * N_1024;
+ static ::java::math::BigInteger * N_768;
+ static ::java::math::BigInteger * N_640;
+ static ::java::math::BigInteger * N_512;
+ static ::java::math::BigInteger * N_384;
+ static ::java::math::BigInteger * N_264;
+private:
+ static ::java::math::BigInteger * ZERO;
+ static ::java::math::BigInteger * ONE;
+ static ::java::math::BigInteger * TWO;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRPAlgorithm__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRPKey.h b/libjava/gnu/javax/crypto/key/srp6/SRPKey.h
new file mode 100644
index 000000000..9c4ef5189
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRPKey.h
@@ -0,0 +1,59 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRPKey__
+#define __gnu_javax_crypto_key_srp6_SRPKey__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRPKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRPKey : public ::java::lang::Object
+{
+
+public: // actually protected
+ SRPKey(::java::math::BigInteger *, ::java::math::BigInteger *);
+public:
+ virtual ::java::lang::String * getAlgorithm();
+ virtual JArray< jbyte > * getEncoded();
+ virtual ::java::lang::String * getFormat();
+ virtual ::java::math::BigInteger * getN();
+ virtual ::java::math::BigInteger * getG();
+ virtual jboolean equals(::java::lang::Object *);
+ virtual JArray< jbyte > * getEncoded(jint) = 0;
+public: // actually protected
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) N;
+ ::java::math::BigInteger * g;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRPKey__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.h b/libjava/gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.h
new file mode 100644
index 000000000..2be95fbb3
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRPKeyPairGenerator.h
@@ -0,0 +1,92 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRPKeyPairGenerator__
+#define __gnu_javax_crypto_key_srp6_SRPKeyPairGenerator__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRPKeyPairGenerator;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class KeyPair;
+ class SecureRandom;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRPKeyPairGenerator : public ::java::lang::Object
+{
+
+public:
+ SRPKeyPairGenerator();
+ virtual ::java::lang::String * name();
+ virtual void setup(::java::util::Map *);
+ virtual ::java::security::KeyPair * generate();
+private:
+ JArray< ::java::math::BigInteger * > * generateParameters();
+ ::java::security::KeyPair * hostKeyPair();
+ ::java::security::KeyPair * userKeyPair();
+ void nextRandomBytes(JArray< jbyte > *);
+ ::gnu::java::security::util::PRNG * getDefaultPRNG();
+ static ::java::util::logging::Logger * log;
+ static ::java::math::BigInteger * ZERO;
+ static ::java::math::BigInteger * ONE;
+ static ::java::math::BigInteger * TWO;
+ static ::java::math::BigInteger * THREE;
+public:
+ static ::java::lang::String * MODULUS_LENGTH;
+ static ::java::lang::String * USE_DEFAULTS;
+ static ::java::lang::String * SHARED_MODULUS;
+ static ::java::lang::String * GENERATOR;
+ static ::java::lang::String * USER_VERIFIER;
+ static ::java::lang::String * SOURCE_OF_RANDOMNESS;
+private:
+ static const jint DEFAULT_MODULUS_LENGTH = 1024;
+ ::java::security::SecureRandom * __attribute__((aligned(__alignof__( ::java::lang::Object)))) rnd;
+ jint l;
+ ::java::math::BigInteger * N;
+ ::java::math::BigInteger * g;
+ ::java::math::BigInteger * v;
+ ::gnu::java::security::util::PRNG * prng;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRPKeyPairGenerator__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRPKeyPairRawCodec.h b/libjava/gnu/javax/crypto/key/srp6/SRPKeyPairRawCodec.h
new file mode 100644
index 000000000..3f6f0db75
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRPKeyPairRawCodec.h
@@ -0,0 +1,53 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRPKeyPairRawCodec__
+#define __gnu_javax_crypto_key_srp6_SRPKeyPairRawCodec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRPKeyPairRawCodec;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRPKeyPairRawCodec : public ::java::lang::Object
+{
+
+public:
+ SRPKeyPairRawCodec();
+ 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_srp6_SRPKeyPairRawCodec__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRPPrivateKey.h b/libjava/gnu/javax/crypto/key/srp6/SRPPrivateKey.h
new file mode 100644
index 000000000..af942a1eb
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRPPrivateKey.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRPPrivateKey__
+#define __gnu_javax_crypto_key_srp6_SRPPrivateKey__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRPKey.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRPPrivateKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRPPrivateKey : public ::gnu::javax::crypto::key::srp6::SRPKey
+{
+
+public:
+ SRPPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+ SRPPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+public: // actually package-private
+ SRPPrivateKey(JArray< ::java::math::BigInteger * > *);
+public:
+ static ::gnu::javax::crypto::key::srp6::SRPPrivateKey * valueOf(JArray< jbyte > *);
+ virtual ::java::math::BigInteger * getX();
+ virtual ::java::math::BigInteger * getV();
+ virtual JArray< jbyte > * getEncoded(jint);
+ virtual jboolean equals(::java::lang::Object *);
+private:
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::srp6::SRPKey)))) X;
+ ::java::math::BigInteger * v;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRPPrivateKey__
diff --git a/libjava/gnu/javax/crypto/key/srp6/SRPPublicKey.h b/libjava/gnu/javax/crypto/key/srp6/SRPPublicKey.h
new file mode 100644
index 000000000..8b1b7b0d0
--- /dev/null
+++ b/libjava/gnu/javax/crypto/key/srp6/SRPPublicKey.h
@@ -0,0 +1,57 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_crypto_key_srp6_SRPPublicKey__
+#define __gnu_javax_crypto_key_srp6_SRPPublicKey__
+
+#pragma interface
+
+#include <gnu/javax/crypto/key/srp6/SRPKey.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace crypto
+ {
+ namespace key
+ {
+ namespace srp6
+ {
+ class SRPPublicKey;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ }
+}
+
+class gnu::javax::crypto::key::srp6::SRPPublicKey : public ::gnu::javax::crypto::key::srp6::SRPKey
+{
+
+public:
+ SRPPublicKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
+public: // actually package-private
+ SRPPublicKey(JArray< ::java::math::BigInteger * > *);
+public:
+ static ::gnu::javax::crypto::key::srp6::SRPPublicKey * valueOf(JArray< jbyte > *);
+ virtual ::java::math::BigInteger * getY();
+ virtual JArray< jbyte > * getEncoded(jint);
+ virtual jboolean equals(::java::lang::Object *);
+private:
+ ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::key::srp6::SRPKey)))) Y;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_crypto_key_srp6_SRPPublicKey__