From 7a08e6823ef636917a95dbc4928048723efe864d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 27 Nov 2013 20:53:00 +0100 Subject: Allow checking if a crypto algorithm is available at runtime --- 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 a11b460..968483e 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -36,6 +36,8 @@ struct fastd_cipher_info { }; struct fastd_cipher { + bool (*available)(void); + fastd_cipher_context_t* (*initialize)(fastd_context_t *ctx); fastd_cipher_state_t* (*init_state)(fastd_context_t *ctx, const fastd_cipher_context_t *cctx, const uint8_t *key); @@ -51,6 +53,8 @@ struct fastd_mac_info { }; struct fastd_mac { + bool (*available)(void); + fastd_mac_context_t* (*initialize)(fastd_context_t *ctx); fastd_mac_state_t* (*init_state)(fastd_context_t *ctx, const fastd_mac_context_t *mctx, const uint8_t *key); -- cgit v1.2.3