summaryrefslogtreecommitdiffstats
path: root/src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-27 20:53:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-27 20:53:00 +0100
commit7a08e6823ef636917a95dbc4928048723efe864d (patch)
tree3faa824113cb3ddbc9c2b734107db1d5ec3c5c07 /src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c
parentba5abca808dc85e2de2e11351832329f1566bc7e (diff)
downloadfastd-7a08e6823ef636917a95dbc4928048723efe864d.tar
fastd-7a08e6823ef636917a95dbc4928048723efe864d.zip
Allow checking if a crypto algorithm is available at runtime
Diffstat (limited to 'src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c')
-rw-r--r--src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c b/src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c
index 36985a6..9619afe 100644
--- a/src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c
+++ b/src/crypto/cipher/salsa2012/nacl/salsa2012_nacl.c
@@ -60,6 +60,8 @@ static void salsa2012_free(fastd_context_t *ctx UNUSED, fastd_cipher_context_t *
}
const fastd_cipher_t fastd_cipher_salsa2012_nacl = {
+ .available = fastd_true,
+
.initialize = salsa2012_initialize,
.init_state = salsa2012_init_state,