diff options
author | Jack Lloyd <[email protected]> | 2016-11-21 19:52:30 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-23 08:31:02 -0500 |
commit | 9b95849528bf9c9d36eb5e407f0d7262f5ef6a99 (patch) | |
tree | 2f3ba7648edff6387a1289f19cee75b2415da9d1 /src | |
parent | c8f173235d9b8576c759edda4e7dfbdccc011cf3 (diff) |
Add final_stdvec
Horrible name, useful function
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/base/buf_comp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/base/buf_comp.h b/src/lib/base/buf_comp.h index d0793b84b..264b16bd0 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; } + std::vector<byte> final_stdvec() + { + std::vector<byte> output(output_length()); + final_result(output.data()); + return output; + } + template<typename Alloc> void final(std::vector<byte, Alloc>& out) { |