lib/roqs/sig.rb in roqs-0.1.1 vs lib/roqs/sig.rb in roqs-0.1.2
- old
+ new
@@ -65,10 +65,11 @@
pMessage = Fiddle::Pointer.to_ptr(message)
pSignature = Fiddle::Pointer.to_ptr(signature)
rv = SIGWrapper.OQS_SIG_verify(@struct, pMessage, message.length, pSignature, signature.length, pubKey)
+ logger.debug "Verify result : #{rv}"
rv == Roqs::OQS_SUCCESS
end
def sign(message, privKey)
@@ -90,9 +91,14 @@
signLen.free
signature.free
signBin
+ end
+
+ private
+ def logger
+ Roqs.logger(:sig)
end
end
end