diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-27 20:53:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-27 20:53:00 +0100 |
commit | 7a08e6823ef636917a95dbc4928048723efe864d (patch) | |
tree | 3faa824113cb3ddbc9c2b734107db1d5ec3c5c07 /src/crypto.h | |
parent | ba5abca808dc85e2de2e11351832329f1566bc7e (diff) | |
download | fastd-7a08e6823ef636917a95dbc4928048723efe864d.tar fastd-7a08e6823ef636917a95dbc4928048723efe864d.zip |
Allow checking if a crypto algorithm is available at runtime
Diffstat (limited to 'src/crypto.h')
-rw-r--r-- | src/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |