diff options
Diffstat (limited to 'libjava/gnu/javax/crypto/mode')
-rw-r--r-- | libjava/gnu/javax/crypto/mode/BaseMode.h | 68 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/CBC.h | 53 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/CFB.h | 53 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/CTR.h | 56 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/EAX.h | 77 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/ECB.h | 49 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/IAuthenticatedMode.h | 52 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/ICM.h | 64 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/IMode.h | 53 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/ModeFactory.h | 46 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/mode/OFB.h | 52 |
11 files changed, 623 insertions, 0 deletions
diff --git a/libjava/gnu/javax/crypto/mode/BaseMode.h b/libjava/gnu/javax/crypto/mode/BaseMode.h new file mode 100644 index 000000000..25ad4aaf0 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/BaseMode.h @@ -0,0 +1,68 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_BaseMode__ +#define __gnu_javax_crypto_mode_BaseMode__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class BaseMode; + } + } + } + } +} + +class gnu::javax::crypto::mode::BaseMode : public ::java::lang::Object +{ + +public: // actually protected + BaseMode(::java::lang::String *, ::gnu::javax::crypto::cipher::IBlockCipher *, jint); +public: + virtual void update(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual ::java::lang::String * name(); + virtual jint defaultBlockSize(); + virtual jint defaultKeySize(); + virtual ::java::util::Iterator * blockSizes(); + virtual ::java::util::Iterator * keySizes(); + virtual void init(::java::util::Map *); + virtual jint currentBlockSize(); + virtual void reset(); + virtual jboolean selfTest(); + virtual ::java::lang::Object * clone() = 0; + virtual void setup() = 0; + virtual void teardown() = 0; + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; +private: + jboolean testSymmetry(jint, jint); +public: // actually protected + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__; + jint state; + ::gnu::javax::crypto::cipher::IBlockCipher * cipher; + jint cipherBlockSize; + jint modeBlockSize; + JArray< jbyte > * iv; + ::java::lang::Object * lock; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_BaseMode__ diff --git a/libjava/gnu/javax/crypto/mode/CBC.h b/libjava/gnu/javax/crypto/mode/CBC.h new file mode 100644 index 000000000..24126a67b --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/CBC.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_CBC__ +#define __gnu_javax_crypto_mode_CBC__ + +#pragma interface + +#include <gnu/javax/crypto/mode/BaseMode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class CBC; + } + } + } + } +} + +class gnu::javax::crypto::mode::CBC : public ::gnu::javax::crypto::mode::BaseMode +{ + +public: // actually package-private + CBC(::gnu::javax::crypto::cipher::IBlockCipher *, jint); +private: + CBC(::gnu::javax::crypto::mode::CBC *); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(); + virtual void teardown(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mode::BaseMode)))) lastBlock; + JArray< jbyte > * scratch; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_CBC__ diff --git a/libjava/gnu/javax/crypto/mode/CFB.h b/libjava/gnu/javax/crypto/mode/CFB.h new file mode 100644 index 000000000..3931a9b2d --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/CFB.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_CFB__ +#define __gnu_javax_crypto_mode_CFB__ + +#pragma interface + +#include <gnu/javax/crypto/mode/BaseMode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class CFB; + } + } + } + } +} + +class gnu::javax::crypto::mode::CFB : public ::gnu::javax::crypto::mode::BaseMode +{ + +public: // actually package-private + CFB(::gnu::javax::crypto::cipher::IBlockCipher *, jint); +private: + CFB(::gnu::javax::crypto::mode::CFB *); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(); + virtual void teardown(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mode::BaseMode)))) shiftRegister; + JArray< jbyte > * scratch; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_CFB__ diff --git a/libjava/gnu/javax/crypto/mode/CTR.h b/libjava/gnu/javax/crypto/mode/CTR.h new file mode 100644 index 000000000..3bb11e642 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/CTR.h @@ -0,0 +1,56 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_CTR__ +#define __gnu_javax_crypto_mode_CTR__ + +#pragma interface + +#include <gnu/javax/crypto/mode/BaseMode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class CTR; + } + } + } + } +} + +class gnu::javax::crypto::mode::CTR : public ::gnu::javax::crypto::mode::BaseMode +{ + +public: // actually package-private + CTR(::gnu::javax::crypto::cipher::IBlockCipher *, jint); +private: + CTR(::gnu::javax::crypto::mode::CTR *); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(); + virtual void teardown(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual ::java::util::Iterator * blockSizes(); +private: + void ctr(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + jint __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mode::BaseMode)))) off; + JArray< jbyte > * counter; + JArray< jbyte > * enc; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_CTR__ diff --git a/libjava/gnu/javax/crypto/mode/EAX.h b/libjava/gnu/javax/crypto/mode/EAX.h new file mode 100644 index 000000000..d47f07b41 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/EAX.h @@ -0,0 +1,77 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_EAX__ +#define __gnu_javax_crypto_mode_EAX__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mac + { + class IMac; + } + namespace mode + { + class EAX; + class IMode; + } + } + } + } +} + +class gnu::javax::crypto::mode::EAX : public ::java::lang::Object +{ + +public: + EAX(::gnu::javax::crypto::cipher::IBlockCipher *, jint); + virtual ::java::lang::Object * clone(); + virtual ::java::lang::String * name(); + virtual jint defaultBlockSize(); + virtual jint defaultKeySize(); + virtual ::java::util::Iterator * blockSizes(); + virtual ::java::util::Iterator * keySizes(); + virtual void init(::java::util::Map *); + virtual jint currentBlockSize(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void update(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void reset(); + virtual jboolean selfTest(); + virtual jint macSize(); + virtual JArray< jbyte > * digest(); + virtual void digest(JArray< jbyte > *, jint); + virtual void update(jbyte); + virtual void update(JArray< jbyte > *, jint, jint); +private: + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) tagSize; + ::gnu::javax::crypto::mac::IMac * nonceOmac; + ::gnu::javax::crypto::mac::IMac * headerOmac; + ::gnu::javax::crypto::mac::IMac * msgOmac; + ::gnu::javax::crypto::mode::IMode * ctr; + jint state; + jboolean init__; + jint cipherBlockSize; + ::gnu::javax::crypto::cipher::IBlockCipher * cipher; + JArray< jbyte > * t_n; + static jboolean valid; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_EAX__ diff --git a/libjava/gnu/javax/crypto/mode/ECB.h b/libjava/gnu/javax/crypto/mode/ECB.h new file mode 100644 index 000000000..ddde9c777 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/ECB.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_ECB__ +#define __gnu_javax_crypto_mode_ECB__ + +#pragma interface + +#include <gnu/javax/crypto/mode/BaseMode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class ECB; + } + } + } + } +} + +class gnu::javax::crypto::mode::ECB : public ::gnu::javax::crypto::mode::BaseMode +{ + +public: // actually package-private + ECB(::gnu::javax::crypto::cipher::IBlockCipher *, jint); +private: + ECB(::gnu::javax::crypto::mode::ECB *); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(); + virtual void teardown(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_ECB__ diff --git a/libjava/gnu/javax/crypto/mode/IAuthenticatedMode.h b/libjava/gnu/javax/crypto/mode/IAuthenticatedMode.h new file mode 100644 index 000000000..7954ce83d --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/IAuthenticatedMode.h @@ -0,0 +1,52 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_IAuthenticatedMode__ +#define __gnu_javax_crypto_mode_IAuthenticatedMode__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace mode + { + class IAuthenticatedMode; + } + } + } + } +} + +class gnu::javax::crypto::mode::IAuthenticatedMode : public ::java::lang::Object +{ + +public: + virtual void update(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual ::java::lang::String * name() = 0; + virtual jint defaultBlockSize() = 0; + virtual jint defaultKeySize() = 0; + virtual ::java::util::Iterator * blockSizes() = 0; + virtual ::java::util::Iterator * keySizes() = 0; + virtual void init(::java::util::Map *) = 0; + virtual jint currentBlockSize() = 0; + virtual void reset() = 0; + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual jboolean selfTest() = 0; + virtual jint macSize() = 0; + virtual void update(jbyte) = 0; + virtual void update(JArray< jbyte > *, jint, jint) = 0; + virtual JArray< jbyte > * digest() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_javax_crypto_mode_IAuthenticatedMode__ diff --git a/libjava/gnu/javax/crypto/mode/ICM.h b/libjava/gnu/javax/crypto/mode/ICM.h new file mode 100644 index 000000000..ee18743e8 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/ICM.h @@ -0,0 +1,64 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_ICM__ +#define __gnu_javax_crypto_mode_ICM__ + +#pragma interface + +#include <gnu/javax/crypto/mode/BaseMode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class ICM; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::javax::crypto::mode::ICM : public ::gnu::javax::crypto::mode::BaseMode +{ + +public: // actually package-private + ICM(::gnu::javax::crypto::cipher::IBlockCipher *, jint); +private: + ICM(::gnu::javax::crypto::mode::ICM *); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(); + virtual void teardown(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); +private: + void icm(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + static ::java::math::BigInteger * TWO_FIFTY_SIX; + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mode::BaseMode)))) maxBlocksPerSegment; + ::java::math::BigInteger * counterRange; + ::java::math::BigInteger * C0; + ::java::math::BigInteger * blockNdx; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_ICM__ diff --git a/libjava/gnu/javax/crypto/mode/IMode.h b/libjava/gnu/javax/crypto/mode/IMode.h new file mode 100644 index 000000000..8ee59c1ff --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/IMode.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_IMode__ +#define __gnu_javax_crypto_mode_IMode__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace mode + { + class IMode; + } + } + } + } +} + +class gnu::javax::crypto::mode::IMode : public ::java::lang::Object +{ + +public: + virtual void update(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual ::java::lang::String * name() = 0; + virtual jint defaultBlockSize() = 0; + virtual jint defaultKeySize() = 0; + virtual ::java::util::Iterator * blockSizes() = 0; + virtual ::java::util::Iterator * keySizes() = 0; + virtual void init(::java::util::Map *) = 0; + virtual jint currentBlockSize() = 0; + virtual void reset() = 0; + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0; + virtual jboolean selfTest() = 0; + static ::java::lang::String * STATE; + static ::java::lang::String * MODE_BLOCK_SIZE; + static ::java::lang::String * IV; + static const jint ENCRYPTION = 1; + static const jint DECRYPTION = 2; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_javax_crypto_mode_IMode__ diff --git a/libjava/gnu/javax/crypto/mode/ModeFactory.h b/libjava/gnu/javax/crypto/mode/ModeFactory.h new file mode 100644 index 000000000..d3f694e66 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/ModeFactory.h @@ -0,0 +1,46 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_ModeFactory__ +#define __gnu_javax_crypto_mode_ModeFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class IMode; + class ModeFactory; + } + } + } + } +} + +class gnu::javax::crypto::mode::ModeFactory : public ::java::lang::Object +{ + + ModeFactory(); +public: + static ::gnu::javax::crypto::mode::IMode * getInstance(::java::lang::String *, ::java::lang::String *, jint); + static ::gnu::javax::crypto::mode::IMode * getInstance(::java::lang::String *, ::gnu::javax::crypto::cipher::IBlockCipher *, jint); + static ::java::util::Set * getNames(); +private: + static ::java::util::Set * names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_ModeFactory__ diff --git a/libjava/gnu/javax/crypto/mode/OFB.h b/libjava/gnu/javax/crypto/mode/OFB.h new file mode 100644 index 000000000..04bbaece8 --- /dev/null +++ b/libjava/gnu/javax/crypto/mode/OFB.h @@ -0,0 +1,52 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_mode_OFB__ +#define __gnu_javax_crypto_mode_OFB__ + +#pragma interface + +#include <gnu/javax/crypto/mode/BaseMode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class IBlockCipher; + } + namespace mode + { + class OFB; + } + } + } + } +} + +class gnu::javax::crypto::mode::OFB : public ::gnu::javax::crypto::mode::BaseMode +{ + +public: // actually package-private + OFB(::gnu::javax::crypto::cipher::IBlockCipher *, jint); +private: + OFB(::gnu::javax::crypto::mode::OFB *); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(); + virtual void teardown(); + virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); + virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint); +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mode::BaseMode)))) outputBlock; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_mode_OFB__ |