From d1855a0e931706d84a81c0213994067bd9f2fc7f Mon Sep 17 00:00:00 2001 From: kristopher tate Date: Thu, 6 Sep 2018 12:24:12 +0900 Subject: [PATCH] std/crypto/x25519.zig: fix signature for `createPublicKey`; --- std/crypto/x25519.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/crypto/x25519.zig b/std/crypto/x25519.zig index 16ec09f66e..9a9df30962 100644 --- a/std/crypto/x25519.zig +++ b/std/crypto/x25519.zig @@ -114,7 +114,7 @@ pub const X25519 = struct { return !zerocmp(u8, out); } - pub fn createPublicKey(public_key: []const u8, private_key: []const u8) bool { + pub fn createPublicKey(public_key: [] u8, private_key: []const u8) bool { var base_point = []u8{9} ++ []u8{0} ** 31; return create(public_key, private_key, base_point); }