mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
std/crypto/x25519.zig: fix signature for createPublicKey;
This commit is contained in:
parent
6632d85e5f
commit
d1855a0e93
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user