diff options
author | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
---|---|---|
committer | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
commit | 554fd8c5195424bdbcabf5de30fdc183aba391bd (patch) | |
tree | 976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/gnu/javax/crypto/kwa | |
download | cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2 cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz |
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
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.
Diffstat (limited to 'libjava/gnu/javax/crypto/kwa')
-rw-r--r-- | libjava/gnu/javax/crypto/kwa/AESKeyWrap.h | 50 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h | 63 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/kwa/IKeyWrappingAlgorithm.h | 45 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/kwa/KeyUnwrappingException.h | 36 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/kwa/KeyWrappingAlgorithmFactory.h | 41 | ||||
-rw-r--r-- | libjava/gnu/javax/crypto/kwa/TripleDESKeyWrap.h | 71 |
6 files changed, 306 insertions, 0 deletions
diff --git a/libjava/gnu/javax/crypto/kwa/AESKeyWrap.h b/libjava/gnu/javax/crypto/kwa/AESKeyWrap.h new file mode 100644 index 000000000..6e1528a75 --- /dev/null +++ b/libjava/gnu/javax/crypto/kwa/AESKeyWrap.h @@ -0,0 +1,50 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_kwa_AESKeyWrap__ +#define __gnu_javax_crypto_kwa_AESKeyWrap__ + +#pragma interface + +#include <gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace cipher + { + class Rijndael; + } + namespace kwa + { + class AESKeyWrap; + } + } + } + } +} + +class gnu::javax::crypto::kwa::AESKeyWrap : public ::gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm +{ + +public: + AESKeyWrap(); +public: // actually protected + virtual void engineInit(::java::util::Map *); + virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint); + virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint); +private: + static JArray< jbyte > * DEFAULT_IV; + ::gnu::javax::crypto::cipher::Rijndael * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm)))) aes; + JArray< jbyte > * iv; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_kwa_AESKeyWrap__ diff --git a/libjava/gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h b/libjava/gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h new file mode 100644 index 000000000..34e131931 --- /dev/null +++ b/libjava/gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h @@ -0,0 +1,63 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_kwa_BaseKeyWrappingAlgorithm__ +#define __gnu_javax_crypto_kwa_BaseKeyWrappingAlgorithm__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class PRNG; + } + } + } + namespace javax + { + namespace crypto + { + namespace kwa + { + class BaseKeyWrappingAlgorithm; + } + } + } + } +} + +class gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm : public ::java::lang::Object +{ + +public: // actually protected + BaseKeyWrappingAlgorithm(::java::lang::String *); +public: + virtual ::java::lang::String * name(); + virtual void init(::java::util::Map *); + virtual jint wrap(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint); + virtual JArray< jbyte > * wrap(JArray< jbyte > *, jint, jint); + virtual jint unwrap(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint); + virtual JArray< jbyte > * unwrap(JArray< jbyte > *, jint, jint); +public: // actually protected + virtual void engineInit(::java::util::Map *) = 0; + virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint) = 0; + virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint) = 0; + virtual ::gnu::java::security::util::PRNG * getDefaultPRNG(); + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__; +private: + ::gnu::java::security::util::PRNG * prng; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_kwa_BaseKeyWrappingAlgorithm__ diff --git a/libjava/gnu/javax/crypto/kwa/IKeyWrappingAlgorithm.h b/libjava/gnu/javax/crypto/kwa/IKeyWrappingAlgorithm.h new file mode 100644 index 000000000..56d032add --- /dev/null +++ b/libjava/gnu/javax/crypto/kwa/IKeyWrappingAlgorithm.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_kwa_IKeyWrappingAlgorithm__ +#define __gnu_javax_crypto_kwa_IKeyWrappingAlgorithm__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace kwa + { + class IKeyWrappingAlgorithm; + } + } + } + } +} + +class gnu::javax::crypto::kwa::IKeyWrappingAlgorithm : public ::java::lang::Object +{ + +public: + virtual ::java::lang::String * name() = 0; + virtual void init(::java::util::Map *) = 0; + virtual jint wrap(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint) = 0; + virtual JArray< jbyte > * wrap(JArray< jbyte > *, jint, jint) = 0; + virtual jint unwrap(JArray< jbyte > *, jint, jint, JArray< jbyte > *, jint) = 0; + virtual JArray< jbyte > * unwrap(JArray< jbyte > *, jint, jint) = 0; + static ::java::lang::String * KEY_ENCRYPTION_KEY_MATERIAL; + static ::java::lang::String * INITIAL_VALUE; + static ::java::lang::String * SOURCE_OF_RANDOMNESS; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_javax_crypto_kwa_IKeyWrappingAlgorithm__ diff --git a/libjava/gnu/javax/crypto/kwa/KeyUnwrappingException.h b/libjava/gnu/javax/crypto/kwa/KeyUnwrappingException.h new file mode 100644 index 000000000..b9d9039fb --- /dev/null +++ b/libjava/gnu/javax/crypto/kwa/KeyUnwrappingException.h @@ -0,0 +1,36 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_kwa_KeyUnwrappingException__ +#define __gnu_javax_crypto_kwa_KeyUnwrappingException__ + +#pragma interface + +#include <java/security/GeneralSecurityException.h> +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace kwa + { + class KeyUnwrappingException; + } + } + } + } +} + +class gnu::javax::crypto::kwa::KeyUnwrappingException : public ::java::security::GeneralSecurityException +{ + +public: + KeyUnwrappingException(); + KeyUnwrappingException(::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_kwa_KeyUnwrappingException__ diff --git a/libjava/gnu/javax/crypto/kwa/KeyWrappingAlgorithmFactory.h b/libjava/gnu/javax/crypto/kwa/KeyWrappingAlgorithmFactory.h new file mode 100644 index 000000000..ab443dbe7 --- /dev/null +++ b/libjava/gnu/javax/crypto/kwa/KeyWrappingAlgorithmFactory.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_kwa_KeyWrappingAlgorithmFactory__ +#define __gnu_javax_crypto_kwa_KeyWrappingAlgorithmFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace crypto + { + namespace kwa + { + class IKeyWrappingAlgorithm; + class KeyWrappingAlgorithmFactory; + } + } + } + } +} + +class gnu::javax::crypto::kwa::KeyWrappingAlgorithmFactory : public ::java::lang::Object +{ + + KeyWrappingAlgorithmFactory(); +public: + static ::gnu::javax::crypto::kwa::IKeyWrappingAlgorithm * getInstance(::java::lang::String *); + static ::java::util::Set * getNames(); +private: + static ::java::util::Set * names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_kwa_KeyWrappingAlgorithmFactory__ diff --git a/libjava/gnu/javax/crypto/kwa/TripleDESKeyWrap.h b/libjava/gnu/javax/crypto/kwa/TripleDESKeyWrap.h new file mode 100644 index 000000000..5f23a7015 --- /dev/null +++ b/libjava/gnu/javax/crypto/kwa/TripleDESKeyWrap.h @@ -0,0 +1,71 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_crypto_kwa_TripleDESKeyWrap__ +#define __gnu_javax_crypto_kwa_TripleDESKeyWrap__ + +#pragma interface + +#include <gnu/javax/crypto/kwa/BaseKeyWrappingAlgorithm.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Sha160; + } + } + } + namespace javax + { + namespace crypto + { + namespace assembly + { + class Assembly; + } + namespace kwa + { + class TripleDESKeyWrap; + } + } + } + } + namespace java + { + namespace security + { + class SecureRandom; + } + } +} + +class gnu::javax::crypto::kwa::TripleDESKeyWrap : public ::gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm +{ + +public: + TripleDESKeyWrap(); +public: // actually protected + virtual void engineInit(::java::util::Map *); + virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint); + virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint); +private: + void nextRandomBytes(JArray< jbyte > *); + static JArray< jbyte > * DEFAULT_IV; + ::gnu::javax::crypto::assembly::Assembly * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::kwa::BaseKeyWrappingAlgorithm)))) asm$; + ::java::util::HashMap * asmAttributes; + ::java::util::HashMap * modeAttributes; + ::gnu::java::security::hash::Sha160 * sha; + ::java::security::SecureRandom * rnd; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_crypto_kwa_TripleDESKeyWrap__ |