summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/security/sig
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/java/security/sig')
-rw-r--r--libjava/gnu/java/security/sig/BaseSignature.h86
-rw-r--r--libjava/gnu/java/security/sig/ISignature.h47
-rw-r--r--libjava/gnu/java/security/sig/ISignatureCodec.h40
-rw-r--r--libjava/gnu/java/security/sig/SignatureCodecFactory.h45
-rw-r--r--libjava/gnu/java/security/sig/SignatureFactory.h41
-rw-r--r--libjava/gnu/java/security/sig/dss/DSSSignature.h80
-rw-r--r--libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h43
-rw-r--r--libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h43
-rw-r--r--libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h70
-rw-r--r--libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h58
-rw-r--r--libjava/gnu/java/security/sig/rsa/EMSA_PSS.h54
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSA.h74
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h65
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h43
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h43
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h68
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h43
-rw-r--r--libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h46
18 files changed, 989 insertions, 0 deletions
diff --git a/libjava/gnu/java/security/sig/BaseSignature.h b/libjava/gnu/java/security/sig/BaseSignature.h
new file mode 100644
index 000000000..2f4ab0e98
--- /dev/null
+++ b/libjava/gnu/java/security/sig/BaseSignature.h
@@ -0,0 +1,86 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_BaseSignature__
+#define __gnu_java_security_sig_BaseSignature__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class IMessageDigest;
+ }
+ namespace prng
+ {
+ class IRandom;
+ }
+ namespace sig
+ {
+ class BaseSignature;
+ }
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::java::security::sig::BaseSignature : public ::java::lang::Object
+{
+
+public: // actually protected
+ BaseSignature(::java::lang::String *, ::gnu::java::security::hash::IMessageDigest *);
+public:
+ virtual ::java::lang::String * name();
+ virtual void setupVerify(::java::util::Map *);
+ virtual void setupSign(::java::util::Map *);
+ virtual void update(jbyte);
+ virtual void update(JArray< jbyte > *, jint, jint);
+ virtual ::java::lang::Object * sign();
+ virtual jboolean verify(::java::lang::Object *);
+ virtual ::java::lang::Object * clone() = 0;
+public: // actually protected
+ virtual void setupForVerification(::java::security::PublicKey *) = 0;
+ virtual void setupForSigning(::java::security::PrivateKey *) = 0;
+ virtual ::java::lang::Object * generateSignature() = 0;
+ virtual jboolean verifySignature(::java::lang::Object *) = 0;
+ virtual void init();
+ virtual void nextRandomBytes(JArray< jbyte > *);
+private:
+ void setup(::java::util::Map *);
+ ::gnu::java::security::util::PRNG * getDefaultPRNG();
+public: // actually protected
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) schemeName;
+ ::gnu::java::security::hash::IMessageDigest * md;
+ ::java::security::PublicKey * publicKey;
+ ::java::security::PrivateKey * privateKey;
+private:
+ ::java::util::Random * rnd;
+ ::gnu::java::security::prng::IRandom * irnd;
+ ::gnu::java::security::util::PRNG * prng;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_BaseSignature__
diff --git a/libjava/gnu/java/security/sig/ISignature.h b/libjava/gnu/java/security/sig/ISignature.h
new file mode 100644
index 000000000..b02f28f5f
--- /dev/null
+++ b/libjava/gnu/java/security/sig/ISignature.h
@@ -0,0 +1,47 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_ISignature__
+#define __gnu_java_security_sig_ISignature__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ class ISignature;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::ISignature : public ::java::lang::Object
+{
+
+public:
+ virtual ::java::lang::String * name() = 0;
+ virtual void setupVerify(::java::util::Map *) = 0;
+ virtual void setupSign(::java::util::Map *) = 0;
+ virtual void update(jbyte) = 0;
+ virtual void update(JArray< jbyte > *, jint, jint) = 0;
+ virtual ::java::lang::Object * sign() = 0;
+ virtual jboolean verify(::java::lang::Object *) = 0;
+ virtual ::java::lang::Object * clone() = 0;
+ static ::java::lang::String * VERIFIER_KEY;
+ static ::java::lang::String * SIGNER_KEY;
+ static ::java::lang::String * SOURCE_OF_RANDOMNESS;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __gnu_java_security_sig_ISignature__
diff --git a/libjava/gnu/java/security/sig/ISignatureCodec.h b/libjava/gnu/java/security/sig/ISignatureCodec.h
new file mode 100644
index 000000000..8924c1224
--- /dev/null
+++ b/libjava/gnu/java/security/sig/ISignatureCodec.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_ISignatureCodec__
+#define __gnu_java_security_sig_ISignatureCodec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ class ISignatureCodec;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::ISignatureCodec : public ::java::lang::Object
+{
+
+public:
+ virtual jint getFormatID() = 0;
+ virtual JArray< jbyte > * encodeSignature(::java::lang::Object *) = 0;
+ virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *) = 0;
+ static const jint RAW_FORMAT = 1;
+ static ::java::lang::Class class$;
+} __attribute__ ((java_interface));
+
+#endif // __gnu_java_security_sig_ISignatureCodec__
diff --git a/libjava/gnu/java/security/sig/SignatureCodecFactory.h b/libjava/gnu/java/security/sig/SignatureCodecFactory.h
new file mode 100644
index 000000000..56295cbe3
--- /dev/null
+++ b/libjava/gnu/java/security/sig/SignatureCodecFactory.h
@@ -0,0 +1,45 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_SignatureCodecFactory__
+#define __gnu_java_security_sig_SignatureCodecFactory__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ class ISignatureCodec;
+ class SignatureCodecFactory;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::SignatureCodecFactory : public ::java::lang::Object
+{
+
+ SignatureCodecFactory();
+public:
+ static ::gnu::java::security::sig::ISignatureCodec * getInstance(::java::lang::String *);
+ static ::gnu::java::security::sig::ISignatureCodec * getInstance(::java::lang::String *, ::java::lang::String *);
+ static ::gnu::java::security::sig::ISignatureCodec * getInstance(::java::lang::String *, jint);
+ static ::java::util::Set * getNames();
+private:
+ static ::gnu::java::security::sig::ISignatureCodec * getRawCodec(::java::lang::String *);
+ static ::gnu::java::security::sig::ISignatureCodec * getX509Codec(::java::lang::String *);
+ static ::java::util::Set * names;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_SignatureCodecFactory__
diff --git a/libjava/gnu/java/security/sig/SignatureFactory.h b/libjava/gnu/java/security/sig/SignatureFactory.h
new file mode 100644
index 000000000..344c34c84
--- /dev/null
+++ b/libjava/gnu/java/security/sig/SignatureFactory.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_SignatureFactory__
+#define __gnu_java_security_sig_SignatureFactory__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ class ISignature;
+ class SignatureFactory;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::SignatureFactory : public ::java::lang::Object
+{
+
+ SignatureFactory();
+public:
+ static ::gnu::java::security::sig::ISignature * getInstance(::java::lang::String *);
+ static ::java::util::Set * getNames();
+private:
+ static ::java::util::Set * names;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_SignatureFactory__
diff --git a/libjava/gnu/java/security/sig/dss/DSSSignature.h b/libjava/gnu/java/security/sig/dss/DSSSignature.h
new file mode 100644
index 000000000..96781ef3d
--- /dev/null
+++ b/libjava/gnu/java/security/sig/dss/DSSSignature.h
@@ -0,0 +1,80 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_dss_DSSSignature__
+#define __gnu_java_security_sig_dss_DSSSignature__
+
+#pragma interface
+
+#include <gnu/java/security/sig/BaseSignature.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class IRandom;
+ }
+ namespace sig
+ {
+ namespace dss
+ {
+ class DSSSignature;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ namespace interfaces
+ {
+ class DSAPrivateKey;
+ class DSAPublicKey;
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::dss::DSSSignature : public ::gnu::java::security::sig::BaseSignature
+{
+
+public:
+ DSSSignature();
+private:
+ DSSSignature(::gnu::java::security::sig::dss::DSSSignature *);
+public:
+ static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *);
+ static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *, ::java::util::Random *);
+ static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *, ::gnu::java::security::prng::IRandom *);
+ static jboolean verify(::java::security::interfaces::DSAPublicKey *, JArray< jbyte > *, JArray< ::java::math::BigInteger * > *);
+ virtual ::java::lang::Object * clone();
+public: // actually protected
+ virtual void setupForVerification(::java::security::PublicKey *);
+ virtual void setupForSigning(::java::security::PrivateKey *);
+ virtual ::java::lang::Object * generateSignature();
+ virtual jboolean verifySignature(::java::lang::Object *);
+private:
+ ::java::lang::Object * encodeSignature(::java::math::BigInteger *, ::java::math::BigInteger *);
+ JArray< ::java::math::BigInteger * > * decodeSignature(::java::lang::Object *);
+ JArray< ::java::math::BigInteger * > * computeRS(JArray< jbyte > *);
+ jboolean checkRS(JArray< ::java::math::BigInteger * > *, JArray< jbyte > *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_dss_DSSSignature__
diff --git a/libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h b/libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h
new file mode 100644
index 000000000..5229cdd31
--- /dev/null
+++ b/libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_dss_DSSSignatureRawCodec__
+#define __gnu_java_security_sig_dss_DSSSignatureRawCodec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ namespace dss
+ {
+ class DSSSignatureRawCodec;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::dss::DSSSignatureRawCodec : public ::java::lang::Object
+{
+
+public:
+ DSSSignatureRawCodec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodeSignature(::java::lang::Object *);
+ virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_dss_DSSSignatureRawCodec__
diff --git a/libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h b/libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h
new file mode 100644
index 000000000..d7428b37c
--- /dev/null
+++ b/libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_dss_DSSSignatureX509Codec__
+#define __gnu_java_security_sig_dss_DSSSignatureX509Codec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ namespace dss
+ {
+ class DSSSignatureX509Codec;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::dss::DSSSignatureX509Codec : public ::java::lang::Object
+{
+
+public:
+ DSSSignatureX509Codec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodeSignature(::java::lang::Object *);
+ virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_dss_DSSSignatureX509Codec__
diff --git a/libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h b/libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h
new file mode 100644
index 000000000..a0c3987ab
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h
@@ -0,0 +1,70 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_EME_PKCS1_V1_5__
+#define __gnu_java_security_sig_rsa_EME_PKCS1_V1_5__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace prng
+ {
+ class IRandom;
+ }
+ namespace sig
+ {
+ namespace rsa
+ {
+ class EME_PKCS1_V1_5;
+ }
+ }
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ namespace interfaces
+ {
+ class RSAKey;
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::EME_PKCS1_V1_5 : public ::java::lang::Object
+{
+
+ EME_PKCS1_V1_5(jint);
+public:
+ static ::gnu::java::security::sig::rsa::EME_PKCS1_V1_5 * getInstance(jint);
+ static ::gnu::java::security::sig::rsa::EME_PKCS1_V1_5 * getInstance(::java::security::interfaces::RSAKey *);
+ virtual JArray< jbyte > * encode(JArray< jbyte > *);
+ virtual JArray< jbyte > * encode(JArray< jbyte > *, ::gnu::java::security::prng::IRandom *);
+ virtual JArray< jbyte > * encode(JArray< jbyte > *, ::java::util::Random *);
+ virtual JArray< jbyte > * decode(JArray< jbyte > *);
+private:
+ JArray< jbyte > * assembleEM(JArray< jbyte > *, JArray< jbyte > *);
+ jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) k;
+ ::java::io::ByteArrayOutputStream * baos;
+ ::gnu::java::security::util::PRNG * prng;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_EME_PKCS1_V1_5__
diff --git a/libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h b/libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h
new file mode 100644
index 000000000..780e29d8a
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h
@@ -0,0 +1,58 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_EMSA_PKCS1_V1_5__
+#define __gnu_java_security_sig_rsa_EMSA_PKCS1_V1_5__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class IMessageDigest;
+ }
+ namespace sig
+ {
+ namespace rsa
+ {
+ class EMSA_PKCS1_V1_5;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::EMSA_PKCS1_V1_5 : public ::java::lang::Object
+{
+
+ EMSA_PKCS1_V1_5(::gnu::java::security::hash::IMessageDigest *);
+public:
+ static ::gnu::java::security::sig::rsa::EMSA_PKCS1_V1_5 * getInstance(::java::lang::String *);
+ virtual ::java::lang::Object * clone();
+ virtual JArray< jbyte > * encode(JArray< jbyte > *, jint);
+private:
+ static JArray< jbyte > * MD2_PREFIX;
+ static JArray< jbyte > * MD5_PREFIX;
+ static JArray< jbyte > * SHA160_PREFIX;
+ static JArray< jbyte > * SHA256_PREFIX;
+ static JArray< jbyte > * SHA384_PREFIX;
+ static JArray< jbyte > * SHA512_PREFIX;
+ ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::lang::Object)))) hash;
+ jint hLen;
+ JArray< jbyte > * prefix;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_EMSA_PKCS1_V1_5__
diff --git a/libjava/gnu/java/security/sig/rsa/EMSA_PSS.h b/libjava/gnu/java/security/sig/rsa/EMSA_PSS.h
new file mode 100644
index 000000000..3a8503233
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/EMSA_PSS.h
@@ -0,0 +1,54 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_EMSA_PSS__
+#define __gnu_java_security_sig_rsa_EMSA_PSS__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class IMessageDigest;
+ }
+ namespace sig
+ {
+ namespace rsa
+ {
+ class EMSA_PSS;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::EMSA_PSS : public ::java::lang::Object
+{
+
+ EMSA_PSS(::gnu::java::security::hash::IMessageDigest *);
+public:
+ static ::gnu::java::security::sig::rsa::EMSA_PSS * getInstance(::java::lang::String *);
+ virtual ::java::lang::Object * clone();
+ virtual JArray< jbyte > * encode(JArray< jbyte > *, jint, JArray< jbyte > *);
+ virtual jboolean decode(JArray< jbyte > *, JArray< jbyte > *, jint, jint);
+private:
+ JArray< jbyte > * MGF(JArray< jbyte > *, jint);
+ static ::java::util::logging::Logger * log;
+ ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::lang::Object)))) hash;
+ jint hLen;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_EMSA_PSS__
diff --git a/libjava/gnu/java/security/sig/rsa/RSA.h b/libjava/gnu/java/security/sig/rsa/RSA.h
new file mode 100644
index 000000000..5ad511491
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSA.h
@@ -0,0 +1,74 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSA__
+#define __gnu_java_security_sig_rsa_RSA__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ namespace rsa
+ {
+ class RSA;
+ }
+ }
+ namespace util
+ {
+ class PRNG;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace math
+ {
+ class BigInteger;
+ }
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ namespace interfaces
+ {
+ class RSAPrivateKey;
+ class RSAPublicKey;
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSA : public ::java::lang::Object
+{
+
+ RSA();
+public:
+ static ::java::math::BigInteger * sign(::java::security::PrivateKey *, ::java::math::BigInteger *);
+ static ::java::math::BigInteger * verify(::java::security::PublicKey *, ::java::math::BigInteger *);
+ static ::java::math::BigInteger * encrypt(::java::security::PublicKey *, ::java::math::BigInteger *);
+ static ::java::math::BigInteger * decrypt(::java::security::PrivateKey *, ::java::math::BigInteger *);
+ static JArray< jbyte > * I2OSP(::java::math::BigInteger *, jint);
+private:
+ static ::java::math::BigInteger * RSAEP(::java::security::interfaces::RSAPublicKey *, ::java::math::BigInteger *);
+ static ::java::math::BigInteger * RSADP(::java::security::interfaces::RSAPrivateKey *, ::java::math::BigInteger *);
+ static ::java::math::BigInteger * newR(::java::math::BigInteger *);
+ static ::java::math::BigInteger * ZERO;
+ static ::java::math::BigInteger * ONE;
+ static ::gnu::java::security::util::PRNG * prng;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSA__
diff --git a/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h
new file mode 100644
index 000000000..082229302
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h
@@ -0,0 +1,65 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSAPKCS1V1_5Signature__
+#define __gnu_java_security_sig_rsa_RSAPKCS1V1_5Signature__
+
+#pragma interface
+
+#include <gnu/java/security/sig/BaseSignature.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class IMessageDigest;
+ }
+ namespace sig
+ {
+ namespace rsa
+ {
+ class EMSA_PKCS1_V1_5;
+ class RSAPKCS1V1_5Signature;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSAPKCS1V1_5Signature : public ::gnu::java::security::sig::BaseSignature
+{
+
+public:
+ RSAPKCS1V1_5Signature();
+ RSAPKCS1V1_5Signature(::java::lang::String *);
+ RSAPKCS1V1_5Signature(::gnu::java::security::hash::IMessageDigest *);
+private:
+ RSAPKCS1V1_5Signature(::gnu::java::security::sig::rsa::RSAPKCS1V1_5Signature *);
+public:
+ virtual ::java::lang::Object * clone();
+public: // actually protected
+ virtual void setupForVerification(::java::security::PublicKey *);
+ virtual void setupForSigning(::java::security::PrivateKey *);
+ virtual ::java::lang::Object * generateSignature();
+ virtual jboolean verifySignature(::java::lang::Object *);
+private:
+ ::gnu::java::security::sig::rsa::EMSA_PKCS1_V1_5 * __attribute__((aligned(__alignof__( ::gnu::java::security::sig::BaseSignature)))) pkcs1;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSAPKCS1V1_5Signature__
diff --git a/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h
new file mode 100644
index 000000000..2fe018f9e
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureRawCodec__
+#define __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureRawCodec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ namespace rsa
+ {
+ class RSAPKCS1V1_5SignatureRawCodec;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSAPKCS1V1_5SignatureRawCodec : public ::java::lang::Object
+{
+
+public:
+ RSAPKCS1V1_5SignatureRawCodec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodeSignature(::java::lang::Object *);
+ virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureRawCodec__
diff --git a/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h
new file mode 100644
index 000000000..4e9da2abc
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureX509Codec__
+#define __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureX509Codec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ namespace rsa
+ {
+ class RSAPKCS1V1_5SignatureX509Codec;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSAPKCS1V1_5SignatureX509Codec : public ::java::lang::Object
+{
+
+public:
+ RSAPKCS1V1_5SignatureX509Codec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodeSignature(::java::lang::Object *);
+ virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureX509Codec__
diff --git a/libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h b/libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h
new file mode 100644
index 000000000..436088972
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h
@@ -0,0 +1,68 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSAPSSSignature__
+#define __gnu_java_security_sig_rsa_RSAPSSSignature__
+
+#pragma interface
+
+#include <gnu/java/security/sig/BaseSignature.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace hash
+ {
+ class IMessageDigest;
+ }
+ namespace sig
+ {
+ namespace rsa
+ {
+ class EMSA_PSS;
+ class RSAPSSSignature;
+ }
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace security
+ {
+ class PrivateKey;
+ class PublicKey;
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSAPSSSignature : public ::gnu::java::security::sig::BaseSignature
+{
+
+public:
+ RSAPSSSignature();
+ RSAPSSSignature(::java::lang::String *);
+ RSAPSSSignature(::java::lang::String *, jint);
+ RSAPSSSignature(::gnu::java::security::hash::IMessageDigest *, jint);
+private:
+ RSAPSSSignature(::gnu::java::security::sig::rsa::RSAPSSSignature *);
+public:
+ virtual ::java::lang::Object * clone();
+public: // actually protected
+ virtual void setupForVerification(::java::security::PublicKey *);
+ virtual void setupForSigning(::java::security::PrivateKey *);
+ virtual ::java::lang::Object * generateSignature();
+ virtual jboolean verifySignature(::java::lang::Object *);
+private:
+ static ::java::util::logging::Logger * log;
+ ::gnu::java::security::sig::rsa::EMSA_PSS * __attribute__((aligned(__alignof__( ::gnu::java::security::sig::BaseSignature)))) pss;
+ jint sLen;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSAPSSSignature__
diff --git a/libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h b/libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h
new file mode 100644
index 000000000..a7efde340
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSAPSSSignatureRawCodec__
+#define __gnu_java_security_sig_rsa_RSAPSSSignatureRawCodec__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ namespace rsa
+ {
+ class RSAPSSSignatureRawCodec;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSAPSSSignatureRawCodec : public ::java::lang::Object
+{
+
+public:
+ RSAPSSSignatureRawCodec();
+ virtual jint getFormatID();
+ virtual JArray< jbyte > * encodeSignature(::java::lang::Object *);
+ virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSAPSSSignatureRawCodec__
diff --git a/libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h b/libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h
new file mode 100644
index 000000000..c8b9b2497
--- /dev/null
+++ b/libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_security_sig_rsa_RSASignatureFactory__
+#define __gnu_java_security_sig_rsa_RSASignatureFactory__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace security
+ {
+ namespace sig
+ {
+ class ISignature;
+ namespace rsa
+ {
+ class RSASignatureFactory;
+ }
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::security::sig::rsa::RSASignatureFactory : public ::java::lang::Object
+{
+
+ RSASignatureFactory();
+public:
+ static ::gnu::java::security::sig::ISignature * getInstance(::java::lang::String *);
+ static ::java::util::Set * getNames();
+private:
+ static ::gnu::java::security::sig::ISignature * getPSSSignature(::java::lang::String *);
+ static ::gnu::java::security::sig::ISignature * getPKCS1Signature(::java::lang::String *);
+ static ::java::util::Set * names;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_security_sig_rsa_RSASignatureFactory__