hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 93e46ffcb8d471bf1eaa7b53b163f8220932e5b7
parent 1516fa9585790e215b3465eb23df79b1d239de5e
Author: Armin Preiml <apreiml@strohwolke.at>
Date:   Sat, 27 Aug 2022 19:34:21 +0200

crypto::hmac: make key const

Signed-off-by: Armin Preiml <apreiml@strohwolke.at>

Diffstat:
Mcrypto/hmac/hmac.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/hmac/hmac.ha b/crypto/hmac/hmac.ha @@ -26,7 +26,7 @@ const hmac_vtable: io::vtable = io::vtable { // finished using the MAC function, which, in addition to freeing state // associated with the MAC, will securely erase state which contains secret // information. -export fn hmac(h: *hash::hash, key: []u8, buf: []u8) state = { +export fn hmac(h: *hash::hash, key: const []u8, buf: []u8) state = { const bsz = hash::bsz(h); assert(len(buf) >= bsz, "buf must be at least the size of one "