aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/cvc_key.h
blob: 1867f04f4778b1dd22575f80c012999298ec37f5 (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
/*************************************************
* EAC CVC Public Key Header File                 *
* (C) 2008 FlexSecure Gmbh                       *
*          Falko Strenzke                        *
*          strenzke@flexsecure.de                *
*************************************************/

#ifndef BOTAN_EAC1_1_CVC_PUBLIC_KEY_H__
#define BOTAN_EAC1_1_CVC_PUBLIC_KEY_H__

#include <botan/pipe.h>
#include <botan/pk_keys.h>
#include <botan/alg_id.h>

namespace Botan {

/*************************************************
    * EAC CVC Public Key Encoder                       *
*************************************************/
    class EAC1_1_CVC_Encoder
    {
        public:
            virtual MemoryVector<byte> public_key(AlgorithmIdentifier const&) const = 0;
            virtual ~EAC1_1_CVC_Encoder() {}
    };

/*************************************************
    * EAC CVC Public Key Decoder                       *
*************************************************/
    class EAC1_1_CVC_Decoder
    {
        public:
            virtual AlgorithmIdentifier const public_key(const MemoryRegion<byte>&) = 0;
            virtual ~EAC1_1_CVC_Decoder() {}
    };
}
#endif