aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/sldns/keyraw.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/sldns/keyraw.h')
-rw-r--r--contrib/unbound/sldns/keyraw.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/unbound/sldns/keyraw.h b/contrib/unbound/sldns/keyraw.h
index 19653b46c7ba..989b02ce052e 100644
--- a/contrib/unbound/sldns/keyraw.h
+++ b/contrib/unbound/sldns/keyraw.h
@@ -102,6 +102,15 @@ RSA *sldns_key_buf2rsa_raw(unsigned char* key, size_t len);
EVP_PKEY* sldns_ed255192pkey_raw(const unsigned char* key, size_t len);
/**
+ * Converts a holding buffer with key material to EVP PKEY in openssl.
+ * Only available if ldns was compiled with ED448.
+ * \param[in] key the uncompressed wireformat of the key.
+ * \param[in] len length of key data
+ * \return the key or NULL on error.
+ */
+EVP_PKEY* sldns_ed4482pkey_raw(const unsigned char* key, size_t len);
+
+/**
* Utility function to calculate hash using generic EVP_MD pointer.
* \param[in] data the data to hash.
* \param[in] len length of data.