From 892a7ea58be72a2afd52b551585154b49636a08a Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 25 Aug 2017 09:47:32 -0400 Subject: [PATCH] unbreak make it compile --- .../backends/srndv2/src/srnd/crypto_nacl.go | 15 ------------- .../backends/srndv2/src/srnd/nacl_crypto.go | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 15 deletions(-) delete mode 100644 contrib/backends/srndv2/src/srnd/crypto_nacl.go create mode 100644 contrib/backends/srndv2/src/srnd/nacl_crypto.go diff --git a/contrib/backends/srndv2/src/srnd/crypto_nacl.go b/contrib/backends/srndv2/src/srnd/crypto_nacl.go deleted file mode 100644 index a368233..0000000 --- a/contrib/backends/srndv2/src/srnd/crypto_nacl.go +++ /dev/null @@ -1,15 +0,0 @@ -package srnd - -import "github.com/majestrate/nacl" - -func naclCryptoVerifyFucky(hash, sig, pk []byte) bool { - return nacl.CryptoVerifyFucky(hash, sig, pk) -} - -func naclCryptoSignFucky(hash, sk []byte) (sig []byte) { - return nacl.CryptoSignFucky(hash, sk) -} - -func naclCryptoVerifyDetached(hash, sig, pk []byte) bool { - return nacl.CryptoVerifyDetached(hash, sig, pk) -} diff --git a/contrib/backends/srndv2/src/srnd/nacl_crypto.go b/contrib/backends/srndv2/src/srnd/nacl_crypto.go new file mode 100644 index 0000000..b92558c --- /dev/null +++ b/contrib/backends/srndv2/src/srnd/nacl_crypto.go @@ -0,0 +1,21 @@ +package srnd + +import ( + "github.com/majestrate/nacl" +) + +func naclCryptoVerifyFucky(h, sig, pk []byte) bool { + return nacl.CryptoVerifyFucky(h, sig, pk) +} + +func naclCryptoSignFucky(hash, sk []byte) []byte { + return nacl.CryptoSignFucky(hash, sk) +} + +func naclCryptoVerifyDetached(hash, sig, pk []byte) bool { + return nacl.CryptoVerifyDetached(hash, sig, pk) +} + +func naclCryptoSignDetached(hash, sk []byte) []byte { + return nacl.CryptoSignDetached(hash, sk) +}