OMAC.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_mac_OMAC__
  3. #define __gnu_javax_crypto_mac_OMAC__
  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 OMAC;
  22. }
  23. namespace mode
  24. {
  25. class IMode;
  26. }
  27. }
  28. }
  29. }
  30. }
  31. class gnu::javax::crypto::mac::OMAC : public ::java::lang::Object
  32. {
  33. public:
  34. OMAC(::gnu::javax::crypto::cipher::IBlockCipher *);
  35. virtual ::java::lang::Object * clone();
  36. virtual ::java::lang::String * name();
  37. virtual jint macSize();
  38. virtual void init(::java::util::Map *);
  39. virtual void update(jbyte);
  40. virtual void update(JArray< jbyte > *, jint, jint);
  41. virtual JArray< jbyte > * digest();
  42. virtual void digest(JArray< jbyte > *, jint);
  43. virtual void reset();
  44. virtual jboolean selfTest();
  45. private:
  46. void process();
  47. static ::java::util::logging::Logger * log;
  48. static const jbyte C1 = -121;
  49. static const jbyte C2 = 27;
  50. static JArray< jbyte > * KEY0;
  51. static JArray< jbyte > * DIGEST0;
  52. static ::java::lang::Boolean * valid;
  53. ::gnu::javax::crypto::cipher::IBlockCipher * __attribute__((aligned(__alignof__( ::java::lang::Object)))) cipher;
  54. ::java::lang::String * name__;
  55. ::gnu::javax::crypto::mode::IMode * mode;
  56. jint blockSize;
  57. jint outputSize;
  58. JArray< jbyte > * Lu;
  59. JArray< jbyte > * Lu2;
  60. JArray< jbyte > * M;
  61. JArray< jbyte > * Y;
  62. jboolean init__;
  63. jint index;
  64. public:
  65. static ::java::lang::Class class$;
  66. };
  67. #endif // __gnu_javax_crypto_mac_OMAC__