Definition at line 67 of file PrivateKey.cpp.
◆ sign_implementation()
OpenDDS::Security::SSL::sign_implementation::sign_implementation |
( |
EVP_PKEY * |
pkey | ) |
|
|
inlineexplicit |
◆ ~sign_implementation()
OpenDDS::Security::SSL::sign_implementation::~sign_implementation |
( |
| ) |
|
|
inline |
◆ operator()()
int OpenDDS::Security::SSL::sign_implementation::operator() |
( |
const std::vector< const DDS::OctetSeq *> & |
src, |
|
|
DDS::OctetSeq & |
dst |
|
) |
| |
|
inline |
Definition at line 82 of file PrivateKey.cpp.
References EVP_MD_CTX_new, and OPENDDS_SSL_LOG_ERR.
87 std::vector<const DDS::OctetSeq*>::const_iterator i, n;
107 if (pk_id == EVP_PKEY_RSA) {
109 EVP_PKEY_CTX_set_rsa_padding(
pkey_ctx, RSA_PKCS1_PSS_PADDING)) {
114 if (1 != EVP_PKEY_CTX_set_rsa_mgf1_md(
pkey_ctx, EVP_sha256())) {
121 for (i = src.begin(); i != n; ++i) {
122 if ((*i)->length() > 0) {
123 if (1 != EVP_DigestSignUpdate(
md_ctx, (*i)->get_buffer(),
132 if (1 != EVP_DigestSignFinal(
md_ctx, 0, &len)) {
138 dst.length(static_cast<unsigned int>(len));
139 if (1 != EVP_DigestSignFinal(
md_ctx, dst.get_buffer(), &len)) {
146 dst.length(static_cast<unsigned int>(len));
#define OPENDDS_SSL_LOG_ERR(MSG)
◆ md_ctx
EVP_MD_CTX* OpenDDS::Security::SSL::sign_implementation::md_ctx |
|
private |
◆ pkey_ctx
EVP_PKEY_CTX* OpenDDS::Security::SSL::sign_implementation::pkey_ctx |
|
private |
◆ private_key
EVP_PKEY* OpenDDS::Security::SSL::sign_implementation::private_key |
|
private |
The documentation for this class was generated from the following file: