After a bit of help with some puzzling pointers from some wonderful people, I have the initial pieces of the Botan.Hash
module functioning! I learned quite a bit about ForeignPtr today, and put it to good use:
We have:
- A hash object can be initialized by algorithm name.
- It can be queried for its name (still in CString format), and its digest length in bytes.
- It is destroyed automatically when garbage collected.
This places us rather close to having our first-hash milestone!