-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module main | ||
|
||
import crypto.ed25519 | ||
|
||
struct SSHClientHello { | ||
version u8 | ||
public_key [crypto.ed25519.public_key_size]u8 | ||
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / clang (macos-14)
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tcc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / gcc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / code-formatting
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / clang
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / msvc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / alpine-docker-musl-gcc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tests-sanitize-address-clang
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tests-sanitize-memory-clang
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / gcc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / ubuntu-docker-musl
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tests-sanitize-undefined-clang
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tcc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tests-sanitize-address-gcc
Check failure on line 7 in vlib/v/tests/fns/param_fixed_array_const_test.v GitHub Actions / tests-sanitize-undefined-gcc
|
||
} | ||
|
||
struct SSHServerHello { | ||
version u8 | ||
send_me [crypto.ed25519.public_key_size]u8 | ||
} | ||
|
||
struct SSHClientProof { | ||
result [crypto.ed25519.public_key_size]u8 | ||
} | ||
|
||
fn new_client_hello(public_key [ed25519.public_key_size]u8) { | ||
assert public_key.len == ed25519.public_key_size | ||
assert public_key.len != 0 | ||
} | ||
|
||
fn test_main() { | ||
new_client_hello([ed25519.public_key_size]u8{}) | ||
} |