aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-12-31 18:32:17 +0000
committerlloyd <[email protected]>2013-12-31 18:32:17 +0000
commit95bcc74414a29d60fb8348d78977ec2a813f3363 (patch)
tree63e7d6f7fff8dc5ffab09be0fd2bcba302ace44a /src
parent4e665d0ba321ff91173e0516392c59a70c710157 (diff)
Add set_key taking a vector
Diffstat (limited to 'src')
-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