aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/pk_algs.h
blob: 3fbaed23468f48edf22c1811049415b24d61e38d (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
/*
* PK Key Factory
* (C) 1999-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#ifndef BOTAN_PK_KEY_FACTORY_H__
#define BOTAN_PK_KEY_FACTORY_H__

#include <botan/pk_keys.h>

namespace Botan {

BOTAN_DLL Public_Key* make_public_key(const AlgorithmIdentifier& alg_id,
                                      const MemoryRegion<byte>& key_bits);

BOTAN_DLL Private_Key* make_private_key(const AlgorithmIdentifier& alg_id,
                                        const MemoryRegion<byte>& key_bits,
                                        RandomNumberGenerator& rng);

}

#endif