28 #include <openssl/err.h>
29 #include <openssl/rsa.h>
33 #ifdef __DEVELOPMENT_ASSERTIONS__
85 pib.setResultSize(key);
88 std::string
sign = calcHash(bundle, key, pib);
94 EVP_PKEY *pkey = key.
getEVP();
101 int return_code = rs2s.getSign().first;
102 std::string sign_string = rs2s.getSign().second;
110 ERR_print_errors_fp(stderr);
111 return std::string(
"");
120 if (!sb.isSecuritySource(bundle, key.reference))
132 EVP_PKEY *pkey = key.getEVP();
159 while (it.next(bundle.
end()))
161 verify(bundle, key, dynamic_cast<const PayloadIntegrityBlock&>(**it));
165 void PayloadIntegrityBlock::setResultSize(
const SecurityKey &key)
167 EVP_PKEY *pkey = key.
getEVP();
170 if ((result_size = EVP_PKEY_size(pkey)) > 0)
191 while (it.next(bundle.
end()))