hare

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

commit 2af4c053eae8d7f371dfac52335af2aaad674c65
parent 7c4fe19e16e96146707c0a71217172a95bc854b2
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 20 Jun 2022 22:55:19 +0300

crypto::keystore: fix incorrect return type

Signed-off-by: Alexey Yerin <yyp@disroot.org>

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

diff --git a/crypto/keystore/impl.ha b/crypto/keystore/impl.ha @@ -18,7 +18,7 @@ export fn destroy(key: key) void = { // Reads secret data from a secure key. When the caller is done using the secret // buffer, they should use [[bytes::zero]] to securely wipe the buffer memory. -export fn read(key: key, buf: []u8) void = { +export fn read(key: key, buf: []u8) size = { let amt = len(buf); if (len(key) < len(buf)) { amt = len(key);