From 3b9a0c1535e40f8f9fc4cfbc734144ee229df65d Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 16 Feb 2015 20:12:38 +0000 Subject: Add new module `ffi` which provides a plain C interface, plus a new ctypes Python wrapper that uses it. The API is intentionally designed to have a very simple ABI (extern "C", all structs are opaque, no memory ownership passing the FFI boundary, limited set of simple types as args) so the ctypes wrapper is quite simple. Currently ffi provides ciphers, hashes, MACs, RNGs, PBKDF, KDF, bcrypt, and most public key operations. Remove the old boost.python wrapper and all the build code for it. --- src/lib/base/buf_comp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/base/buf_comp.h') diff --git a/src/lib/base/buf_comp.h b/src/lib/base/buf_comp.h index 5d11fdb73..564da2262 100644 --- a/src/lib/base/buf_comp.h +++ b/src/lib/base/buf_comp.h @@ -101,6 +101,13 @@ class BOTAN_DLL Buffered_Computation return output; } + template + void final(std::vector& out) + { + out.resize(output_length()); + final_result(&out[0]); + } + /** * Update and finalize computation. Does the same as calling update() * and final() consecutively. -- cgit v1.2.3