[S] Worked on nim.

This commit is contained in:
eline
2023-11-29 00:22:39 +01:00
parent 8e703198b8
commit e774316a70
10 changed files with 1089 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ proc stretch(passw: string, iv1: array[16, byte]): array[32, byte] =
copyMem(addr passwBytes[0], unsafeAddr passw[0], len(passw))
for i in 1 .. 8192:
var sha: sha256
var sha: sha512_256
sha.init()
sha.update(digest)
sha.update(passwBytes[0..len(passw)-1])