1 2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- 3 4 #ifndef __gnu_gcj_io_SimpleSHSStream__ 5 #define __gnu_gcj_io_SimpleSHSStream__ 6 7 #pragma interface 8 9 #include <java/io/DataOutputStream.h> 10 #include <gcj/array.h> 11 12 extern "Java" 13 { 14 namespace gnu 15 { 16 namespace gcj 17 { 18 namespace io 19 { 20 class SimpleSHSStream; 21 } 22 } 23 } 24 } 25 26 class gnu::gcj::io::SimpleSHSStream : public ::java::io::DataOutputStream 27 { 28 29 public: // actually package-private 30 static JArray< jbyte > * shsFinal(JArray< jbyte > *); 31 static void shsUpdate(JArray< jbyte > *, JArray< jbyte > *, jint); 32 static JArray< jbyte > * shsInit(); 33 private: 34 void update(jbyte); 35 public: 36 virtual void write(jint); 37 virtual void write(JArray< jbyte > *, jint, jint); 38 virtual JArray< jbyte > * digest(); 39 SimpleSHSStream(::java::io::OutputStream *); 40 public: // actually package-private 41 jint __attribute__((aligned(__alignof__( ::java::io::DataOutputStream)))) counter; 42 const jint SHS_BLOCKSIZE; 43 const jint SHS_DIGESTSIZE; 44 JArray< jbyte > * buf; 45 JArray< jbyte > * shs_info; 46 public: 47 static ::java::lang::Class class$; 48 }; 49 50 #endif // __gnu_gcj_io_SimpleSHSStream__ 51