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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [java/] [security/] [hash/] [Haval.h] - Blame information for rev 851

Go to most recent revision | 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_java_security_hash_Haval__
5
#define __gnu_java_security_hash_Haval__
6
 
7
#pragma interface
8
 
9
#include <gnu/java/security/hash/BaseHash.h>
10
#include <gcj/array.h>
11
 
12
extern "Java"
13
{
14
  namespace gnu
15
  {
16
    namespace java
17
    {
18
      namespace security
19
      {
20
        namespace hash
21
        {
22
            class Haval;
23
        }
24
      }
25
    }
26
  }
27
}
28
 
29
class gnu::java::security::hash::Haval : public ::gnu::java::security::hash::BaseHash
30
{
31
 
32
public:
33
  Haval();
34
  Haval(jint);
35
  Haval(jint, jint);
36
private:
37
  Haval(::gnu::java::security::hash::Haval *);
38
public:
39
  virtual ::java::lang::Object * clone();
40
public: // actually protected
41
  virtual void transform(JArray< jbyte > *, jint);
42
  virtual JArray< jbyte > * padBuffer();
43
  virtual JArray< jbyte > * getResult();
44
  virtual void resetContext();
45
public:
46
  virtual jboolean selfTest();
47
private:
48
  void tailorDigestBits();
49
  jint FF1(jint, jint, jint, jint, jint, jint, jint, jint, jint);
50
  jint FF2(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
51
  jint FF3(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
52
  jint FF4(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
53
  jint FF5(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
54
  jint f1(jint, jint, jint, jint, jint, jint, jint);
55
  jint f2(jint, jint, jint, jint, jint, jint, jint);
56
  jint f3(jint, jint, jint, jint, jint, jint, jint);
57
  jint f4(jint, jint, jint, jint, jint, jint, jint);
58
  jint f5(jint, jint, jint, jint, jint, jint, jint);
59
public:
60
  static const jint HAVAL_VERSION = 1;
61
  static const jint HAVAL_128_BIT = 16;
62
  static const jint HAVAL_160_BIT = 20;
63
  static const jint HAVAL_192_BIT = 24;
64
  static const jint HAVAL_224_BIT = 28;
65
  static const jint HAVAL_256_BIT = 32;
66
  static const jint HAVAL_3_ROUND = 3;
67
  static const jint HAVAL_4_ROUND = 4;
68
  static const jint HAVAL_5_ROUND = 5;
69
private:
70
  static const jint BLOCK_SIZE = 128;
71
  static ::java::lang::String * DIGEST0;
72
  static ::java::lang::Boolean * valid;
73
  jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) rounds;
74
  jint h0;
75
  jint h1;
76
  jint h2;
77
  jint h3;
78
  jint h4;
79
  jint h5;
80
  jint h6;
81
  jint h7;
82
public:
83
  static ::java::lang::Class class$;
84
};
85
 
86
#endif // __gnu_java_security_hash_Haval__

powered by: WebSVN 2.1.0

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