diff options
Diffstat (limited to 'libjava/gnu/java/security/key/rsa')
7 files changed, 437 insertions, 0 deletions
diff --git a/libjava/gnu/java/security/key/rsa/GnuRSAKey.h b/libjava/gnu/java/security/key/rsa/GnuRSAKey.h new file mode 100644 index 000000000..77a57b0a6 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/GnuRSAKey.h @@ -0,0 +1,66 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_GnuRSAKey__ +#define __gnu_java_security_key_rsa_GnuRSAKey__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class GnuRSAKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::rsa::GnuRSAKey : public ::java::lang::Object +{ + +public: // actually protected + GnuRSAKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *); +public: + virtual ::java::math::BigInteger * getModulus(); + virtual ::java::lang::String * getAlgorithm(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * getFormat(); + virtual ::java::math::BigInteger * getN(); + virtual ::java::math::BigInteger * getPublicExponent(); + virtual ::java::math::BigInteger * getE(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); + virtual JArray< jbyte > * getEncoded(jint) = 0; +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) n; + ::java::math::BigInteger * e; +public: // actually protected + jint defaultFormat; +private: + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_GnuRSAKey__ diff --git a/libjava/gnu/java/security/key/rsa/GnuRSAPrivateKey.h b/libjava/gnu/java/security/key/rsa/GnuRSAPrivateKey.h new file mode 100644 index 000000000..3033418ae --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/GnuRSAPrivateKey.h @@ -0,0 +1,68 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_GnuRSAPrivateKey__ +#define __gnu_java_security_key_rsa_GnuRSAPrivateKey__ + +#pragma interface + +#include <gnu/java/security/key/rsa/GnuRSAKey.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class GnuRSAPrivateKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::rsa::GnuRSAPrivateKey : public ::gnu::java::security::key::rsa::GnuRSAKey +{ + +public: + GnuRSAPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + GnuRSAPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + GnuRSAPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + static ::gnu::java::security::key::rsa::GnuRSAPrivateKey * valueOf(JArray< jbyte > *); + virtual ::java::math::BigInteger * getPrimeP(); + virtual ::java::math::BigInteger * getPrimeQ(); + virtual ::java::math::BigInteger * getPrimeExponentP(); + virtual ::java::math::BigInteger * getPrimeExponentQ(); + virtual ::java::math::BigInteger * getCrtCoefficient(); + virtual ::java::math::BigInteger * getPrivateExponent(); + 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::rsa::GnuRSAKey)))) p; + ::java::math::BigInteger * q; + ::java::math::BigInteger * d; + ::java::math::BigInteger * dP; + ::java::math::BigInteger * dQ; + ::java::math::BigInteger * qInv; + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_GnuRSAPrivateKey__ diff --git a/libjava/gnu/java/security/key/rsa/GnuRSAPublicKey.h b/libjava/gnu/java/security/key/rsa/GnuRSAPublicKey.h new file mode 100644 index 000000000..149a68578 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/GnuRSAPublicKey.h @@ -0,0 +1,55 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_GnuRSAPublicKey__ +#define __gnu_java_security_key_rsa_GnuRSAPublicKey__ + +#pragma interface + +#include <gnu/java/security/key/rsa/GnuRSAKey.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class GnuRSAPublicKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::rsa::GnuRSAPublicKey : public ::gnu::java::security::key::rsa::GnuRSAKey +{ + +public: + GnuRSAPublicKey(::java::math::BigInteger *, ::java::math::BigInteger *); + GnuRSAPublicKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *); + static ::gnu::java::security::key::rsa::GnuRSAPublicKey * valueOf(JArray< jbyte > *); + virtual JArray< jbyte > * getEncoded(jint); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::java::security::key::rsa::GnuRSAKey)))) str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_GnuRSAPublicKey__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairGenerator.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairGenerator.h new file mode 100644 index 000000000..b59d0be30 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairGenerator.h @@ -0,0 +1,79 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairGenerator__ +#define __gnu_java_security_key_rsa_RSAKeyPairGenerator__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class RSAKeyPairGenerator; + } + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class KeyPair; + class SecureRandom; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairGenerator : public ::java::lang::Object +{ + +public: + RSAKeyPairGenerator(); + 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; + static ::java::math::BigInteger * ONE; + static ::java::math::BigInteger * TWO; +public: + static ::java::lang::String * MODULUS_LENGTH; + static ::java::lang::String * SOURCE_OF_RANDOMNESS; + static ::java::lang::String * RSA_PARAMETERS; + static ::java::lang::String * PREFERRED_ENCODING_FORMAT; +private: + static const jint DEFAULT_MODULUS_LENGTH = 1024; + static const jint DEFAULT_ENCODING_FORMAT = 1; + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) L; + ::java::math::BigInteger * e; + ::java::security::SecureRandom * rnd; + ::gnu::java::security::util::PRNG * prng; + jint preferredFormat; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairGenerator__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.h new file mode 100644 index 000000000..174fea9d4 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairPKCS8Codec__ +#define __gnu_java_security_key_rsa_RSAKeyPairPKCS8Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace key + { + namespace rsa + { + class RSAKeyPairPKCS8Codec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairPKCS8Codec : public ::java::lang::Object +{ + +public: + RSAKeyPairPKCS8Codec(); + 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 * RSA_ALG_OID; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairPKCS8Codec__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairRawCodec.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairRawCodec.h new file mode 100644 index 000000000..0715d8151 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairRawCodec.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairRawCodec__ +#define __gnu_java_security_key_rsa_RSAKeyPairRawCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class RSAKeyPairRawCodec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairRawCodec : public ::java::lang::Object +{ + +public: + RSAKeyPairRawCodec(); + 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_rsa_RSAKeyPairRawCodec__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairX509Codec.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairX509Codec.h new file mode 100644 index 000000000..53abc9e9f --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairX509Codec.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairX509Codec__ +#define __gnu_java_security_key_rsa_RSAKeyPairX509Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace key + { + namespace rsa + { + class RSAKeyPairX509Codec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairX509Codec : public ::java::lang::Object +{ + +public: + RSAKeyPairX509Codec(); + 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 * RSA_ALG_OID; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairX509Codec__ |