From 63554a0ba5bba0b91ea00b58904545b70d8ed833 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:03:57 -0400 Subject: [PATCH] Reed-Solomon bug fix --- src/unstable/Picocrypt.go | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/unstable/Picocrypt.go b/src/unstable/Picocrypt.go index 7ae278a..902a3a5 100644 --- a/src/unstable/Picocrypt.go +++ b/src/unstable/Picocrypt.go @@ -31,12 +31,12 @@ import ( "strconv" "runtime" "net/http" - "runtime/debug" "image/png" "image/color" "archive/zip" "encoding/hex" "path/filepath" + "runtime/debug" // Cryptography "crypto/rand" @@ -1253,9 +1253,9 @@ func work(){ if mode=="encrypt"{ if paranoid{ serpentCTR.XORKeyStream(_data,data) - fmt.Println(_data[:10]) + //fmt.Println(_data[:10]) copy(data,_data) - fmt.Println(data[:10]) + //fmt.Println(data[:10]) } chacha20.XORKeyStream(_data,data) if reedsolo{ @@ -1269,7 +1269,7 @@ func work(){ } }else{ chunks := math.Floor(float64(len(data))/128) - fmt.Println("chunks",chunks) + //fmt.Println("chunks",chunks) for i:=0;float64(i)