mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-01-02 14:13:10 +00:00
rename parameters
This commit is contained in:
parent
bead4b62c2
commit
f301410418
@ -7,13 +7,13 @@ import errors
|
||||
import types
|
||||
|
||||
|
||||
func hkdfExtract*(salt: openArray[byte], ikm: openArray[byte]) : GenericArray =
|
||||
func hkdfExtract*(key: openArray[byte], seed: openArray[byte]) : GenericArray =
|
||||
|
||||
assert GenericArray.len == sha256.digestSize()
|
||||
|
||||
var ctx{.noInit.}: HKDF[sha256]
|
||||
var prk{.noInit.}: array[sha256.digestSize(), byte]
|
||||
ctx.hkdfExtract(prk, salt, ikm)
|
||||
ctx.hkdfExtract(prk, key, seed)
|
||||
|
||||
return prk
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user