Archived
1
0

unbreak maybe?

This commit is contained in:
Jeff Becker
2017-08-25 09:37:05 -04:00
parent 86b3d3ce62
commit 64c52e327a
3 changed files with 9 additions and 9 deletions

View File

@@ -464,7 +464,7 @@ func verifyMessageSHA512(pk, sig string, body *io.LimitedReader, innerHandler fu
hash := h.Sum(nil)
log.Printf("hash=%s", hexify(hash))
log.Printf("sig=%s", hexify(sig_bytes))
if nacl_cryptoVerifyFucky(hash, sig_bytes, pk_bytes) {
if naclCryptoVerifyFucky(hash, sig_bytes, pk_bytes) {
log.Println("signature is valid :^)")
} else {
err = errors.New("invalid signature")
@@ -502,7 +502,7 @@ func verifyMessageBLAKE2B(pk, sig string, body *io.LimitedReader, innerHandler f
hash := h.Sum(nil)
log.Printf("hash=%s", hexify(hash))
log.Printf("sig=%s", hexify(sig_bytes))
if nacl_cryptoVerifyDetached(hash, sig_bytes, pk_bytes) {
if naclCryptoVerifyDetached(hash, sig_bytes, pk_bytes) {
log.Println("signature is valid :^)")
} else {
err = errors.New("invalid signature")