From d0707b161d10cf79242d40b24853988c89c7604a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 29 Nov 2013 22:15:58 +0100 Subject: crypto: separate cipher/MAC availability check from information request --- src/crypto.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/crypto.h') diff --git a/src/crypto.h b/src/crypto.h index 968483e..565de2c 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -67,11 +67,15 @@ struct fastd_mac { void fastd_cipher_init(fastd_context_t *ctx); void fastd_cipher_free(fastd_context_t *ctx); + +bool fastd_cipher_is_available(const char *name); const fastd_cipher_info_t* fastd_cipher_info_get_by_name(const char *name); const fastd_cipher_t* fastd_cipher_get_by_name(fastd_context_t *ctx, const char *name, const fastd_cipher_info_t **info, const fastd_cipher_context_t **cctx); void fastd_mac_init(fastd_context_t *ctx); void fastd_mac_free(fastd_context_t *ctx); + +bool fastd_mac_is_available(const char *name); const fastd_mac_info_t* fastd_mac_info_get_by_name(const char *name); const fastd_mac_t* fastd_mac_get_by_name(fastd_context_t *ctx, const char *name, const fastd_mac_info_t **info, const fastd_mac_context_t **cctx); -- cgit v1.2.3