aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/buf_comp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/base/buf_comp.h')
-rw-r--r--src/lib/base/buf_comp.h7
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)
{