From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- libjava/javax/crypto/Cipher.h | 106 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 libjava/javax/crypto/Cipher.h (limited to 'libjava/javax/crypto/Cipher.h') diff --git a/libjava/javax/crypto/Cipher.h b/libjava/javax/crypto/Cipher.h new file mode 100644 index 000000000..b77c4d1d9 --- /dev/null +++ b/libjava/javax/crypto/Cipher.h @@ -0,0 +1,106 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_crypto_Cipher__ +#define __javax_crypto_Cipher__ + +#pragma interface + +#include +#include + +extern "Java" +{ + namespace java + { + namespace nio + { + class ByteBuffer; + } + namespace security + { + class AlgorithmParameters; + class Key; + class Provider; + class SecureRandom; + namespace cert + { + class Certificate; + } + namespace spec + { + class AlgorithmParameterSpec; + } + } + } + namespace javax + { + namespace crypto + { + class Cipher; + class CipherSpi; + class ExemptionMechanism; + } + } +} + +class javax::crypto::Cipher : public ::java::lang::Object +{ + +public: + static ::javax::crypto::Cipher * getInstance(::java::lang::String *); + static ::javax::crypto::Cipher * getInstance(::java::lang::String *, ::java::lang::String *); + static ::javax::crypto::Cipher * getInstance(::java::lang::String *, ::java::security::Provider *); +public: // actually protected + Cipher(::javax::crypto::CipherSpi *, ::java::security::Provider *, ::java::lang::String *); +public: + virtual ::java::lang::String * getAlgorithm(); + virtual jint getBlockSize(); + virtual ::javax::crypto::ExemptionMechanism * getExemptionMechanism(); + virtual JArray< jbyte > * getIV(); + virtual ::java::security::AlgorithmParameters * getParameters(); + virtual ::java::security::Provider * getProvider(); + virtual JArray< jbyte > * doFinal(); + virtual JArray< jbyte > * doFinal(JArray< jbyte > *); + virtual JArray< jbyte > * doFinal(JArray< jbyte > *, jint, jint); + virtual jint doFinal(JArray< jbyte > *, jint); + virtual jint doFinal(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint); + virtual jint doFinal(JArray< jbyte > *, jint, jint, JArray< jbyte > *); + virtual jint doFinal(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *); + virtual jint getOutputSize(jint); + virtual void init(jint, ::java::security::cert::Certificate *); + virtual void init(jint, ::java::security::Key *); + virtual void init(jint, ::java::security::cert::Certificate *, ::java::security::SecureRandom *); + virtual void init(jint, ::java::security::Key *, ::java::security::SecureRandom *); + virtual void init(jint, ::java::security::Key *, ::java::security::AlgorithmParameters *); + virtual void init(jint, ::java::security::Key *, ::java::security::spec::AlgorithmParameterSpec *); + virtual void init(jint, ::java::security::Key *, ::java::security::AlgorithmParameters *, ::java::security::SecureRandom *); + virtual void init(jint, ::java::security::Key *, ::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *); + virtual ::java::security::Key * unwrap(JArray< jbyte > *, ::java::lang::String *, jint); + virtual JArray< jbyte > * update(JArray< jbyte > *); + virtual JArray< jbyte > * update(JArray< jbyte > *, jint, jint); + virtual jint update(JArray< jbyte > *, jint, jint, JArray< jbyte > *); + virtual jint update(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint); + virtual jint update(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *); + virtual JArray< jbyte > * wrap(::java::security::Key *); +private: + static ::java::lang::String * SERVICE; +public: + static const jint DECRYPT_MODE = 2; + static const jint ENCRYPT_MODE = 1; + static const jint PRIVATE_KEY = 2; + static const jint PUBLIC_KEY = 1; + static const jint SECRET_KEY = 3; + static const jint UNWRAP_MODE = 4; + static const jint WRAP_MODE = 3; +private: + static const jint INITIAL_STATE = 0; + ::javax::crypto::CipherSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) cipherSpi; + ::java::security::Provider * provider; + ::java::lang::String * transformation; + jint state; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_crypto_Cipher__ -- cgit v1.2.3