Serpent.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_cipher_Serpent__
  3. #define __gnu_javax_crypto_cipher_Serpent__
  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 Serpent;
  18. }
  19. }
  20. }
  21. }
  22. }
  23. class gnu::javax::crypto::cipher::Serpent : public ::gnu::javax::crypto::cipher::BaseCipher
  24. {
  25. public:
  26. Serpent();
  27. virtual ::java::lang::Object * clone();
  28. virtual ::java::util::Iterator * blockSizes();
  29. virtual ::java::util::Iterator * keySizes();
  30. virtual ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
  31. virtual void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
  32. virtual void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
  33. virtual jboolean selfTest();
  34. private:
  35. void sbox0();
  36. void sbox1();
  37. void sbox2();
  38. void sbox3();
  39. void sbox4();
  40. void sbox5();
  41. void sbox6();
  42. void sbox7();
  43. void sbox7noLT();
  44. void sboxI7noLT();
  45. void sboxI6();
  46. void sboxI5();
  47. void sboxI4();
  48. void sboxI3();
  49. void sboxI2();
  50. void sboxI1();
  51. void sboxI0();
  52. void sboxI7();
  53. void sbox0(jint, jint, jint, jint);
  54. void sbox1(jint, jint, jint, jint);
  55. void sbox2(jint, jint, jint, jint);
  56. void sbox3(jint, jint, jint, jint);
  57. void sbox4(jint, jint, jint, jint);
  58. void sbox5(jint, jint, jint, jint);
  59. void sbox6(jint, jint, jint, jint);
  60. void sbox7(jint, jint, jint, jint);
  61. static const jint DEFAULT_KEY_SIZE = 16;
  62. static const jint DEFAULT_BLOCK_SIZE = 16;
  63. static const jint ROUNDS = 32;
  64. static const jint PHI = -1640531527;
  65. static JArray< jbyte > * KAT_KEY;
  66. static JArray< jbyte > * KAT_CT;
  67. static ::java::lang::Boolean * valid;
  68. jint __attribute__((aligned(__alignof__( ::gnu::javax::crypto::cipher::BaseCipher)))) x0;
  69. jint x1;
  70. jint x2;
  71. jint x3;
  72. jint x4;
  73. public:
  74. static ::java::lang::Class class$;
  75. };
  76. #endif // __gnu_javax_crypto_cipher_Serpent__