blob: 37f487234b65e9bb99227e68c90778e204cab481 (
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
|
/*
* Public Key Work Factor Functions
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_WORKFACTOR_H__
#define BOTAN_WORKFACTOR_H__
#include <botan/types.h>
namespace Botan {
/**
* Estimate work factor for discrete logarithm
* @param prime_group_size size of the group in bits
* @return estimated security level for this group
*/
size_t dl_work_factor(size_t prime_group_size);
/**
* Estimate work factor for EC discrete logarithm
* @param prime_group_size size of the group in bits
* @return estimated security level for this group
*/
size_t ecp_work_factor(size_t prime_group_size);
/**
* Estimate work factor for McEliece
* @return estimated security level for this group
*/
size_t mceliece_work_factor(size_t code_size, size_t t);
}
#endif
|