From aeb66a3d354f15d9678f903f39ae851e31109569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Wed, 4 Aug 2021 08:41:31 +0200 Subject: Workaround for https://github.com/RubyCrypto/x25519/issues/22 --- lib/net/ssh/transport/kex/curve25519_sha256.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/net/ssh/transport') diff --git a/lib/net/ssh/transport/kex/curve25519_sha256.rb b/lib/net/ssh/transport/kex/curve25519_sha256.rb index 9aeba85..57cc6c5 100644 --- a/lib/net/ssh/transport/kex/curve25519_sha256.rb +++ b/lib/net/ssh/transport/kex/curve25519_sha256.rb @@ -1,6 +1,8 @@ gem 'x25519' # raise if the gem x25519 is not installed require 'x25519' + +X25519.provider = X25519::Provider::Ref10 # https://github.com/RubyCrypto/x25519/issues/22 require 'net/ssh/transport/constants' require 'net/ssh/transport/kex/abstract5656' -- cgit v1.2.1