use the correct case-sentive name of the SHA2 module
This commit is contained in:
parent
36fe3e56b4
commit
a1c604c073
|
@ -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]
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue