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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [javax/] [crypto/] [prng/] [Fortuna$Generator.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$Generator__
5
#define __gnu_javax_crypto_prng_Fortuna$Generator__
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
      }
25
    }
26
    namespace javax
27
    {
28
      namespace crypto
29
      {
30
        namespace cipher
31
        {
32
            class IBlockCipher;
33
        }
34
        namespace prng
35
        {
36
            class Fortuna$Generator;
37
        }
38
      }
39
    }
40
  }
41
}
42
 
43
class gnu::javax::crypto::prng::Fortuna$Generator : public ::gnu::java::security::prng::BasePRNG
44
{
45
 
46
public:
47
  Fortuna$Generator(::gnu::javax::crypto::cipher::IBlockCipher *, ::gnu::java::security::hash::IMessageDigest *);
48
  virtual jbyte nextByte();
49
  virtual void nextBytes(JArray< jbyte > *, jint, jint);
50
  virtual void addRandomByte(jbyte);
51
  virtual void addRandomBytes(JArray< jbyte > *, jint, jint);
52
  virtual void fillBlock();
53
  virtual void setup(::java::util::Map *);
54
private:
55
  void resetKey();
56
  void incrementCounter();
57
  static const jint LIMIT = 1048576;
58
  ::gnu::javax::crypto::cipher::IBlockCipher * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) cipher;
59
  ::gnu::java::security::hash::IMessageDigest * hash;
60
  JArray< jbyte > * counter;
61
  JArray< jbyte > * key;
62
  jboolean seeded;
63
public:
64
  static ::java::lang::Class class$;
65
};
66
 
67
#endif // __gnu_javax_crypto_prng_Fortuna$Generator__

powered by: WebSVN 2.1.0

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