aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_kdf.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-12-09 20:16:59 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-03-23 18:34:42 +0900
commit36cf2f0ff6da245b7f1d705bc516da5ef775eeeb (patch)
treeb4a30950cb12e50b82ea934eea5cb161c78f8254 /ext/openssl/ossl_kdf.h
parent7b0ae4541c66ce228ba4abd75c8f35be177dc8f8 (diff)
downloadruby-openssl-36cf2f0ff6da245b7f1d705bc516da5ef775eeeb.tar.gz
kdf: introduce OpenSSL::KDF module
Introduce a new OpenSSL::KDF module as a namespace for to-be-added KDFs. This makes it easier to add new KDFs in future. We already have a stand-alone KDF, OpenSSL::PKCS5.pbkdf2_hmac. This is migrated to the new namespace. The backwards compatibility is retained by the method defined in the newly added lib/openssl/pkcs5.rb.
Diffstat (limited to 'ext/openssl/ossl_kdf.h')
-rw-r--r--ext/openssl/ossl_kdf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/openssl/ossl_kdf.h b/ext/openssl/ossl_kdf.h
new file mode 100644
index 00000000..b6503f8d
--- /dev/null
+++ b/ext/openssl/ossl_kdf.h
@@ -0,0 +1,6 @@
+#if !defined(OSSL_KDF_H)
+#define OSSL_KDF_H
+
+void Init_ossl_kdf(void);
+
+#endif