CTR.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_mode_CTR__
  3. #define __gnu_javax_crypto_mode_CTR__
  4. #pragma interface
  5. #include <gnu/javax/crypto/mode/BaseMode.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 CTR;
  22. }
  23. }
  24. }
  25. }
  26. }
  27. class gnu::javax::crypto::mode::CTR : public ::gnu::javax::crypto::mode::BaseMode
  28. {
  29. public: // actually package-private
  30. CTR(::gnu::javax::crypto::cipher::IBlockCipher *, jint);
  31. private:
  32. CTR(::gnu::javax::crypto::mode::CTR *);
  33. public:
  34. virtual ::java::lang::Object * clone();
  35. virtual void setup();
  36. virtual void teardown();
  37. virtual void encryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  38. virtual void decryptBlock(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  39. virtual ::java::util::Iterator * blockSizes();
  40. private:
  41. void ctr(JArray< jbyte > *, jint, JArray< jbyte > *, jint);
  42. jint __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mode::BaseMode)))) off;
  43. JArray< jbyte > * counter;
  44. JArray< jbyte > * enc;
  45. public:
  46. static ::java::lang::Class class$;
  47. };
  48. #endif // __gnu_javax_crypto_mode_CTR__