Cipher.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_crypto_Cipher__
  3. #define __javax_crypto_Cipher__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace nio
  12. {
  13. class ByteBuffer;
  14. }
  15. namespace security
  16. {
  17. class AlgorithmParameters;
  18. class Key;
  19. class Provider;
  20. class SecureRandom;
  21. namespace cert
  22. {
  23. class Certificate;
  24. }
  25. namespace spec
  26. {
  27. class AlgorithmParameterSpec;
  28. }
  29. }
  30. }
  31. namespace javax
  32. {
  33. namespace crypto
  34. {
  35. class Cipher;
  36. class CipherSpi;
  37. class ExemptionMechanism;
  38. }
  39. }
  40. }
  41. class javax::crypto::Cipher : public ::java::lang::Object
  42. {
  43. public:
  44. static ::javax::crypto::Cipher * getInstance(::java::lang::String *);
  45. static ::javax::crypto::Cipher * getInstance(::java::lang::String *, ::java::lang::String *);
  46. static ::javax::crypto::Cipher * getInstance(::java::lang::String *, ::java::security::Provider *);
  47. public: // actually protected
  48. Cipher(::javax::crypto::CipherSpi *, ::java::security::Provider *, ::java::lang::String *);
  49. public:
  50. virtual ::java::lang::String * getAlgorithm();
  51. virtual jint getBlockSize();
  52. virtual ::javax::crypto::ExemptionMechanism * getExemptionMechanism();
  53. virtual JArray< jbyte > * getIV();
  54. virtual ::java::security::AlgorithmParameters * getParameters();
  55. virtual ::java::security::Provider * getProvider();
  56. virtual JArray< jbyte > * doFinal();
  57. virtual JArray< jbyte > * doFinal(JArray< jbyte > *);
  58. virtual JArray< jbyte > * doFinal(JArray< jbyte > *, jint, jint);
  59. virtual jint doFinal(JArray< jbyte > *, jint);
  60. virtual jint doFinal(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint);
  61. virtual jint doFinal(JArray< jbyte > *, jint, jint, JArray< jbyte > *);
  62. virtual jint doFinal(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
  63. virtual jint getOutputSize(jint);
  64. virtual void init(jint, ::java::security::cert::Certificate *);
  65. virtual void init(jint, ::java::security::Key *);
  66. virtual void init(jint, ::java::security::cert::Certificate *, ::java::security::SecureRandom *);
  67. virtual void init(jint, ::java::security::Key *, ::java::security::SecureRandom *);
  68. virtual void init(jint, ::java::security::Key *, ::java::security::AlgorithmParameters *);
  69. virtual void init(jint, ::java::security::Key *, ::java::security::spec::AlgorithmParameterSpec *);
  70. virtual void init(jint, ::java::security::Key *, ::java::security::AlgorithmParameters *, ::java::security::SecureRandom *);
  71. virtual void init(jint, ::java::security::Key *, ::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
  72. virtual ::java::security::Key * unwrap(JArray< jbyte > *, ::java::lang::String *, jint);
  73. virtual JArray< jbyte > * update(JArray< jbyte > *);
  74. virtual JArray< jbyte > * update(JArray< jbyte > *, jint, jint);
  75. virtual jint update(JArray< jbyte > *, jint, jint, JArray< jbyte > *);
  76. virtual jint update(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint);
  77. virtual jint update(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
  78. virtual JArray< jbyte > * wrap(::java::security::Key *);
  79. private:
  80. static ::java::lang::String * SERVICE;
  81. public:
  82. static const jint DECRYPT_MODE = 2;
  83. static const jint ENCRYPT_MODE = 1;
  84. static const jint PRIVATE_KEY = 2;
  85. static const jint PUBLIC_KEY = 1;
  86. static const jint SECRET_KEY = 3;
  87. static const jint UNWRAP_MODE = 4;
  88. static const jint WRAP_MODE = 3;
  89. private:
  90. static const jint INITIAL_STATE = 0;
  91. ::javax::crypto::CipherSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) cipherSpi;
  92. ::java::security::Provider * provider;
  93. ::java::lang::String * transformation;
  94. jint state;
  95. public:
  96. static ::java::lang::Class class$;
  97. };
  98. #endif // __javax_crypto_Cipher__