* doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
[official-gcc.git] / libjava / javax / crypto / Cipher.h
blobb77c4d1d959e397e5e009245ebab4d7a9914359d
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_crypto_Cipher__
5 #define __javax_crypto_Cipher__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace nio
18 class ByteBuffer;
20 namespace security
22 class AlgorithmParameters;
23 class Key;
24 class Provider;
25 class SecureRandom;
26 namespace cert
28 class Certificate;
30 namespace spec
32 class AlgorithmParameterSpec;
36 namespace javax
38 namespace crypto
40 class Cipher;
41 class CipherSpi;
42 class ExemptionMechanism;
47 class javax::crypto::Cipher : public ::java::lang::Object
50 public:
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 *);
56 public:
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 *);
86 private:
87 static ::java::lang::String * SERVICE;
88 public:
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;
96 private:
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;
101 jint state;
102 public:
103 static ::java::lang::Class class$;
106 #endif // __javax_crypto_Cipher__