aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ecdsa/ecc_op.h
blob: 319e02da9956de07ac666144b3e85bb3fbf536be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*************************************************
* ECDSA/ECKAEG Operations Header File            *
* (C) 1999-2008 Jack Lloyd                       *
*************************************************/

#ifndef BOTAN_ECDSA_OPERATIONS_H__
#define BOTAN_ECDSA_OPERATIONS_H__

#include <botan/bigint.h>
#include <botan/point_gfp.h>

namespace Botan {

/*************************************************
* ECDSA Operation                               *
*************************************************/
class BOTAN_DLL ECDSA_Operation
   {
   public:
      virtual bool verify(const byte sig[], u32bit sig_len,
                          const byte msg[], u32bit msg_len) const = 0;

      virtual SecureVector<byte> sign(const byte message[],
                                      u32bit mess_len) const = 0;

      virtual ECDSA_Operation* clone() const = 0;

      virtual ~ECDSA_Operation() {}
   };

/*************************************************
* ECKAEG Operation                               *
*************************************************/
class BOTAN_DLL ECKAEG_Operation
   {
   public:
      virtual SecureVector<byte> agree(const PointGFp&) const = 0;
      virtual ECKAEG_Operation* clone() const = 0;
      virtual ~ECKAEG_Operation() {}
   };

}

#endif