inmcm / xoodoo Goto Github PK
View Code? Open in Web Editor NEWGolang Implementation of Xoodoo Permutation and Xoofff/Xoodyak Crypto Suites
License: MIT License
Golang Implementation of Xoodoo Permutation and Xoofff/Xoodyak Crypto Suites
License: MIT License
Greetings!
I'm having trouble encrypting large files, I cannot encrypt files of more than 100MB with xoodyak on 32-bit machines. Larger files result in memory error:
runtime: out of memory: cannot allocate 272629760-byte block (1618903040 in use)
fatal error: out of memory
goroutine 1 [running]:
runtime.throw({0x83d8d6, 0xd})
c:/go/src/runtime/panic.go:1047 +0x4d fp=0xa8ace78 sp=0xa8ace64 pc=0x4366cd
runtime.(*mcache).allocLarge(0xd302d8, 0x10002000, 0x1)
c:/go/src/runtime/mcache.go:236 +0x1be fp=0xa8acea0 sp=0xa8ace78 pc=0x413c9e
runtime.mallocgc(0x10002000, 0x0, 0x0)
c:/go/src/runtime/malloc.go:1053 +0x3eb fp=0xa8aced8 sp=0xa8acea0 pc=0x40b88b
runtime.growslice(0x0, 0x10000020, 0x0, 0x10000020, 0x7f1800)
c:/go/src/runtime/slice.go:266 +0x3ec fp=0xa8acf04 sp=0xa8aced8 pc=0x44b1ac
fmt.(*buffer).write(...)
c:/go/src/fmt/print.go:104
fmt.(*fmt).pad(0xa8a4380, {0x5b400000, 0x10000020, 0x10000020})
c:/go/src/fmt/format.go:92 +0x211 fp=0xa8acf44 sp=0xa8acf04 pc=0x4c9b21
fmt.(*fmt).fmtBs(0xa8a4380, {0x5b400000, 0x10000020, 0x10000020})
c:/go/src/fmt/format.go:365 +0x5d fp=0xa8acf64 sp=0xa8acf44 pc=0x4caa8d
fmt.(*pp).fmtBytes(0xa8a4360, {0x5b400000, 0x10000020, 0x10000020}, 0x73, {0x83ac78, 0x6})
c:/go/src/fmt/print.go:537 +0x414 fp=0xa8acfc8 sp=0xa8acf64 pc=0x4cda34
fmt.(*pp).printArg(0xa8a4360, {0x7e7a00, 0xa8921b0}, 0x73)
c:/go/src/fmt/print.go:743 +0x3a8 fp=0xa8ad010 sp=0xa8acfc8 pc=0x4cf078
fmt.(*pp).doPrintf(0xa8a4360, {0x83a255, 0x2}, {0xa8afd6c, 0x1, 0x1})
c:/go/src/fmt/print.go:1077 +0x2d0 fp=0xa8ad098 sp=0xa8ad010 pc=0x4d1e80
fmt.Fprintf({0x91ecdc, 0xa88a010}, {0x83a255, 0x2}, {0xa8afd6c, 0x1, 0x1})
c:/go/src/fmt/print.go:224 +0x52 fp=0xa8ad0c8 sp=0xa8ad098 pc=0x4cbea2
fmt.Printf({0x83a255, 0x2}, {0xa8afd6c, 0x1, 0x1})
c:/go/src/fmt/print.go:233 +0x55 fp=0xa8ad0f4 sp=0xa8ad0c8 pc=0x4cbf75
main.main()
H:/PGMM/edgetk/main.go:814 +0x386c fp=0xa8b1fc4 sp=0xa8ad0f4 pc=0x77ca4c
runtime.main()
c:/go/src/runtime/proc.go:250 +0x22e fp=0xa8b1ff0 sp=0xa8b1fc4 pc=0x4391ce
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa8b1ff4 sp=0xa8b1ff0 pc=0x463c71
goroutine 2 [force gc (idle)]:
runtime.gopark(0x85fbbc, 0xb5b4f0, 0x11, 0x14, 0x1)
c:/go/src/runtime/proc.go:381 +0xff fp=0xa835fdc sp=0xa835fc8 pc=0x4395ff
runtime.goparkunlock(...)
c:/go/src/runtime/proc.go:387
runtime.forcegchelper()
c:/go/src/runtime/proc.go:305 +0xcf fp=0xa835ff0 sp=0xa835fdc pc=0x43942f
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa835ff4 sp=0xa835ff0 pc=0x463c71
created by runtime.init.5
c:/go/src/runtime/proc.go:293 +0x23
goroutine 3 [GC sweep wait]:
runtime.gopark(0x85fbbc, 0xb5b830, 0xc, 0x14, 0x1)
c:/go/src/runtime/proc.go:381 +0xff fp=0xa836fcc sp=0xa836fb8 pc=0x4395ff
runtime.goparkunlock(...)
c:/go/src/runtime/proc.go:387
runtime.bgsweep(0xa81c100)
c:/go/src/runtime/mgcsweep.go:319 +0xf2 fp=0xa836fe8 sp=0xa836fcc pc=0x423dd2
runtime.gcenable.func1()
c:/go/src/runtime/mgc.go:178 +0x27 fp=0xa836ff0 sp=0xa836fe8 pc=0x4162b7
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa836ff4 sp=0xa836ff0 pc=0x463c71
created by runtime.gcenable
c:/go/src/runtime/mgc.go:178 +0x7c
goroutine 4 [GC scavenge wait]:
runtime.gopark(0x85fbbc, 0xb5ba40, 0xd, 0x14, 0x2)
c:/go/src/runtime/proc.go:381 +0xff fp=0xa837fb8 sp=0xa837fa4 pc=0x4395ff
runtime.goparkunlock(...)
c:/go/src/runtime/proc.go:387
runtime.(*scavengerState).park(0xb5ba40)
c:/go/src/runtime/mgcscavenge.go:400 +0x5f fp=0xa837fcc sp=0xa837fb8 pc=0x42174f
runtime.bgscavenge(0xa81c100)
c:/go/src/runtime/mgcscavenge.go:633 +0x75 fp=0xa837fe8 sp=0xa837fcc pc=0x421df5
runtime.gcenable.func2()
c:/go/src/runtime/mgc.go:179 +0x27 fp=0xa837ff0 sp=0xa837fe8 pc=0x416277
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa837ff4 sp=0xa837ff0 pc=0x463c71
created by runtime.gcenable
c:/go/src/runtime/mgc.go:179 +0xc1
goroutine 18 [finalizer wait]:
runtime.gopark(0x85fafc, 0xb81400, 0x10, 0x14, 0x1)
c:/go/src/runtime/proc.go:381 +0xff fp=0xa834f94 sp=0xa834f80 pc=0x4395ff
runtime.runfinq()
c:/go/src/runtime/mfinal.go:193 +0xf4 fp=0xa834ff0 sp=0xa834f94 pc=0x415444
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa834ff4 sp=0xa834ff0 pc=0x463c71
created by runtime.createfing
c:/go/src/runtime/mfinal.go:163 +0x60
goroutine 19 [GC worker (idle)]:
runtime.gopark(0x85fb08, 0xa8a0e70, 0x1a, 0x14, 0x0)
c:/go/src/runtime/proc.go:381 +0xff fp=0xa830f94 sp=0xa830f80 pc=0x4395ff
runtime.gcBgMarkWorker()
c:/go/src/runtime/mgc.go:1275 +0xee fp=0xa830ff0 sp=0xa830f94 pc=0x4186ce
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa830ff4 sp=0xa830ff0 pc=0x463c71
created by runtime.gcBgMarkStartWorkers
c:/go/src/runtime/mgc.go:1199 +0x25
goroutine 20 [GC worker (idle)]:
runtime.gopark(0x85fb08, 0xa8a0e88, 0x1a, 0x14, 0x0)
c:/go/src/runtime/proc.go:381 +0xff fp=0xa831f94 sp=0xa831f80 pc=0x4395ff
runtime.gcBgMarkWorker()
c:/go/src/runtime/mgc.go:1275 +0xee fp=0xa831ff0 sp=0xa831f94 pc=0x4186ce
runtime.goexit()
c:/go/src/runtime/asm_386.s:1326 +0x1 fp=0xa831ff4 sp=0xa831ff0 pc=0x463c71
created by runtime.gcBgMarkStartWorkers
c:/go/src/runtime/mgc.go:1199 +0x25
How to proceed?
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.