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 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<typename Alloc>
+ void final(std::vector<byte, Alloc>& out)
+ {
+ out.resize(output_length());
+ final_result(&out[0]);
+ }
+
/**
* Update and finalize computation. Does the same as calling update()
* and final() consecutively.