Update SoftHSM v2.0 to the latest version
[aaf/sshsm.git] / SoftHSMv2 / src / lib / crypto / OSSLUtil.h
index f353cc6..7b86c50 100644 (file)
@@ -39,6 +39,9 @@
 #ifdef WITH_ECC
 #include <openssl/ec.h>
 #endif
+#ifdef WITH_EDDSA
+#include <openssl/objects.h>
+#endif
 
 namespace OSSL
 {
@@ -61,6 +64,14 @@ namespace OSSL
        // Convert a ByteString to an OpenSSL EC POINT in the given EC GROUP
        EC_POINT* byteString2pt(const ByteString& byteString, const EC_GROUP* grp);
 #endif
+
+#ifdef WITH_EDDSA
+       // Convert an OpenSSL NID to a ByteString
+       ByteString oid2ByteString(int nid);
+
+       // Convert a ByteString to an OpenSSL NID
+       int byteString2oid(const ByteString& byteString);
+#endif
 }
 
 #endif // !_SOFTHSM_V2_OSSLUTIL_H