File 2262-crypto-Add-eddh-to-crypto-supports-public_keys.patch of Package erlang

From 2f0de4007232bf2112eb4de890b7c389956a28b7 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Tue, 31 Mar 2020 14:03:32 +0200
Subject: [PATCH 2/3] crypto: Add 'eddh' to crypto:supports(public_keys)

---
 lib/crypto/c_src/algorithms.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/crypto/c_src/algorithms.c b/lib/crypto/c_src/algorithms.c
index 09f6d0b3e5..752df2c6ae 100644
--- a/lib/crypto/c_src/algorithms.c
+++ b/lib/crypto/c_src/algorithms.c
@@ -97,6 +97,9 @@ void init_algorithms_types(ErlNifEnv* env)
     // Don't know if Edward curves are fips validated
 #if defined(HAVE_EDDSA)
     algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "eddsa");
+#endif
+#if defined(HAVE_EDDH)
+    algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "eddh");
 #endif
     algo_pubkey[algo_pubkey_cnt++] = enif_make_atom(env, "srp");
 
-- 
2.16.4

openSUSE Build Service is sponsored by