diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-04-18 17:02:41 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-05-03 15:13:57 +0200 |
commit | 24a8d1253fe40b85de9788f35d7926e3166e2bcf (patch) | |
tree | 8a8e08ae3143ac9fd232a61f414f9798d08c938e /src/libipsec/esp_context.h | |
parent | 61fb3267b2456ecc1900ec945a00a73662d0a8ac (diff) | |
download | strongswan-24a8d1253fe40b85de9788f35d7926e3166e2bcf.tar.bz2 strongswan-24a8d1253fe40b85de9788f35d7926e3166e2bcf.tar.xz |
libipsec: Wrap traditional algorithms in AEAD wrapper
Diffstat (limited to 'src/libipsec/esp_context.h')
-rw-r--r-- | src/libipsec/esp_context.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/libipsec/esp_context.h b/src/libipsec/esp_context.h index db247dced..b33daf589 100644 --- a/src/libipsec/esp_context.h +++ b/src/libipsec/esp_context.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Tobias Brunner + * Copyright (C) 2012-2013 Tobias Brunner * Copyright (C) 2012 Giuliano Grassi * Copyright (C) 2012 Ralf Sager * Hochschule fuer Technik Rapperswil @@ -24,8 +24,7 @@ #define ESP_CONTEXT_H_ #include <library.h> -#include <crypto/crypters/crypter.h> -#include <crypto/signers/signer.h> +#include <crypto/aead.h> typedef struct esp_context_t esp_context_t; @@ -35,18 +34,11 @@ typedef struct esp_context_t esp_context_t; struct esp_context_t { /** - * Get the crypter. + * Get AEAD wrapper or method to encrypt/decrypt/authenticate ESP packets. * - * @return crypter + * @return AEAD wrapper of method */ - crypter_t *(*get_crypter)(esp_context_t *this); - - /** - * Get the signer. - * - * @return signer - */ - signer_t *(*get_signer)(esp_context_t *this); + aead_t *(*get_aead)(esp_context_t *this); /** * Get the current outbound ESP sequence number or the highest authenticated |