OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [javax/] [crypto/] [Cipher.h] - Blame information for rev 759

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 759 jeremybenn
 
2
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3
 
4
#ifndef __javax_crypto_Cipher__
5
#define __javax_crypto_Cipher__
6
 
7
#pragma interface
8
 
9
#include <java/lang/Object.h>
10
#include <gcj/array.h>
11
 
12
extern "Java"
13
{
14
  namespace java
15
  {
16
    namespace nio
17
    {
18
        class ByteBuffer;
19
    }
20
    namespace security
21
    {
22
        class AlgorithmParameters;
23
        class Key;
24
        class Provider;
25
        class SecureRandom;
26
      namespace cert
27
      {
28
          class Certificate;
29
      }
30
      namespace spec
31
      {
32
          class AlgorithmParameterSpec;
33
      }
34
    }
35
  }
36
  namespace javax
37
  {
38
    namespace crypto
39
    {
40
        class Cipher;
41
        class CipherSpi;
42
        class ExemptionMechanism;
43
    }
44
  }
45
}
46
 
47
class javax::crypto::Cipher : public ::java::lang::Object
48
{
49
 
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$;
104
};
105
 
106
#endif // __javax_crypto_Cipher__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.