HMac.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_mac_HMac__
  3. #define __gnu_javax_crypto_mac_HMac__
  4. #pragma interface
  5. #include <gnu/javax/crypto/mac/BaseMac.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace java
  12. {
  13. namespace security
  14. {
  15. namespace hash
  16. {
  17. class IMessageDigest;
  18. }
  19. }
  20. }
  21. namespace javax
  22. {
  23. namespace crypto
  24. {
  25. namespace mac
  26. {
  27. class HMac;
  28. }
  29. }
  30. }
  31. }
  32. }
  33. class gnu::javax::crypto::mac::HMac : public ::gnu::javax::crypto::mac::BaseMac
  34. {
  35. public: // actually protected
  36. HMac(::gnu::java::security::hash::IMessageDigest *);
  37. public:
  38. virtual ::java::lang::Object * clone();
  39. virtual void init(::java::util::Map *);
  40. virtual void reset();
  41. virtual JArray< jbyte > * digest();
  42. virtual jboolean selfTest();
  43. static ::java::lang::String * USE_WITH_PKCS5_V2;
  44. private:
  45. static const jbyte IPAD_BYTE = 54;
  46. static const jbyte OPAD_BYTE = 92;
  47. static ::java::lang::Boolean * valid;
  48. public: // actually protected
  49. jint __attribute__((aligned(__alignof__( ::gnu::javax::crypto::mac::BaseMac)))) macSize;
  50. jint blockSize;
  51. ::gnu::java::security::hash::IMessageDigest * ipadHash;
  52. ::gnu::java::security::hash::IMessageDigest * opadHash;
  53. JArray< jbyte > * ipad;
  54. public:
  55. static ::java::lang::Class class$;
  56. };
  57. #endif // __gnu_javax_crypto_mac_HMac__