From acf9645e328bdcab481cfda1c158e07ecd46bd7b Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Tue, 17 Jan 2023 11:49:12 +0100 Subject: [PATCH] Fixed hmacSize definition (#44) --- bearssl/abi/bearssl_hmac.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bearssl/abi/bearssl_hmac.nim b/bearssl/abi/bearssl_hmac.nim index d820836..a6c1160 100644 --- a/bearssl/abi/bearssl_hmac.nim +++ b/bearssl/abi/bearssl_hmac.nim @@ -37,7 +37,7 @@ type proc hmacInit*(ctx: var HmacContext; kc: var HmacKeyContext; outLen: uint) {.importcFunc, importc: "br_hmac_init", header: "bearssl_hmac.h".} -proc hmacSize*(ctx: var HmacContext): uint {.inline, importcFunc, importc: "br_hmac_size".} = +proc hmacSize*(ctx: var HmacContext): uint {.inline.} = return ctx.outLen