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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [cipher/] [Blowfish.h] - Blame information for rev 756

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 756 jeremybenn
 
2
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3
 
4
#ifndef __gnu_javax_crypto_cipher_Blowfish__
5
#define __gnu_javax_crypto_cipher_Blowfish__
6
 
7
#pragma interface
8
 
9
#include <gnu/javax/crypto/cipher/BaseCipher.h>
10
#include <gcj/array.h>
11
 
12
extern "Java"
13
{
14
  namespace gnu
15
  {
16
    namespace javax
17
    {
18
      namespace crypto
19
      {
20
        namespace cipher
21
        {
22
            class Blowfish;
23
            class Blowfish$Block;
24
            class Blowfish$Context;
25
        }
26
      }
27
    }
28
  }
29
}
30
 
31
class gnu::javax::crypto::cipher::Blowfish : public ::gnu::javax::crypto::cipher::BaseCipher
32
{
33
 
34
public:
35
  Blowfish();
36
  virtual ::java::lang::Object * clone();
37
  virtual ::java::util::Iterator * keySizes();
38
  virtual ::java::util::Iterator * blockSizes();
39
  virtual ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
40
  virtual void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
41
  virtual void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
42
private:
43
  void blowfishEncrypt(::gnu::javax::crypto::cipher::Blowfish$Block *, ::gnu::javax::crypto::cipher::Blowfish$Context *);
44
  void blowfishDecrypt(::gnu::javax::crypto::cipher::Blowfish$Block *, ::gnu::javax::crypto::cipher::Blowfish$Context *);
45
public:
46
  virtual jboolean selfTest();
47
private:
48
  static const jint DEFAULT_BLOCK_SIZE = 8;
49
  static const jint DEFAULT_KEY_SIZE = 8;
50
  static const jint MAX_KEY_LENGTH = 56;
51
  static JArray< jint > * P;
52
public: // actually package-private
53
  static JArray< jint > * KS0;
54
private:
55
  static JArray< jint > * KS1;
56
  static JArray< jint > * KS2;
57
  static JArray< jint > * KS3;
58
  static ::java::lang::Boolean * valid;
59
  static JArray< jbyte > * TV_KEY;
60
  static JArray< jbyte > * TV_CT;
61
public:
62
  static ::java::lang::Class class$;
63
};
64
 
65
#endif // __gnu_javax_crypto_cipher_Blowfish__

powered by: WebSVN 2.1.0

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