-
Notifications
You must be signed in to change notification settings - Fork 22
/
Coverity_Model.c
81 lines (66 loc) · 1.33 KB
/
Coverity_Model.c
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
void cn_cbor_free(void *cb) {
__coverity_free__(cb);
}
void * cn_cbor_map_create(void * context, void * errp)
{
__coverity_alloc__(10);
}
void * cn_cbor_data_create(const char * data, int len, void * context, void * errp)
{
__coverity_alloc__(10);
__coverity_escape__(data);
}
void * cn_cbor_string_create(const char * data, void * context, void * errp)
{
__coverity_alloc__(10);
__coverity_escape__(data);
}
void * cn_cbor_array_create(void * context, void * errp)
{
__coverity_alloc__(10);
}
void * cn_cbor_decode(const char * pbuf, size_t len, void * context, void * errp)
{
__coverity_alloc__(len);
__coverity_escape__(pbuf);
}
void * EC_GROUP_new_by_curve_name(int curve)
{
__coverity_alloc__(curve);
}
void EC_GROUP_free(void * p)
{
__coverity_free__(p);
}
void * EC_POINT_new(void * group)
{
__coverity_alloc__(10);
}
void EC_POINT_free(void * point)
{
__coverity_free__(point);
}
void * EC_KEY_new(void)
{
__coverity_alloc__(10);
}
void EC_KEY_free(void * key)
{
__coverity_free__(key);
}
void * BN_bin2bn(void * pb, int cb, void * pbn)
{
__coverity_alloc__(cb);
}
void BN_free(void * p)
{
__coverity_free__(p);
}
void *ECDA_do_sign(void * pdigest, int digest, void * key)
{
__coverity_alloc__(digest);
}
void ECDSA_free(void * p)
{
__coverity_free__(p);
}