diff options
| -rw-r--r-- | default.nix | 2 | ||||
| -rw-r--r-- | go.mod | 6 | ||||
| -rw-r--r-- | go.sum | 12 | ||||
| -rw-r--r-- | roseh.moe.go | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/default.nix b/default.nix index fd2f57f..5fcf54b 100644 --- a/default.nix +++ b/default.nix @@ -16,5 +16,5 @@ pkgs.buildGoModule rec { # remember to bump this hash when your dependencies change. # vendorHash = pkgs.lib.fakeHash; - vendorHash = "sha256-zt1Q33F6/XuKdfRX8lB/8IukH21WFuuzCMbIDR5TEE4="; + vendorHash = "sha256-NGersrCh0dQfMqf31Pq0dDCcx7ywokjmSaHaJCW6+Zo="; } @@ -4,9 +4,9 @@ go 1.25 require ( github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e - golang.org/x/term v0.38.0 - roseh.moe/pkg/oae2 v0.1.0 + golang.org/x/term v0.39.0 + roseh.moe/pkg/oae2 v0.3.0 roseh.moe/pkg/wordlist v1.0.2 ) -require golang.org/x/sys v0.39.0 // indirect +require golang.org/x/sys v0.40.0 // indirect @@ -1,10 +1,10 @@ github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e h1:MRM5ITcdelLK2j1vwZ3Je0FKVCfqOLp5zO6trqMLYs0= github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e/go.mod h1:XV66xRDqSt+GTGFMVlhk3ULuV0y9ZmzeVGR4mloJI3M= -golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= -golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= -golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q= -golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg= -roseh.moe/pkg/oae2 v0.1.0 h1:mGkGIHErlnykRZZ1dvHd73/gVjPudIEoXxdJ133GKeM= -roseh.moe/pkg/oae2 v0.1.0/go.mod h1:SZ5K2nvKreVdhHVNxujxcZLOnjhVi+qPi2XkB18dR8g= +golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= +golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= +golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= +roseh.moe/pkg/oae2 v0.3.0 h1:VR1Fqg8Qg2axaqZC9lSd87giuOOgvRXvL9zEXjc7nLQ= +roseh.moe/pkg/oae2 v0.3.0/go.mod h1:SZ5K2nvKreVdhHVNxujxcZLOnjhVi+qPi2XkB18dR8g= roseh.moe/pkg/wordlist v1.0.2 h1:riB2RqCU5zXfCQjaPHYTXV/688FV9/Bp6Hnb0IAkP9c= roseh.moe/pkg/wordlist v1.0.2/go.mod h1:2Jd7j6Qy5SElcrITJJNUcbxH9TPKYn0k+BJL3tsJdiY= diff --git a/roseh.moe.go b/roseh.moe.go index a1a6d18..f385899 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -261,7 +261,7 @@ func writeHoleFile(part *multipart.Part) (string, error) { return "", err } defer f.Close() - w := oae2.NewWriter(f, encryptionKey, blockSize) + w := oae2.NewWriter(f, encryptionKey, blockSize, nil) fileName := part.FileName() buf := make([]byte, 8) binary.BigEndian.PutUint64(buf, uint64(len(fileName))) @@ -309,7 +309,7 @@ func readHoleFile(w http.ResponseWriter, req *http.Request, hole string) error { return err } defer f.Close() - r := oae2.NewReader(f, encryptionKey, blockSize) + r := oae2.NewReader(f, encryptionKey, blockSize, nil) buf := make([]byte, 8) if _, err := io.ReadFull(r, buf); err != nil { return err |
