From a1c604c07387f93e4d6bb197edf758a086185c7f Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 15 Mar 2018 16:21:56 +0200 Subject: [PATCH] use the correct case-sentive name of the SHA2 module --- src/backend_native/ecdsa.nim | 2 +- src/backend_native/hmac.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend_native/ecdsa.nim b/src/backend_native/ecdsa.nim index 1ac1a56..2d128fd 100644 --- a/src/backend_native/ecdsa.nim +++ b/src/backend_native/ecdsa.nim @@ -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] diff --git a/src/backend_native/hmac.nim b/src/backend_native/hmac.nim index f2bbbbe..06d92a2 100644 --- a/src/backend_native/hmac.nim +++ b/src/backend_native/hmac.nim @@ -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 =