TripleDESKeyWrap.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_kwa_TripleDESKeyWrap__
  3. #define __gnu_javax_crypto_kwa_TripleDESKeyWrap__
  4. #pragma interface
  5. #include <gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace java
  12. {
  13. namespace security
  14. {
  15. namespace hash
  16. {
  17. class Sha160;
  18. }
  19. }
  20. }
  21. namespace javax
  22. {
  23. namespace crypto
  24. {
  25. namespace assembly
  26. {
  27. class Assembly;
  28. }
  29. namespace kwa
  30. {
  31. class TripleDESKeyWrap;
  32. }
  33. }
  34. }
  35. }
  36. namespace java
  37. {
  38. namespace security
  39. {
  40. class SecureRandom;
  41. }
  42. }
  43. }
  44. class gnu::javax::crypto::kwa::TripleDESKeyWrap : public ::gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm
  45. {
  46. public:
  47. TripleDESKeyWrap();
  48. public: // actually protected
  49. virtual void engineInit(::java::util::Map *);
  50. virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint);
  51. virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint);
  52. private:
  53. void nextRandomBytes(JArray< jbyte > *);
  54. static JArray< jbyte > * DEFAULT_IV;
  55. ::gnu::javax::crypto::assembly::Assembly * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm)))) asm$;
  56. ::java::util::HashMap * asmAttributes;
  57. ::java::util::HashMap * modeAttributes;
  58. ::gnu::java::security::hash::Sha160 * sha;
  59. ::java::security::SecureRandom * rnd;
  60. public:
  61. static ::java::lang::Class class$;
  62. };
  63. #endif // __gnu_javax_crypto_kwa_TripleDESKeyWrap__