Sha256.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_java_security_hash_Sha256__
  3. #define __gnu_java_security_hash_Sha256__
  4. #pragma interface
  5. #include <gnu/java/security/hash/BaseHash.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 Sha256;
  18. }
  19. }
  20. }
  21. }
  22. }
  23. class gnu::java::security::hash::Sha256 : public ::gnu::java::security::hash::BaseHash
  24. {
  25. public:
  26. Sha256();
  27. private:
  28. Sha256(::gnu::java::security::hash::Sha256 *);
  29. public:
  30. static JArray< jint > * G(jint, jint, jint, jint, jint, jint, jint, jint, JArray< jbyte > *, jint);
  31. virtual ::java::lang::Object * clone();
  32. public: // actually protected
  33. virtual void transform(JArray< jbyte > *, jint);
  34. virtual JArray< jbyte > * padBuffer();
  35. virtual JArray< jbyte > * getResult();
  36. virtual void resetContext();
  37. public:
  38. virtual jboolean selfTest();
  39. private:
  40. static JArray< jint > * sha(jint, jint, jint, jint, jint, jint, jint, jint, JArray< jbyte > *, jint);
  41. static JArray< jint > * k;
  42. static const jint BLOCK_SIZE = 64;
  43. static ::java::lang::String * DIGEST0;
  44. static JArray< jint > * w;
  45. static ::java::lang::Boolean * valid;
  46. jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0;
  47. jint h1;
  48. jint h2;
  49. jint h3;
  50. jint h4;
  51. jint h5;
  52. jint h6;
  53. jint h7;
  54. public:
  55. static ::java::lang::Class class$;
  56. };
  57. #endif // __gnu_java_security_hash_Sha256__