cryptoutils is no longer needed

This commit is contained in:
coffeepots 2018-05-23 18:37:26 +01:00 committed by zah
parent b92869a2cd
commit 750d1c5e79

View File

@ -1,9 +0,0 @@
import nimcrypto
proc k256*(data: string): string =
# do not convert, assume string is data
# REVIEW: Nimcrypto has a one-liner for the code here: sha3_256.digest(data)
var k = sha3_256()
k.init
k.update(cast[ptr uint8](data[0].unsafeaddr), data.len.uint)
result = $finish(k)