DiffieHellmanImpl.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_jce_DiffieHellmanImpl__
  3. #define __gnu_javax_crypto_jce_DiffieHellmanImpl__
  4. #pragma interface
  5. #include <javax/crypto/KeyAgreementSpi.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace javax
  12. {
  13. namespace crypto
  14. {
  15. namespace jce
  16. {
  17. class DiffieHellmanImpl;
  18. }
  19. }
  20. }
  21. }
  22. namespace java
  23. {
  24. namespace security
  25. {
  26. class Key;
  27. class SecureRandom;
  28. namespace spec
  29. {
  30. class AlgorithmParameterSpec;
  31. }
  32. }
  33. }
  34. namespace javax
  35. {
  36. namespace crypto
  37. {
  38. class SecretKey;
  39. namespace interfaces
  40. {
  41. class DHPrivateKey;
  42. }
  43. }
  44. }
  45. }
  46. class gnu::javax::crypto::jce::DiffieHellmanImpl : public ::javax::crypto::KeyAgreementSpi
  47. {
  48. public:
  49. DiffieHellmanImpl();
  50. public: // actually protected
  51. ::java::security::Key * engineDoPhase(::java::security::Key *, jboolean);
  52. JArray< jbyte > * engineGenerateSecret();
  53. jint engineGenerateSecret(JArray< jbyte > *, jint);
  54. ::javax::crypto::SecretKey * engineGenerateSecret(::java::lang::String *);
  55. void engineInit(::java::security::Key *, ::java::security::SecureRandom *);
  56. void engineInit(::java::security::Key *, ::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
  57. private:
  58. void reset();
  59. void checkState();
  60. ::javax::crypto::interfaces::DHPrivateKey * __attribute__((aligned(__alignof__( ::javax::crypto::KeyAgreementSpi)))) key;
  61. JArray< jbyte > * result;
  62. jboolean last_phase_done;
  63. public:
  64. static ::java::lang::Class class$;
  65. };
  66. #endif // __gnu_javax_crypto_jce_DiffieHellmanImpl__