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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [cipher/] [Serpent.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_Serpent__
5
#define __gnu_javax_crypto_cipher_Serpent__
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 Serpent;
23
        }
24
      }
25
    }
26
  }
27
}
28
 
29
class gnu::javax::crypto::cipher::Serpent : public ::gnu::javax::crypto::cipher::BaseCipher
30
{
31
 
32
public:
33
  Serpent();
34
  virtual ::java::lang::Object * clone();
35
  virtual ::java::util::Iterator * blockSizes();
36
  virtual ::java::util::Iterator * keySizes();
37
  virtual ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
38
  virtual void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
39
  virtual void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
40
  virtual jboolean selfTest();
41
private:
42
  void sbox0();
43
  void sbox1();
44
  void sbox2();
45
  void sbox3();
46
  void sbox4();
47
  void sbox5();
48
  void sbox6();
49
  void sbox7();
50
  void sbox7noLT();
51
  void sboxI7noLT();
52
  void sboxI6();
53
  void sboxI5();
54
  void sboxI4();
55
  void sboxI3();
56
  void sboxI2();
57
  void sboxI1();
58
  void sboxI0();
59
  void sboxI7();
60
  void sbox0(jint, jint, jint, jint);
61
  void sbox1(jint, jint, jint, jint);
62
  void sbox2(jint, jint, jint, jint);
63
  void sbox3(jint, jint, jint, jint);
64
  void sbox4(jint, jint, jint, jint);
65
  void sbox5(jint, jint, jint, jint);
66
  void sbox6(jint, jint, jint, jint);
67
  void sbox7(jint, jint, jint, jint);
68
  static const jint DEFAULT_KEY_SIZE = 16;
69
  static const jint DEFAULT_BLOCK_SIZE = 16;
70
  static const jint ROUNDS = 32;
71
  static const jint PHI = -1640531527;
72
  static JArray< jbyte > * KAT_KEY;
73
  static JArray< jbyte > * KAT_CT;
74
  static ::java::lang::Boolean * valid;
75
  jint __attribute__((aligned(__alignof__( ::gnu::javax::crypto::cipher::BaseCipher)))) x0;
76
  jint x1;
77
  jint x2;
78
  jint x3;
79
  jint x4;
80
public:
81
  static ::java::lang::Class class$;
82
};
83
 
84
#endif // __gnu_javax_crypto_cipher_Serpent__

powered by: WebSVN 2.1.0

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