TripleDES.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_cipher_TripleDES__
  3. #define __gnu_javax_crypto_cipher_TripleDES__
  4. #pragma interface
  5. #include <gnu/javax/crypto/cipher/BaseCipher.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 DES;
  18. class TripleDES;
  19. }
  20. }
  21. }
  22. }
  23. }
  24. class gnu::javax::crypto::cipher::TripleDES : public ::gnu::javax::crypto::cipher::BaseCipher
  25. {
  26. public:
  27. TripleDES();
  28. static void adjustParity(JArray< jbyte > *, jint);
  29. static void adjustParity(jint, JArray< jbyte > *, jint);
  30. static jboolean isParityAdjusted(JArray< jbyte > *, jint);
  31. static jboolean isParityAdjusted(jint, JArray< jbyte > *, jint);
  32. virtual ::java::lang::Object * clone();
  33. virtual ::java::util::Iterator * blockSizes();
  34. virtual ::java::util::Iterator * keySizes();
  35. virtual ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
  36. virtual void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
  37. virtual void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
  38. static const jint BLOCK_SIZE = 8;
  39. static const jint KEY_SIZE = 24;
  40. private:
  41. ::gnu::javax::crypto::cipher::DES * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::cipher::BaseCipher)))) des;
  42. public:
  43. static ::java::lang::Class class$;
  44. };
  45. #endif // __gnu_javax_crypto_cipher_TripleDES__