acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_.h
1
#pragma once
2
3
4
enum
enum_hash
5
{
6
7
e_hash_none,
8
e_hash_md5,
9
e_hash_sha1,
10
e_hash_sha256,
11
e_hash_nessie,
12
13
};
14
15
16
namespace
crypto
17
{
18
19
20
class
hasher
;
21
class
hasher_algorithm
;
22
class
crypto
;
23
24
class
rsa
;
25
26
using
crypto_pointer = ::pointer<crypto>;
27
28
using
rsaptra = pointer_array < rsa >;
29
30
31
32
33
}
// namespace crypto
34
35
36
inline
constexpr ::i32 hash_digest_size(enum_hash ehash)
37
{
38
39
switch
(ehash)
40
{
41
case
e_hash_md5:
42
return
16;
43
case
e_hash_sha1:
44
return
20;
45
case
e_hash_sha256:
46
return
32;
47
default
:
48
return
-1;
49
}
50
51
}
52
53
//
54
//#include "hasher_algorithm.h"
55
//#include "hasher.h"
56
//#include "rsa.h"
57
//
58
//
59
crypto::crypto
Definition
crypto.h:19
crypto::hasher_algorithm
Definition
hasher_algorithm.h:13
crypto::hasher
Definition
hasher.h:13
crypto::rsa
Definition
rsa.h:13
crypto
_.h
Generated by
1.17.0