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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [cipher/] [Cast5.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_Cast5__
5
#define __gnu_javax_crypto_cipher_Cast5__
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 Cast5;
23
        }
24
      }
25
    }
26
  }
27
}
28
 
29
class gnu::javax::crypto::cipher::Cast5 : public ::gnu::javax::crypto::cipher::BaseCipher
30
{
31
 
32
public:
33
  Cast5();
34
private:
35
  static JArray< jint > * unscramble(jint);
36
public:
37
  virtual ::java::lang::Object * clone();
38
  virtual ::java::util::Iterator * blockSizes();
39
  virtual ::java::util::Iterator * keySizes();
40
  virtual ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
41
  virtual void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
42
  virtual void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
43
  virtual jboolean selfTest();
44
private:
45
  jint f1(jint, jint, jint);
46
  jint f2(jint, jint, jint);
47
  jint f3(jint, jint, jint);
48
  static const jint DEFAULT_BLOCK_SIZE = 8;
49
  static const jint DEFAULT_KEY_SIZE = 5;
50
  static JArray< jbyte > * KAT_KEY;
51
  static JArray< jbyte > * KAT_PT;
52
  static JArray< jbyte > * KAT_CT;
53
  static ::java::lang::Boolean * valid;
54
  static JArray< jint > * S1;
55
  static JArray< jint > * S2;
56
  static JArray< jint > * S3;
57
  static JArray< jint > * S4;
58
  static JArray< jint > * S5;
59
  static JArray< jint > * S6;
60
  static JArray< jint > * S7;
61
  static JArray< jint > * S8;
62
  static const jint _12_ROUNDS = 12;
63
  static const jint _16_ROUNDS = 16;
64
public:
65
  static ::java::lang::Class class$;
66
};
67
 
68
#endif // __gnu_javax_crypto_cipher_Cast5__

powered by: WebSVN 2.1.0

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