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/cipher/aes128_ctr | |
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/cipher/aes128_ctr')
-rw-r--r-- | src/crypto/cipher/aes128_ctr/nacl/cipher_aes128_ctr_nacl.c | 2 | ||||
-rw-r--r-- | src/crypto/cipher/aes128_ctr/openssl/aes128_ctr_openssl.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/cipher/aes128_ctr/nacl/cipher_aes128_ctr_nacl.c b/src/crypto/cipher/aes128_ctr/nacl/cipher_aes128_ctr_nacl.c index e5f6379..783a9d1 100644 --- a/src/crypto/cipher/aes128_ctr/nacl/cipher_aes128_ctr_nacl.c +++ b/src/crypto/cipher/aes128_ctr/nacl/cipher_aes128_ctr_nacl.c @@ -67,6 +67,8 @@ static void aes128_ctr_free(fastd_context_t *ctx UNUSED, fastd_cipher_context_t } const fastd_cipher_t fastd_cipher_aes128_ctr_nacl = { + .available = fastd_true, + .initialize = aes128_ctr_initialize, .init_state = aes128_ctr_init_state, diff --git a/src/crypto/cipher/aes128_ctr/openssl/aes128_ctr_openssl.c b/src/crypto/cipher/aes128_ctr/openssl/aes128_ctr_openssl.c index 3ab12d5..37ed95c 100644 --- a/src/crypto/cipher/aes128_ctr/openssl/aes128_ctr_openssl.c +++ b/src/crypto/cipher/aes128_ctr/openssl/aes128_ctr_openssl.c @@ -75,6 +75,8 @@ static void aes128_ctr_free(fastd_context_t *ctx UNUSED, fastd_cipher_context_t } const fastd_cipher_t fastd_cipher_aes128_ctr_openssl = { + .available = fastd_true, + .initialize = aes128_ctr_initialize, .init_state = aes128_ctr_init_state, |