use the correct case-sentive name of the SHA2 module

This commit is contained in:
Zahary Karadjov 2018-03-15 16:21:56 +02:00
parent 36fe3e56b4
commit a1c604c073
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import ../datatypes, ../private/[array_utils, lowlevel_types],
./jacobian, ./mod_arithmetic, ./hmac, ./constants
import ttmath, keccak_tiny, strutils,
nimsha2 # TODO: For SHA-256, use OpenSSL instead? (see https://rosettacode.org/wiki/SHA-256#Nim)
nimSHA2 # TODO: For SHA-256, use OpenSSL instead? (see https://rosettacode.org/wiki/SHA-256#Nim)
proc decode_public_key(pubKey: ByteArrayBE[64]

View File

@ -14,7 +14,7 @@
# TODO: this is a duplicate of https://github.com/status-im/nim-eth-keys/blob/master/src/backend_native/hmac.nim
# It should be replaced by a common crypto library in the future like https://github.com/cheatfate/nimcrypto
import nimsha2 # TODO: For SHA-256, use OpenSSL instead? (see https://rosettacode.org/wiki/SHA-256#Nim)
import nimSHA2 # TODO: For SHA-256, use OpenSSL instead? (see https://rosettacode.org/wiki/SHA-256#Nim)
proc hmac_sha256*[N: static[int]](key: array[N, byte|char],
data: string|seq[byte|char]): SHA256Digest =