27 #include <openssl/err.h>
28 #include <openssl/rsa.h>
36 #ifdef __DEVELOPMENT_ASSERTIONS__
85 while (find_pcb.next(bundle.
end()))
87 SecurityBlock::encryptBlock<PayloadConfidentialBlock>(bundle, find_pcb,
salt, ephemeral_key).
setCorrelator(correlator);
91 while (find_pib.next(bundle.
end()))
93 SecurityBlock::encryptBlock<PayloadConfidentialBlock>(bundle, find_pib,
salt, ephemeral_key).
setCorrelator(correlator);
100 if (pcbs_size > 0 || pibs_size > 0)
123 aes_stream.
getIV(iv);
147 long_key.
free(rsa_key);
159 std::list<const dtn::data::Block*> erasure_list;
170 bool decrypt_related =
false;
179 erasure_list.push_back(&**it);
180 }
catch (
const std::bad_cast&) { };
196 erasure_list.push_back(&**it);
226 erasure_list.push_back(&**it);
232 decrypt_related =
true;
249 }
catch (
const std::bad_cast&) { };
253 for (std::list<const dtn::data::Block* >::const_iterator it = erasure_list.begin(); it != erasure_list.end(); ++it)
257 }
catch (
const std::exception&) {
258 long_key.
free(rsa_key);
262 long_key.
free(rsa_key);