BaseMode.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_mode_BaseMode__
  3. #define __gnu_javax_crypto_mode_BaseMode__
  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 mode
  20. {
  21. class BaseMode;
  22. }
  23. }
  24. }
  25. }
  26. }
  27. class gnu::javax::crypto::mode::BaseMode : public ::java::lang::Object
  28. {
  29. public: // actually protected
  30. BaseMode(::java::lang::String *, ::gnu::javax::crypto::cipher::IBlockCipher *, jint);
  31. public:
  32. virtual void update(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  33. virtual ::java::lang::String * name();
  34. virtual jint defaultBlockSize();
  35. virtual jint defaultKeySize();
  36. virtual ::java::util::Iterator * blockSizes();
  37. virtual ::java::util::Iterator * keySizes();
  38. virtual void init(::java::util::Map *);
  39. virtual jint currentBlockSize();
  40. virtual void reset();
  41. virtual jboolean selfTest();
  42. virtual ::java::lang::Object * clone() = 0;
  43. virtual void setup() = 0;
  44. virtual void teardown() = 0;
  45. virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0;
  46. virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint) = 0;
  47. private:
  48. jboolean testSymmetry(jint, jint);
  49. public: // actually protected
  50. ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__;
  51. jint state;
  52. ::gnu::javax::crypto::cipher::IBlockCipher * cipher;
  53. jint cipherBlockSize;
  54. jint modeBlockSize;
  55. JArray< jbyte > * iv;
  56. ::java::lang::Object * lock;
  57. public:
  58. static ::java::lang::Class class$;
  59. };
  60. #endif // __gnu_javax_crypto_mode_BaseMode__