From 1211ea8a5531784323e3d87ef7b4f24b7a5547e9 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sun, 29 Sep 2019 21:40:23 +0200 Subject: [PATCH] Corrected C++ warning --- src/monocypher.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/monocypher.c b/src/monocypher.c index 19197dc..46d4118 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -137,10 +137,10 @@ static void chacha20_rounds(u32 out[16], const u32 in[16]) static void chacha20_init_key(crypto_chacha_ctx *ctx, const u8 key[32]) { // constant - ctx->input[0] = load32_le((u8*)"expa"); - ctx->input[1] = load32_le((u8*)"nd 3"); - ctx->input[2] = load32_le((u8*)"2-by"); - ctx->input[3] = load32_le((u8*)"te k"); + ctx->input[0] = load32_le((const u8*)"expa"); + ctx->input[1] = load32_le((const u8*)"nd 3"); + ctx->input[2] = load32_le((const u8*)"2-by"); + ctx->input[3] = load32_le((const u8*)"te k"); // key FOR (i, 0, 8) { ctx->input[i+4] = load32_le(key + i*4); -- 2.47.3