aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/aead.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-03-31 14:59:12 +0200
committerMartin Willi <martin@revosec.ch>2015-04-13 15:06:15 +0200
commit3c81cb6fc3225423ce82bbd97bd6fd9b70df8cc0 (patch)
tree73734ac0beef72de5a8ca3dff9b69c57a5e27fc1 /src/libstrongswan/crypto/aead.h
parenta4549e55250e35033cb5984d834f174eec795e9e (diff)
downloadstrongswan-3c81cb6fc3225423ce82bbd97bd6fd9b70df8cc0.tar.bz2
strongswan-3c81cb6fc3225423ce82bbd97bd6fd9b70df8cc0.tar.xz
aead: Create AEAD using traditional transforms with an explicit IV generator
Real AEADs directly provide a suitable IV generator, but traditional crypters do not. For some (stream) ciphers, we should use sequential IVs, for which we pass an appropriate generator to the AEAD wrapper.
Diffstat (limited to 'src/libstrongswan/crypto/aead.h')
-rw-r--r--src/libstrongswan/crypto/aead.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/aead.h b/src/libstrongswan/crypto/aead.h
index 43f71b65e..9d1b8df55 100644
--- a/src/libstrongswan/crypto/aead.h
+++ b/src/libstrongswan/crypto/aead.h
@@ -135,8 +135,9 @@ struct aead_t {
*
* @param crypter encryption transform for this aead
* @param signer integrity transform for this aead
+ * @param iv_gen suitable IV generator for encryption algorithm
* @return aead transform
*/
-aead_t *aead_create(crypter_t *crypter, signer_t *signer);
+aead_t *aead_create(crypter_t *crypter, signer_t *signer, iv_gen_t *iv_gen);
#endif /** AEAD_H_ @}*/