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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [gnu/] [java/] [security/] [sig/] [dss/] [DSSSignature.h] - Blame information for rev 775

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_sig_dss_DSSSignature__
5
#define __gnu_java_security_sig_dss_DSSSignature__
6
 
7
#pragma interface
8
 
9
#include <gnu/java/security/sig/BaseSignature.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 prng
21
        {
22
            class IRandom;
23
        }
24
        namespace sig
25
        {
26
          namespace dss
27
          {
28
              class DSSSignature;
29
          }
30
        }
31
      }
32
    }
33
  }
34
  namespace java
35
  {
36
    namespace math
37
    {
38
        class BigInteger;
39
    }
40
    namespace security
41
    {
42
        class PrivateKey;
43
        class PublicKey;
44
      namespace interfaces
45
      {
46
          class DSAPrivateKey;
47
          class DSAPublicKey;
48
      }
49
    }
50
  }
51
}
52
 
53
class gnu::java::security::sig::dss::DSSSignature : public ::gnu::java::security::sig::BaseSignature
54
{
55
 
56
public:
57
  DSSSignature();
58
private:
59
  DSSSignature(::gnu::java::security::sig::dss::DSSSignature *);
60
public:
61
  static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *);
62
  static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *, ::java::util::Random *);
63
  static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *, ::gnu::java::security::prng::IRandom *);
64
  static jboolean verify(::java::security::interfaces::DSAPublicKey *, JArray< jbyte > *, JArray< ::java::math::BigInteger * > *);
65
  virtual ::java::lang::Object * clone();
66
public: // actually protected
67
  virtual void setupForVerification(::java::security::PublicKey *);
68
  virtual void setupForSigning(::java::security::PrivateKey *);
69
  virtual ::java::lang::Object * generateSignature();
70
  virtual jboolean verifySignature(::java::lang::Object *);
71
private:
72
  ::java::lang::Object * encodeSignature(::java::math::BigInteger *, ::java::math::BigInteger *);
73
  JArray< ::java::math::BigInteger * > * decodeSignature(::java::lang::Object *);
74
  JArray< ::java::math::BigInteger * > * computeRS(JArray< jbyte > *);
75
  jboolean checkRS(JArray< ::java::math::BigInteger * > *, JArray< jbyte > *);
76
public:
77
  static ::java::lang::Class class$;
78
};
79
 
80
#endif // __gnu_java_security_sig_dss_DSSSignature__

powered by: WebSVN 2.1.0

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