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
6typedef struct evp_pkey_st EVP_PKEY;
7typedef struct evp_md_ctx_st EVP_MD_CTX;
8
9
10namespace 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
struct evp_md_ctx_st EVP_MD_CTX
Definition: Signer.h:7
struct evp_pkey_st EVP_PKEY
Definition: Signer.h:6
Signer.
Definition: Signer.h:19
std::string name() const
Filename.
Definition: Signer.h:86
Definition: Hasher.h:7