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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [prng/] [Fortuna.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_prng_Fortuna__
5
#define __gnu_javax_crypto_prng_Fortuna__
6
 
7
#pragma interface
8
 
9
#include <gnu/java/security/prng/BasePRNG.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 IMessageDigest;
23
        }
24
        namespace prng
25
        {
26
            class RandomEvent;
27
        }
28
      }
29
    }
30
    namespace javax
31
    {
32
      namespace crypto
33
      {
34
        namespace prng
35
        {
36
            class Fortuna;
37
            class Fortuna$Generator;
38
        }
39
      }
40
    }
41
  }
42
}
43
 
44
class gnu::javax::crypto::prng::Fortuna : public ::gnu::java::security::prng::BasePRNG
45
{
46
 
47
public:
48
  Fortuna();
49
  virtual void setup(::java::util::Map *);
50
  virtual void fillBlock();
51
  virtual void addRandomByte(jbyte);
52
  virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
53
  virtual void addRandomEvent(::gnu::java::security::prng::RandomEvent *);
54
private:
55
  void writeObject(::java::io::ObjectOutputStream *);
56
  void readObject(::java::io::ObjectInputStream *);
57
  static const jlong serialVersionUID = 16435934LL;
58
  static const jint SEED_FILE_SIZE = 64;
59
  static const jint NUM_POOLS = 32;
60
  static const jint MIN_POOL_SIZE = 64;
61
  ::gnu::javax::crypto::prng::Fortuna$Generator * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) generator;
62
  JArray< ::gnu::java::security::hash::IMessageDigest * > * pools;
63
  jlong lastReseed;
64
  jint pool;
65
  jint pool0Count;
66
  jint reseedCount;
67
public:
68
  static ::java::lang::String * SEED;
69
  static ::java::lang::Class class$;
70
};
71
 
72
#endif // __gnu_javax_crypto_prng_Fortuna__

powered by: WebSVN 2.1.0

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