aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/algo_base/sym_algo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/algo_base/sym_algo.h b/src/algo_base/sym_algo.h
index 705c7d00a..c937d08ff 100644
--- a/src/algo_base/sym_algo.h
+++ b/src/algo_base/sym_algo.h
@@ -71,6 +71,12 @@ class BOTAN_DLL SymmetricAlgorithm : public Algorithm
throw Invalid_Key_Length(name(), length);
key_schedule(key, length);
}
+
+ template<typename Alloc>
+ void set_key(const std::vector<byte, Alloc>& v)
+ {
+ set_key(&v[0], v.size());
+ }
private:
/**
* Run the key schedule