2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_crypto_Cipher__
5 #define __javax_crypto_Cipher__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
22 class AlgorithmParameters
;
32 class AlgorithmParameterSpec
;
42 class ExemptionMechanism
;
47 class javax::crypto::Cipher
: public ::java::lang::Object
51 static ::javax::crypto::Cipher
* getInstance(::java::lang::String
*);
52 static ::javax::crypto::Cipher
* getInstance(::java::lang::String
*, ::java::lang::String
*);
53 static ::javax::crypto::Cipher
* getInstance(::java::lang::String
*, ::java::security::Provider
*);
54 public: // actually protected
55 Cipher(::javax::crypto::CipherSpi
*, ::java::security::Provider
*, ::java::lang::String
*);
57 virtual ::java::lang::String
* getAlgorithm();
58 virtual jint
getBlockSize();
59 virtual ::javax::crypto::ExemptionMechanism
* getExemptionMechanism();
60 virtual JArray
< jbyte
> * getIV();
61 virtual ::java::security::AlgorithmParameters
* getParameters();
62 virtual ::java::security::Provider
* getProvider();
63 virtual JArray
< jbyte
> * doFinal();
64 virtual JArray
< jbyte
> * doFinal(JArray
< jbyte
> *);
65 virtual JArray
< jbyte
> * doFinal(JArray
< jbyte
> *, jint
, jint
);
66 virtual jint
doFinal(JArray
< jbyte
> *, jint
);
67 virtual jint
doFinal(JArray
< jbyte
> *, jint
, jint
, JArray
< jbyte
> *, jint
);
68 virtual jint
doFinal(JArray
< jbyte
> *, jint
, jint
, JArray
< jbyte
> *);
69 virtual jint
doFinal(::java::nio::ByteBuffer
*, ::java::nio::ByteBuffer
*);
70 virtual jint
getOutputSize(jint
);
71 virtual void init(jint
, ::java::security::cert::Certificate
*);
72 virtual void init(jint
, ::java::security::Key
*);
73 virtual void init(jint
, ::java::security::cert::Certificate
*, ::java::security::SecureRandom
*);
74 virtual void init(jint
, ::java::security::Key
*, ::java::security::SecureRandom
*);
75 virtual void init(jint
, ::java::security::Key
*, ::java::security::AlgorithmParameters
*);
76 virtual void init(jint
, ::java::security::Key
*, ::java::security::spec::AlgorithmParameterSpec
*);
77 virtual void init(jint
, ::java::security::Key
*, ::java::security::AlgorithmParameters
*, ::java::security::SecureRandom
*);
78 virtual void init(jint
, ::java::security::Key
*, ::java::security::spec::AlgorithmParameterSpec
*, ::java::security::SecureRandom
*);
79 virtual ::java::security::Key
* unwrap(JArray
< jbyte
> *, ::java::lang::String
*, jint
);
80 virtual JArray
< jbyte
> * update(JArray
< jbyte
> *);
81 virtual JArray
< jbyte
> * update(JArray
< jbyte
> *, jint
, jint
);
82 virtual jint
update(JArray
< jbyte
> *, jint
, jint
, JArray
< jbyte
> *);
83 virtual jint
update(JArray
< jbyte
> *, jint
, jint
, JArray
< jbyte
> *, jint
);
84 virtual jint
update(::java::nio::ByteBuffer
*, ::java::nio::ByteBuffer
*);
85 virtual JArray
< jbyte
> * wrap(::java::security::Key
*);
87 static ::java::lang::String
* SERVICE
;
89 static const jint DECRYPT_MODE
= 2;
90 static const jint ENCRYPT_MODE
= 1;
91 static const jint PRIVATE_KEY
= 2;
92 static const jint PUBLIC_KEY
= 1;
93 static const jint SECRET_KEY
= 3;
94 static const jint UNWRAP_MODE
= 4;
95 static const jint WRAP_MODE
= 3;
97 static const jint INITIAL_STATE
= 0;
98 ::javax::crypto::CipherSpi
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) cipherSpi
;
99 ::java::security::Provider
* provider
;
100 ::java::lang::String
* transformation
;
103 static ::java::lang::Class
class$
;
106 #endif // __javax_crypto_Cipher__