Square.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_cipher_Square__
  3. #define __gnu_javax_crypto_cipher_Square__
  4. #pragma interface
  5. #include <gnu/javax/crypto/cipher/BaseCipher.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace javax
  12. {
  13. namespace crypto
  14. {
  15. namespace cipher
  16. {
  17. class Square;
  18. }
  19. }
  20. }
  21. }
  22. }
  23. class gnu::javax::crypto::cipher::Square : public ::gnu::javax::crypto::cipher::BaseCipher
  24. {
  25. public:
  26. Square();
  27. private:
  28. static void square(JArray< jbyte > *, jint, JArray< jbyte > *, jint, JArray< JArray< jint > * > *, JArray< jint > *, JArray< jbyte > *);
  29. static void transform(JArray< jint > *, JArray< jint > *);
  30. static jint rot32L(jint, jint);
  31. static jint rot32R(jint, jint);
  32. static jint mul(jint, jint);
  33. public:
  34. ::java::lang::Object * clone();
  35. ::java::util::Iterator * blockSizes();
  36. ::java::util::Iterator * keySizes();
  37. ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
  38. void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
  39. void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
  40. jboolean selfTest();
  41. private:
  42. static const jint DEFAULT_BLOCK_SIZE = 16;
  43. static const jint DEFAULT_KEY_SIZE = 16;
  44. static const jint ROUNDS = 8;
  45. static const jint ROOT = 501;
  46. static JArray< jint > * OFFSET;
  47. static ::java::lang::String * Sdata;
  48. static JArray< jbyte > * Se;
  49. static JArray< jbyte > * Sd;
  50. static JArray< jint > * Te;
  51. static JArray< jint > * Td;
  52. static JArray< jbyte > * KAT_KEY;
  53. static JArray< jbyte > * KAT_CT;
  54. static ::java::lang::Boolean * valid;
  55. public:
  56. static ::java::lang::Class class$;
  57. };
  58. #endif // __gnu_javax_crypto_cipher_Square__