Source and Sink in Crypto++
This post builds upon A Brief Introduction to
Crypto++. I suggest to have a quick look at it before
diving into Source
and Sink
classes.
Sources and sinks are quite similar, so we will review them together. Just a refresher: a source provides an input for a Crypto++ pipeline, while a sink terminates it by saving the result to an output. The input and output of a pipeline are usually data containers (e.g., arrays, vectors, strings) or files.