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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [cipher/] [Square.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_Square__
5
#define __gnu_javax_crypto_cipher_Square__
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 Square;
23
        }
24
      }
25
    }
26
  }
27
}
28
 
29
class gnu::javax::crypto::cipher::Square : public ::gnu::javax::crypto::cipher::BaseCipher
30
{
31
 
32
public:
33
  Square();
34
private:
35
  static void square(JArray< jbyte > *, jint, JArray< jbyte > *, jint, JArray< JArray< jint > * > *, JArray< jint > *, JArray< jbyte > *);
36
  static void transform(JArray< jint > *, JArray< jint > *);
37
  static jint rot32L(jint, jint);
38
  static jint rot32R(jint, jint);
39
  static jint mul(jint, jint);
40
public:
41
  ::java::lang::Object * clone();
42
  ::java::util::Iterator * blockSizes();
43
  ::java::util::Iterator * keySizes();
44
  ::java::lang::Object * makeKey(JArray< jbyte > *, jint);
45
  void encrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
46
  void decrypt(JArray< jbyte > *, jint, JArray< jbyte > *, jint, ::java::lang::Object *, jint);
47
  jboolean selfTest();
48
private:
49
  static const jint DEFAULT_BLOCK_SIZE = 16;
50
  static const jint DEFAULT_KEY_SIZE = 16;
51
  static const jint ROUNDS = 8;
52
  static const jint ROOT = 501;
53
  static JArray< jint > * OFFSET;
54
  static ::java::lang::String * Sdata;
55
  static JArray< jbyte > * Se;
56
  static JArray< jbyte > * Sd;
57
  static JArray< jint > * Te;
58
  static JArray< jint > * Td;
59
  static JArray< jbyte > * KAT_KEY;
60
  static JArray< jbyte > * KAT_CT;
61
  static ::java::lang::Boolean * valid;
62
public:
63
  static ::java::lang::Class class$;
64
};
65
 
66
#endif // __gnu_javax_crypto_cipher_Square__

powered by: WebSVN 2.1.0

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