EAX.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_mode_EAX__
  3. #define __gnu_javax_crypto_mode_EAX__
  4. #pragma interface
  5. #include <java/lang/Object.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 IBlockCipher;
  18. }
  19. namespace mac
  20. {
  21. class IMac;
  22. }
  23. namespace mode
  24. {
  25. class EAX;
  26. class IMode;
  27. }
  28. }
  29. }
  30. }
  31. }
  32. class gnu::javax::crypto::mode::EAX : public ::java::lang::Object
  33. {
  34. public:
  35. EAX(::gnu::javax::crypto::cipher::IBlockCipher *, jint);
  36. virtual ::java::lang::Object * clone();
  37. virtual ::java::lang::String * name();
  38. virtual jint defaultBlockSize();
  39. virtual jint defaultKeySize();
  40. virtual ::java::util::Iterator * blockSizes();
  41. virtual ::java::util::Iterator * keySizes();
  42. virtual void init(::java::util::Map *);
  43. virtual jint currentBlockSize();
  44. virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  45. virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  46. virtual void update(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  47. virtual void reset();
  48. virtual jboolean selfTest();
  49. virtual jint macSize();
  50. virtual JArray< jbyte > * digest();
  51. virtual void digest(JArray< jbyte > *, jint);
  52. virtual void update(jbyte);
  53. virtual void update(JArray< jbyte > *, jint, jint);
  54. private:
  55. jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) tagSize;
  56. ::gnu::javax::crypto::mac::IMac * nonceOmac;
  57. ::gnu::javax::crypto::mac::IMac * headerOmac;
  58. ::gnu::javax::crypto::mac::IMac * msgOmac;
  59. ::gnu::javax::crypto::mode::IMode * ctr;
  60. jint state;
  61. jboolean init__;
  62. jint cipherBlockSize;
  63. ::gnu::javax::crypto::cipher::IBlockCipher * cipher;
  64. JArray< jbyte > * t_n;
  65. static jboolean valid;
  66. public:
  67. static ::java::lang::Class class$;
  68. };
  69. #endif // __gnu_javax_crypto_mode_EAX__