summaryrefslogtreecommitdiffstats
path: root/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/crypto.h b/crypto.h
index 1d19d2a..dd2dda3 100644
--- a/crypto.h
+++ b/crypto.h
@@ -480,16 +480,6 @@ void free_ssl_lib (void);
#endif /* USE_SSL */
/*
- * Inline functions
- */
-
-static inline bool
-key_ctx_bi_defined(const struct key_ctx_bi* key)
-{
- return key->encrypt.cipher || key->encrypt.hmac || key->decrypt.cipher || key->decrypt.hmac;
-}
-
-/*
* md5 functions
*/
@@ -509,5 +499,16 @@ void md5_digest_clear (struct md5_digest *digest);
bool md5_digest_defined (const struct md5_digest *digest);
bool md5_digest_equal (const struct md5_digest *d1, const struct md5_digest *d2);
+/*
+ * Inline functions
+ */
+
+static inline bool
+key_ctx_bi_defined(const struct key_ctx_bi* key)
+{
+ return key->encrypt.cipher || key->encrypt.hmac || key->decrypt.cipher || key->decrypt.hmac;
+}
+
+
#endif /* USE_CRYPTO */
#endif /* CRYPTO_H */