1 
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3 
4 #ifndef __gnu_javax_crypto_cipher_Rijndael__
5 #define __gnu_javax_crypto_cipher_Rijndael__
6 
7 #pragma interface
8 
9 #include <gnu/javax/crypto/cipher/BaseCipher.h>
10 #include <gcj/array.h>
11 
12 extern "Java"
13 {
14   namespace gnu
15   {
16     namespace javax
17     {
18       namespace crypto
19       {
20         namespace cipher
21         {
22             class Rijndael;
23         }
24       }
25     }
26   }
27 }
28 
29 class gnu::javax::crypto::cipher::Rijndael : public ::gnu::javax::crypto::cipher::BaseCipher
30 {
31 
32 public:
33   Rijndael();
34   static jint getRounds(jint, jint);
35 private:
36   static void rijndaelEncrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
37   static void rijndaelDecrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
38   static void aesEncrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *);
39   static void aesDecrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *);
40 public:
41   ::java::lang::Object * clone();
42   ::java::util::Iterator * blockSizes();
43   ::java::util::Iterator * keySizes();
44   ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
45   void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
46   void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
47   jboolean selfTest();
48 private:
49   static ::java::util::logging::Logger * log;
50   static const jint DEFAULT_BLOCK_SIZE = 16;
51   static const jint DEFAULT_KEY_SIZE = 16;
52   static ::java::lang::String * SS;
53   static JArray< jbyte > * S;
54   static JArray< jbyte > * Si;
55   static JArray< jint > * T1;
56   static JArray< jint > * T2;
57   static JArray< jint > * T3;
58   static JArray< jint > * T4;
59   static JArray< jint > * T5;
60   static JArray< jint > * T6;
61   static JArray< jint > * T7;
62   static JArray< jint > * T8;
63   static JArray< jint > * U1;
64   static JArray< jint > * U2;
65   static JArray< jint > * U3;
66   static JArray< jint > * U4;
67   static JArray< jbyte > * rcon;
68   static JArray< JArray< JArray< jint > * > * > * shifts;
69   static JArray< jbyte > * KAT_KEY;
70   static JArray< jbyte > * KAT_CT;
71   static ::java::lang::Boolean * valid;
72 public:
73   static ::java::lang::Class class$;
74 };
75 
76 #endif // __gnu_javax_crypto_cipher_Rijndael__
77