SOIL C++
C++ Unified Device Interface
Signer.h
Go to the documentation of this file.
1
#pragma once
2
#include "
constants.h
"
3
#include <vector>
4
#include <string>
5
6
typedef
struct
evp_pkey_st
EVP_PKEY
;
7
typedef
struct
evp_md_ctx_st
EVP_MD_CTX
;
8
9
10
namespace
SIGN
11
{
18
class
DLL
Signer
19
{
20
private
:
26
std::string _name;
27
34
EVP_PKEY
* private_key;
35
41
EVP_MD_CTX
* context;
42
public
:
49
Signer
(std::string filename);
50
56
~Signer
();
57
67
std::vector<unsigned char> sign(std::vector<unsigned char> digest);
68
77
std::string openssl_version(
void
)
const
;
78
86
inline
std::string
name
()
const
{
return
_name; }
87
};
88
}
89
EVP_MD_CTX
struct evp_md_ctx_st EVP_MD_CTX
Definition:
Signer.h:7
EVP_PKEY
struct evp_pkey_st EVP_PKEY
Definition:
Signer.h:6
constants.h
SIGN::Signer
Signer.
Definition:
Signer.h:19
SIGN::Signer::name
std::string name() const
Filename.
Definition:
Signer.h:86
SIGN
Definition:
Hasher.h:7
src
SIGN
Signer.h
Generated by
1.9.3