Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSKey__
|
||||
#define __gnu_java_security_key_dss_DSSKey__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
class BigInteger;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
namespace interfaces
|
||||
{
|
||||
class DSAParams;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSKey : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
DSSKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
|
||||
public:
|
||||
virtual ::java::security::interfaces::DSAParams * getParams();
|
||||
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();
|
||||
virtual JArray< jbyte > * getEncoded(jint) = 0;
|
||||
virtual jboolean hasInheritedParameters();
|
||||
public: // actually protected
|
||||
::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) p;
|
||||
::java::math::BigInteger * q;
|
||||
::java::math::BigInteger * g;
|
||||
jint defaultFormat;
|
||||
private:
|
||||
::java::lang::String * str;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_DSSKey__
|
||||
@@ -0,0 +1,98 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSKeyPairGenerator__
|
||||
#define __gnu_java_security_key_dss_DSSKeyPairGenerator__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSKeyPairGenerator;
|
||||
}
|
||||
}
|
||||
namespace util
|
||||
{
|
||||
class PRNG;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
class BigInteger;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class KeyPair;
|
||||
class SecureRandom;
|
||||
namespace spec
|
||||
{
|
||||
class DSAParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSKeyPairGenerator : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
DSSKeyPairGenerator();
|
||||
virtual ::java::lang::String * name();
|
||||
virtual void setup(::java::util::Map *);
|
||||
virtual ::java::security::KeyPair * generate();
|
||||
private:
|
||||
::java::math::BigInteger * nextX();
|
||||
void nextRandomBytes(JArray< jbyte > *);
|
||||
::gnu::java::security::util::PRNG * getDefaultPRNG();
|
||||
static ::java::util::logging::Logger * log;
|
||||
static ::java::math::BigInteger * TWO;
|
||||
public:
|
||||
static ::java::lang::String * MODULUS_LENGTH;
|
||||
static ::java::lang::String * USE_DEFAULTS;
|
||||
static ::java::lang::String * STRICT_DEFAULTS;
|
||||
static ::java::lang::String * SOURCE_OF_RANDOMNESS;
|
||||
static ::java::lang::String * DSS_PARAMETERS;
|
||||
static ::java::lang::String * PREFERRED_ENCODING_FORMAT;
|
||||
static const jint DEFAULT_MODULUS_LENGTH = 1024;
|
||||
private:
|
||||
static const jint DEFAULT_ENCODING_FORMAT = 1;
|
||||
static JArray< jint > * T_SHS;
|
||||
public:
|
||||
static ::java::security::spec::DSAParameterSpec * KEY_PARAMS_512;
|
||||
static ::java::security::spec::DSAParameterSpec * KEY_PARAMS_768;
|
||||
static ::java::security::spec::DSAParameterSpec * KEY_PARAMS_1024;
|
||||
private:
|
||||
static ::java::math::BigInteger * TWO_POW_160;
|
||||
jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) L;
|
||||
::java::security::SecureRandom * rnd;
|
||||
::java::math::BigInteger * seed;
|
||||
::java::math::BigInteger * counter;
|
||||
::java::math::BigInteger * p;
|
||||
::java::math::BigInteger * q;
|
||||
::java::math::BigInteger * e;
|
||||
::java::math::BigInteger * g;
|
||||
::java::math::BigInteger * XKEY;
|
||||
::gnu::java::security::util::PRNG * prng;
|
||||
jint preferredFormat;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_DSSKeyPairGenerator__
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSKeyPairPKCS8Codec__
|
||||
#define __gnu_java_security_key_dss_DSSKeyPairPKCS8Codec__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class OID;
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSKeyPairPKCS8Codec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSKeyPairPKCS8Codec : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
DSSKeyPairPKCS8Codec();
|
||||
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 ::java::util::logging::Logger * log;
|
||||
static ::gnu::java::security::OID * DSA_ALG_OID;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_DSSKeyPairPKCS8Codec__
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSKeyPairRawCodec__
|
||||
#define __gnu_java_security_key_dss_DSSKeyPairRawCodec__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSKeyPairRawCodec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSKeyPairRawCodec : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
DSSKeyPairRawCodec();
|
||||
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_java_security_key_dss_DSSKeyPairRawCodec__
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSKeyPairX509Codec__
|
||||
#define __gnu_java_security_key_dss_DSSKeyPairX509Codec__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class OID;
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSKeyPairX509Codec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSKeyPairX509Codec : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
DSSKeyPairX509Codec();
|
||||
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 * DSA_ALG_OID;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_DSSKeyPairX509Codec__
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSPrivateKey__
|
||||
#define __gnu_java_security_key_dss_DSSPrivateKey__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/key/dss/DSSKey.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSPrivateKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
class BigInteger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSPrivateKey : public ::gnu::java::security::key::dss::DSSKey
|
||||
{
|
||||
|
||||
public:
|
||||
DSSPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
|
||||
DSSPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
|
||||
static ::gnu::java::security::key::dss::DSSPrivateKey * 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::java::security::key::dss::DSSKey)))) x;
|
||||
::java::lang::String * str;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_DSSPrivateKey__
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_DSSPublicKey__
|
||||
#define __gnu_java_security_key_dss_DSSPublicKey__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/key/dss/DSSKey.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class DSSPublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
class BigInteger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::DSSPublicKey : public ::gnu::java::security::key::dss::DSSKey
|
||||
{
|
||||
|
||||
public:
|
||||
DSSPublicKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
|
||||
DSSPublicKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *);
|
||||
static ::gnu::java::security::key::dss::DSSPublicKey * 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::java::security::key::dss::DSSKey)))) y;
|
||||
::java::lang::String * str;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_DSSPublicKey__
|
||||
@@ -0,0 +1,78 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_key_dss_FIPS186__
|
||||
#define __gnu_java_security_key_dss_FIPS186__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Sha160;
|
||||
}
|
||||
namespace key
|
||||
{
|
||||
namespace dss
|
||||
{
|
||||
class FIPS186;
|
||||
}
|
||||
}
|
||||
namespace util
|
||||
{
|
||||
class PRNG;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace java
|
||||
{
|
||||
namespace math
|
||||
{
|
||||
class BigInteger;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class SecureRandom;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::key::dss::FIPS186 : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
FIPS186(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 DSA_PARAMS_SEED = 0;
|
||||
static const jint DSA_PARAMS_COUNTER = 1;
|
||||
static const jint DSA_PARAMS_Q = 2;
|
||||
static const jint DSA_PARAMS_P = 3;
|
||||
static const jint DSA_PARAMS_E = 4;
|
||||
static const jint DSA_PARAMS_G = 5;
|
||||
private:
|
||||
static ::java::math::BigInteger * TWO;
|
||||
static ::java::math::BigInteger * TWO_POW_160;
|
||||
::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha;
|
||||
jint L;
|
||||
::java::security::SecureRandom * rnd;
|
||||
::gnu::java::security::util::PRNG * prng;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_key_dss_FIPS186__
|
||||
Reference in New Issue
Block a user