Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user