acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_openssl.h
1
#pragma once
2
3
4
#ifdef PARALLELIZATION_PTHREAD
5
6
#include "acme/operating_system/ansi/_pthread.h"
7
8
#endif
9
10
11
#if defined(HAVE_OPENSSL)
12
13
// apt install libssl-dev
14
// dnf install openssl-devel
15
#include <openssl/types.h>
16
#include <openssl/rsa.h>
17
#include <openssl/md5.h>
18
#include <openssl/rsa.h>
19
#include <openssl/engine.h>
20
#include <openssl/err.h>
21
#include <openssl/crypto.h>
22
#include <openssl/hmac.h>
23
#include <openssl/pem.h>
24
#include <openssl/bn.h>
25
#include <openssl/evp.h>
26
#include <openssl/whrlpool.h>
27
#include <openssl/ssl.h>
28
29
30
#endif
31
32
33
namespace
crypto
34
{
35
36
37
CLASS_DECL_APEX
void
md5(
void
* ptarget,
const
void
* psource, ::memsize size);
38
CLASS_DECL_APEX
void
sha1(
void
* ptarget,
const
void
* psource, ::memsize size);
39
CLASS_DECL_APEX
void
sha256(
void
* ptarget,
const
void
* psource, ::memsize size);
40
CLASS_DECL_APEX
void
nessie(
void
* ptarget,
const
void
* psource, ::memsize size);
41
42
43
}
// namespace crypto
44
45
46
#include "hasher_algorithm.h"
47
#include "hasher.h"
48
#include "rsa.h"
49
50
//
51
//namespace crypto
52
//{
53
//
54
//
55
// CLASS_DECL_APEX void md5(void* ptarget, const void* psource, ::memsize size);
56
// CLASS_DECL_APEX void sha1(void* ptarget, const void* psource, ::memsize size);
57
// CLASS_DECL_APEX void sha256(void* ptarget, const void* psource, ::memsize size);
58
// CLASS_DECL_APEX void nessie(void* ptarget, const void* psource, ::memsize size);
59
//
60
//
61
//} // namespace crypto
62
//
63
64
//#include "hasher_algorithm.h"
65
//#include "hasher.h"
66
//#include "rsa.h"
67
//
68
//
69
//namespace openssl
70
//{
71
//
72
// template < typename CTX, enum_hash m_ehash >
73
// ::pointer<::crypto::hasher>hasher_algorithm<CTX, m_ehash>::create_hasher()
74
// {
75
//
76
// return allocateø ::openssl::hasher< CTX, m_ehash> (this);
77
//
78
// }
79
//
80
//
81
//} // namespace openssl
82
83
84
crypto
openssl1
_openssl.h
Generated by
1.17.0