lib/x25519.rb in x25519-1.0.9 vs lib/x25519.rb in x25519-1.0.10
- old
+ new
@@ -8,10 +8,14 @@
require "x25519/scalar"
require "x25519/test_vectors"
# Native extension backends
require "x25519_ref10"
-require "x25519_precomputed"
+begin
+ require "x25519_precomputed"
+rescue LoadError
+ require "x25519/precomputed_not_available"
+end
# The X25519 elliptic curve Diffie-Hellman algorithm
module X25519
module_function