Archived
1
0

add tests and try making no libsodium version work properly

This commit is contained in:
Jeff Becker
2017-08-26 10:41:28 -04:00
parent 2983eb6fbd
commit 59ea3da355
6 changed files with 102 additions and 33 deletions

View File

@@ -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 naclCryptoVerifyDetached(hash, sig_bytes, pk_bytes) {
if naclCryptoVerifyFucky(hash, sig_bytes, pk_bytes) {
log.Println("signature is valid :^)")
} else {
err = errors.New("invalid signature")