hare

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

commit 1ed8bd9ad4e53e648d7b0032b7a8701344af81e5
parent 66a9ff3b894d133cce9ed9936a2ffd9d6692be01
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 31 Aug 2023 02:12:50 -0400

crypto: remove comma after ... in prototypes

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mcrypto/authenc.ha | 2+-
Mcrypto/chachapoly/chachapoly.ha | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/crypto/authenc.ha b/crypto/authenc.ha @@ -74,7 +74,7 @@ export fn encrypt( key: *sessionkey, nonce: *nonce, plaintext: []u8, - additional: []u8..., + additional: []u8... ) box = { let s = chachapoly::chachapoly(); defer io::close(&s)!; diff --git a/crypto/chachapoly/chachapoly.ha b/crypto/chachapoly/chachapoly.ha @@ -62,7 +62,7 @@ export fn init( h: io::handle, key: const []u8, nonce: const []u8, - ad: const []u8..., + ad: const []u8... ) void = geninit(s, &chacha::chacha20_init, h, key, nonce, ad...); // Initialise the stream as XChacha20-Poly1305. Encrypts to or decrypts form @@ -73,7 +73,7 @@ export fn xinit( h: io::handle, key: const []u8, nonce: const []u8, - ad: const []u8..., + ad: const []u8... ) void = geninit(s, &chacha::xchacha20_init, h, key, nonce, ad...); fn geninit( @@ -82,7 +82,7 @@ fn geninit( h: io::handle, key: const []u8, nonce: const []u8, - ad: const []u8..., + ad: const []u8... ) void = { assert(len(ad) <= types::U32_MAX);