lib/x25519.rb in x25519-1.0.0 vs lib/x25519.rb in x25519-1.0.1
- old
+ new
@@ -61,9 +61,11 @@
X25519::TestVectors::FIXED_BASE.each do |v|
public_key = provider.scalarmult_base([v.scalar].pack("H*"))
raise "self test failed!" unless public_key.unpack("H*").first == v.output_coord
end
+
+ true
end
end
# Automatically run self-test when library loads
X25519.self_test