aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/iv/iv_gen.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-03-31 14:58:17 +0200
committerMartin Willi <martin@revosec.ch>2015-04-13 15:06:15 +0200
commita4549e55250e35033cb5984d834f174eec795e9e (patch)
tree2605fb0e7126f6c6fe13f1a2c9b2ccc992d1f8ce /src/libstrongswan/crypto/iv/iv_gen.h
parentc2906c8f21af7555e0f786b6474cf4c7dc0c7651 (diff)
downloadstrongswan-a4549e55250e35033cb5984d834f174eec795e9e.tar.bz2
strongswan-a4549e55250e35033cb5984d834f174eec795e9e.tar.xz
iv-gen: Add a generic constructor to create an IV gen from an algorithm
Diffstat (limited to 'src/libstrongswan/crypto/iv/iv_gen.h')
-rw-r--r--src/libstrongswan/crypto/iv/iv_gen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/iv/iv_gen.h b/src/libstrongswan/crypto/iv/iv_gen.h
index f6bc6471f..81b0701ce 100644
--- a/src/libstrongswan/crypto/iv/iv_gen.h
+++ b/src/libstrongswan/crypto/iv/iv_gen.h
@@ -58,4 +58,12 @@ struct iv_gen_t {
void (*destroy)(iv_gen_t *this);
};
+/**
+ * Select an IV generator for a given encryption algorithm.
+ *
+ * @param alg encryption algorithm
+ * @return IV generator
+ */
+iv_gen_t* iv_gen_create_for_alg(encryption_algorithm_t alg);
+
#endif /** IV_GEN_H_ @}*/