RSACipherImpl.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_RSACipherImpl__
  3. #define __gnu_javax_crypto_RSACipherImpl__
  4. #pragma interface
  5. #include <javax/crypto/CipherSpi.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace classpath
  12. {
  13. namespace debug
  14. {
  15. class SystemLogger;
  16. }
  17. }
  18. namespace javax
  19. {
  20. namespace crypto
  21. {
  22. class RSACipherImpl;
  23. }
  24. }
  25. }
  26. namespace java
  27. {
  28. namespace math
  29. {
  30. class BigInteger;
  31. }
  32. namespace security
  33. {
  34. class AlgorithmParameters;
  35. class Key;
  36. class SecureRandom;
  37. namespace interfaces
  38. {
  39. class RSAPrivateKey;
  40. class RSAPublicKey;
  41. }
  42. namespace spec
  43. {
  44. class AlgorithmParameterSpec;
  45. }
  46. }
  47. }
  48. }
  49. class gnu::javax::crypto::RSACipherImpl : public ::javax::crypto::CipherSpi
  50. {
  51. public:
  52. RSACipherImpl();
  53. public: // actually protected
  54. virtual void engineSetMode(::java::lang::String *);
  55. virtual void engineSetPadding(::java::lang::String *);
  56. virtual jint engineGetBlockSize();
  57. virtual jint engineGetOutputSize(jint);
  58. virtual jint engineGetKeySize(::java::security::Key *);
  59. virtual JArray< jbyte > * engineGetIV();
  60. virtual ::java::security::AlgorithmParameters * engineGetParameters();
  61. virtual void engineInit(jint, ::java::security::Key *, ::java::security::SecureRandom *);
  62. virtual void engineInit(jint, ::java::security::Key *, ::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
  63. virtual void engineInit(jint, ::java::security::Key *, ::java::security::AlgorithmParameters *, ::java::security::SecureRandom *);
  64. virtual JArray< jbyte > * engineUpdate(JArray< jbyte > *, jint, jint);
  65. virtual jint engineUpdate(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint);
  66. virtual JArray< jbyte > * engineDoFinal(JArray< jbyte > *, jint, jint);
  67. virtual jint engineDoFinal(JArray< jbyte > *, jint);
  68. virtual jint engineDoFinal(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint);
  69. private:
  70. JArray< jbyte > * rsaDecrypt(::java::math::BigInteger *);
  71. static ::gnu::classpath::debug::SystemLogger * logger;
  72. static JArray< jbyte > * EMPTY;
  73. jint __attribute__((aligned(__alignof__( ::javax::crypto::CipherSpi)))) opmode;
  74. ::java::security::interfaces::RSAPrivateKey * decipherKey;
  75. ::java::security::interfaces::RSAPublicKey * blindingKey;
  76. ::java::security::interfaces::RSAPublicKey * encipherKey;
  77. ::java::security::SecureRandom * random;
  78. JArray< jbyte > * dataBuffer;
  79. jint pos;
  80. public:
  81. static ::java::lang::Class class$;
  82. };
  83. #endif // __gnu_javax_crypto_RSACipherImpl__