Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_BaseHash__
|
||||
#define __gnu_java_security_hash_BaseHash__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class BaseHash;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::BaseHash : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
BaseHash(::java::lang::String *, jint, jint);
|
||||
public:
|
||||
virtual ::java::lang::String * name();
|
||||
virtual jint hashSize();
|
||||
virtual jint blockSize();
|
||||
virtual void update(jbyte);
|
||||
virtual void update(JArray< jbyte > *);
|
||||
virtual void update(JArray< jbyte > *, jint, jint);
|
||||
virtual JArray< jbyte > * digest();
|
||||
virtual void reset();
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
virtual jboolean selfTest() = 0;
|
||||
public: // actually protected
|
||||
virtual JArray< jbyte > * padBuffer() = 0;
|
||||
virtual JArray< jbyte > * getResult() = 0;
|
||||
virtual void resetContext() = 0;
|
||||
virtual void transform(JArray< jbyte > *, jint) = 0;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__;
|
||||
jint hashSize__;
|
||||
jint blockSize__;
|
||||
jlong count;
|
||||
JArray< jbyte > * buffer;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_BaseHash__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_HashFactory__
|
||||
#define __gnu_java_security_hash_HashFactory__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class HashFactory;
|
||||
class IMessageDigest;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::HashFactory : public ::java::lang::Object
|
||||
{
|
||||
|
||||
HashFactory();
|
||||
public:
|
||||
static ::gnu::java::security::hash::IMessageDigest * getInstance(::java::lang::String *);
|
||||
static ::java::util::Set * getNames();
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_HashFactory__
|
||||
@@ -0,0 +1,86 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Haval__
|
||||
#define __gnu_java_security_hash_Haval__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Haval;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Haval : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Haval();
|
||||
Haval(jint);
|
||||
Haval(jint, jint);
|
||||
private:
|
||||
Haval(::gnu::java::security::hash::Haval *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
void tailorDigestBits();
|
||||
jint FF1(jint, jint, jint, jint, jint, jint, jint, jint, jint);
|
||||
jint FF2(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
|
||||
jint FF3(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
|
||||
jint FF4(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
|
||||
jint FF5(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
|
||||
jint f1(jint, jint, jint, jint, jint, jint, jint);
|
||||
jint f2(jint, jint, jint, jint, jint, jint, jint);
|
||||
jint f3(jint, jint, jint, jint, jint, jint, jint);
|
||||
jint f4(jint, jint, jint, jint, jint, jint, jint);
|
||||
jint f5(jint, jint, jint, jint, jint, jint, jint);
|
||||
public:
|
||||
static const jint HAVAL_VERSION = 1;
|
||||
static const jint HAVAL_128_BIT = 16;
|
||||
static const jint HAVAL_160_BIT = 20;
|
||||
static const jint HAVAL_192_BIT = 24;
|
||||
static const jint HAVAL_224_BIT = 28;
|
||||
static const jint HAVAL_256_BIT = 32;
|
||||
static const jint HAVAL_3_ROUND = 3;
|
||||
static const jint HAVAL_4_ROUND = 4;
|
||||
static const jint HAVAL_5_ROUND = 5;
|
||||
private:
|
||||
static const jint BLOCK_SIZE = 128;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) rounds;
|
||||
jint h0;
|
||||
jint h1;
|
||||
jint h2;
|
||||
jint h3;
|
||||
jint h4;
|
||||
jint h5;
|
||||
jint h6;
|
||||
jint h7;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Haval__
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_IMessageDigest__
|
||||
#define __gnu_java_security_hash_IMessageDigest__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class IMessageDigest;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::IMessageDigest : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::String * name() = 0;
|
||||
virtual jint hashSize() = 0;
|
||||
virtual jint blockSize() = 0;
|
||||
virtual void update(jbyte) = 0;
|
||||
virtual void update(JArray< jbyte > *) = 0;
|
||||
virtual void update(JArray< jbyte > *, jint, jint) = 0;
|
||||
virtual JArray< jbyte > * digest() = 0;
|
||||
virtual void reset() = 0;
|
||||
virtual jboolean selfTest() = 0;
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __gnu_java_security_hash_IMessageDigest__
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_MD2__
|
||||
#define __gnu_java_security_hash_MD2__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class MD2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::MD2 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
MD2();
|
||||
private:
|
||||
MD2(::gnu::java::security::hash::MD2 *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
public: // actually protected
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
private:
|
||||
void encryptBlock(JArray< jbyte > *, jint);
|
||||
void updateCheckSumAndEncryptBlock(JArray< jbyte > *, jint);
|
||||
static const jint DIGEST_LENGTH = 16;
|
||||
static const jint BLOCK_LENGTH = 16;
|
||||
static JArray< jbyte > * PI;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static ::java::lang::Boolean * valid;
|
||||
JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) checksum;
|
||||
JArray< jbyte > * work;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_MD2__
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_MD4__
|
||||
#define __gnu_java_security_hash_MD4__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class MD4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::MD4 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
MD4();
|
||||
private:
|
||||
MD4(::gnu::java::security::hash::MD4 *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
public: // actually protected
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
private:
|
||||
static const jint DIGEST_LENGTH = 16;
|
||||
static const jint BLOCK_LENGTH = 64;
|
||||
static const jint A = 1732584193;
|
||||
static const jint B = -271733879;
|
||||
static const jint C = -1732584194;
|
||||
static const jint D = 271733878;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) a;
|
||||
jint b;
|
||||
jint c;
|
||||
jint d;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_MD4__
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_MD5__
|
||||
#define __gnu_java_security_hash_MD5__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class MD5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::MD5 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
MD5();
|
||||
private:
|
||||
MD5(::gnu::java::security::hash::MD5 *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jint h1;
|
||||
jint h2;
|
||||
jint h3;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_MD5__
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_RipeMD128__
|
||||
#define __gnu_java_security_hash_RipeMD128__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class RipeMD128;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::RipeMD128 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
RipeMD128();
|
||||
private:
|
||||
RipeMD128(::gnu::java::security::hash::RipeMD128 *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static JArray< jint > * R;
|
||||
static JArray< jint > * Rp;
|
||||
static JArray< jint > * S;
|
||||
static JArray< jint > * Sp;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jint h1;
|
||||
jint h2;
|
||||
jint h3;
|
||||
JArray< jint > * X;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_RipeMD128__
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_RipeMD160__
|
||||
#define __gnu_java_security_hash_RipeMD160__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class RipeMD160;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::RipeMD160 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
RipeMD160();
|
||||
private:
|
||||
RipeMD160(::gnu::java::security::hash::RipeMD160 *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static JArray< jint > * R;
|
||||
static JArray< jint > * Rp;
|
||||
static JArray< jint > * S;
|
||||
static JArray< jint > * Sp;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jint h1;
|
||||
jint h2;
|
||||
jint h3;
|
||||
jint h4;
|
||||
JArray< jint > * X;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_RipeMD160__
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Sha160__
|
||||
#define __gnu_java_security_hash_Sha160__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Sha160;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Sha160 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Sha160();
|
||||
private:
|
||||
Sha160(::gnu::java::security::hash::Sha160 *);
|
||||
public:
|
||||
static JArray< jint > * G(jint, jint, jint, jint, jint, JArray< jbyte > *, jint);
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static JArray< jint > * sha(jint, jint, jint, jint, jint, JArray< jbyte > *, jint);
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static JArray< jint > * w;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jint h1;
|
||||
jint h2;
|
||||
jint h3;
|
||||
jint h4;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Sha160__
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Sha256__
|
||||
#define __gnu_java_security_hash_Sha256__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Sha256;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Sha256 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Sha256();
|
||||
private:
|
||||
Sha256(::gnu::java::security::hash::Sha256 *);
|
||||
public:
|
||||
static JArray< jint > * G(jint, jint, jint, jint, jint, jint, jint, jint, JArray< jbyte > *, jint);
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static JArray< jint > * sha(jint, jint, jint, jint, jint, jint, jint, jint, JArray< jbyte > *, jint);
|
||||
static JArray< jint > * k;
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static JArray< jint > * w;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jint h1;
|
||||
jint h2;
|
||||
jint h3;
|
||||
jint h4;
|
||||
jint h5;
|
||||
jint h6;
|
||||
jint h7;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Sha256__
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Sha384__
|
||||
#define __gnu_java_security_hash_Sha384__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Sha384;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Sha384 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Sha384();
|
||||
private:
|
||||
Sha384(::gnu::java::security::hash::Sha384 *);
|
||||
public:
|
||||
static JArray< jlong > * G(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint);
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static JArray< jlong > * sha(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint);
|
||||
static JArray< jlong > * k;
|
||||
static const jint BLOCK_SIZE = 128;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static JArray< jlong > * w;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jlong h1;
|
||||
jlong h2;
|
||||
jlong h3;
|
||||
jlong h4;
|
||||
jlong h5;
|
||||
jlong h6;
|
||||
jlong h7;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Sha384__
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Sha512__
|
||||
#define __gnu_java_security_hash_Sha512__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Sha512;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Sha512 : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Sha512();
|
||||
private:
|
||||
Sha512(::gnu::java::security::hash::Sha512 *);
|
||||
public:
|
||||
static JArray< jlong > * G(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint);
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
public:
|
||||
virtual jboolean selfTest();
|
||||
private:
|
||||
static JArray< jlong > * sha(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint);
|
||||
static JArray< jlong > * k;
|
||||
static const jint BLOCK_SIZE = 128;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static JArray< jlong > * w;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
|
||||
jlong h1;
|
||||
jlong h2;
|
||||
jlong h3;
|
||||
jlong h4;
|
||||
jlong h5;
|
||||
jlong h6;
|
||||
jlong h7;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Sha512__
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Tiger__
|
||||
#define __gnu_java_security_hash_Tiger__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Tiger;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Tiger : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Tiger();
|
||||
private:
|
||||
Tiger(::gnu::java::security::hash::Tiger *);
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
virtual jboolean selfTest();
|
||||
public: // actually protected
|
||||
virtual JArray< jbyte > * padBuffer();
|
||||
virtual JArray< jbyte > * getResult();
|
||||
virtual void resetContext();
|
||||
virtual void transform(JArray< jbyte > *, jint);
|
||||
private:
|
||||
static const jint HASH_SIZE = 24;
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static const jlong A = 81985529216486895LL;
|
||||
static const jlong B = -81985529216486896LL;
|
||||
static const jlong C = -1110518062304271993LL;
|
||||
static JArray< jlong > * T1;
|
||||
static JArray< jlong > * T2;
|
||||
static JArray< jlong > * T3;
|
||||
static JArray< jlong > * T4;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) a;
|
||||
jlong b;
|
||||
jlong c;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Tiger__
|
||||
@@ -0,0 +1,113 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __gnu_java_security_hash_Whirlpool__
|
||||
#define __gnu_java_security_hash_Whirlpool__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <gnu/java/security/hash/BaseHash.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace gnu
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace hash
|
||||
{
|
||||
class Whirlpool;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class gnu::java::security::hash::Whirlpool : public ::gnu::java::security::hash::BaseHash
|
||||
{
|
||||
|
||||
public:
|
||||
Whirlpool();
|
||||
private:
|
||||
Whirlpool(::gnu::java::security::hash::Whirlpool *);
|
||||
public:
|
||||
::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
void transform(JArray< jbyte > *, jint);
|
||||
JArray< jbyte > * padBuffer();
|
||||
JArray< jbyte > * getResult();
|
||||
void resetContext();
|
||||
public:
|
||||
jboolean selfTest();
|
||||
private:
|
||||
static ::java::util::logging::Logger * log;
|
||||
static const jint BLOCK_SIZE = 64;
|
||||
static ::java::lang::String * DIGEST0;
|
||||
static const jint R = 10;
|
||||
static ::java::lang::String * S_box;
|
||||
static JArray< jlong > * T0;
|
||||
static JArray< jlong > * T1;
|
||||
static JArray< jlong > * T2;
|
||||
static JArray< jlong > * T3;
|
||||
static JArray< jlong > * T4;
|
||||
static JArray< jlong > * T5;
|
||||
static JArray< jlong > * T6;
|
||||
static JArray< jlong > * T7;
|
||||
static JArray< jlong > * rc;
|
||||
static ::java::lang::Boolean * valid;
|
||||
jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) H0;
|
||||
jlong H1;
|
||||
jlong H2;
|
||||
jlong H3;
|
||||
jlong H4;
|
||||
jlong H5;
|
||||
jlong H6;
|
||||
jlong H7;
|
||||
jlong k00;
|
||||
jlong k01;
|
||||
jlong k02;
|
||||
jlong k03;
|
||||
jlong k04;
|
||||
jlong k05;
|
||||
jlong k06;
|
||||
jlong k07;
|
||||
jlong Kr0;
|
||||
jlong Kr1;
|
||||
jlong Kr2;
|
||||
jlong Kr3;
|
||||
jlong Kr4;
|
||||
jlong Kr5;
|
||||
jlong Kr6;
|
||||
jlong Kr7;
|
||||
jlong n0;
|
||||
jlong n1;
|
||||
jlong n2;
|
||||
jlong n3;
|
||||
jlong n4;
|
||||
jlong n5;
|
||||
jlong n6;
|
||||
jlong n7;
|
||||
jlong nn0;
|
||||
jlong nn1;
|
||||
jlong nn2;
|
||||
jlong nn3;
|
||||
jlong nn4;
|
||||
jlong nn5;
|
||||
jlong nn6;
|
||||
jlong nn7;
|
||||
jlong w0;
|
||||
jlong w1;
|
||||
jlong w2;
|
||||
jlong w3;
|
||||
jlong w4;
|
||||
jlong w5;
|
||||
jlong w6;
|
||||
jlong w7;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __gnu_java_security_hash_Whirlpool__
|
||||
Reference in New Issue
Block a user