nx_ssh_lib.nx
buildroot/runtime/nx_ssh_lib.nx
about
dependencies 8 imports · 32 importers
diagram shows first 10 each side; +0 more imports, +22 more importers in the complete lists below.
imports: nx_syscalls.nxnx_connect.nxnx_x25519_ephemeral.nxnx_ed25519_signature.nxnx_sha256.nxnx_chacha20.nxnx_poly1305.nxnx_base64.nx
imported by: nx_aw_fetch.nxnx_aw_hostctl.nxnx_aw_lsdir.nxnx_aw_nasfix.nxnx_aw_nasrecon.nxnx_aw_push.nxnx_aw_routerfix.nxnx_aw_send.nxnx_aw_sftp.nxnx_aw_sudo.nxnx_cad_nas_probe.nxnx_edge_repoint.nxnx_fleet_doctor.nxnx_host_recover.nxnx_host_recover2.nxnx_hostdeploy.nxnx_inet_fetch_deploy.nxnx_put.nxnx_reader_diag.nxnx_router_ctl.nxnx_ssh_client.nxnx_ssh_cmd.nxnx_ssh_deploy.nxnx_ssh_deploy_page.nxnx_ssh_put.nxnx_ssh_put_lib.nxnx_ssh_putpage.nxnx_ssh_recon.nxnx_ssh_recon_docroot.nxnx_translate_deploy.nxnx_vroom_deploy.nxnx_vroom_html.nx
structs
| 27 | struct SshState |
consts
| 19 | const SSH_MAGIC_4096: i64 = 4096 |
| 20 | const SSH_MAGIC_1024: i64 = 1024 |
| 21 | const SSH_MAGIC_65536: i64 = 65536 |
| 22 | const SSH_MAGIC_1048576: i64 = 1048576 |
| 23 | const SSH_MAGIC_16384: i64 = 16384 |
| 24 | const SSH_MAGIC_8192: i64 = 8192 |
| 39 | const SSH_STATE_BYTES: i64 = 96 |
functions
| 41 | func ssh_P(s: *u8, n: i64) -> i64 { sys_write(1, s, n); return 0 } calls 1: sys_write |
| 42 | func ssh_puts(s: *u8) -> i64 |
| 47 | func ssh_phex(b: *u8, n: i64) -> i64 |
| 57 | func ssh_sockaddr(sa: *u8, ip: i64, port: i64) -> i64 |
| 66 | func ssh_u32be(b: *u8, off: i64) -> i64 |
| 69 | func ssh_read_full(fd: i64, dst: *u8, n: i64) -> i64 |
| 78 | func ssh_read_line(fd: i64, dst: *u8, max: i64) -> i64 |
| 88 | func ssh_put_u32(b: *u8, idx: i64, v: i64) -> i64 |
| 93 | func ssh_put_byte(b: *u8, idx: i64, v: i64) -> i64 { b[idx] = (v & 0xff) as u8; return idx + 1 } |
| 94 | func ssh_put_bytes(b: *u8, idx: i64, s: *u8, n: i64) -> i64 |
| 99 | func ssh_put_str(b: *u8, idx: i64, s: *u8, n: i64) -> i64 |
| 104 | func ssh_send_packet(fd: i64, payload: *u8, plen: i64) -> i64 |
| 117 | func ssh_read_packet(fd: i64, payload_out: *u8) -> i64 |
| 128 | func ssh_h_str(ctx: *Sha256, src: *u8, n: i64) -> i64 |
| 132 | func ssh_build_mpint(K: *u8, n: i64, out: *u8) -> i64 called by 1: ssh_kex |
| 143 | func ssh_kex(st: *SshState) -> i64 called by 2: mainssh_open_session calls 17: sys_writesys_mmapssh_read_linessh_read_packetssh_put_bytessh_put_bytes+11 |
| 233 | func ssh_derive_key(st: *SshState, letter: i64, need: i64, out: *u8) -> i64 |
| 254 | func ssh_derive_session(st: *SshState) -> i64 |
| 263 | func ssh_seqbuf(seqnr: i64, out8: *u8) -> i64 |
| 274 | func ssh_enc_send(st: *SshState, payload: *u8, plen: i64) -> i64 |
| 304 | func ssh_enc_recv(st: *SshState, payload_out: *u8) -> i64 |
| 330 | func ssh_ed25519_blob(pub32: *u8, out: *u8) -> i64 |
| 337 | func ssh_print_authkeys(pub32: *u8) -> i64 |
| 346 | func ssh_open_session(st: *SshState, ip: i64) -> i64 called by 30: mainmainmainmainmainmain+24 calls 12: sys_socketsys_mmapssh_sockaddrnx_connect_boundedssh_kexssh_read_packet+6 |
| 372 | func ssh_userauth_password(st: *SshState, user: *u8, ulen: i64, pw: *u8, pwlen: i64) -> i64 called by 29: mainmainmainmainmainmain+23 calls 5: sys_mmapssh_put_bytessh_put_strssh_enc_sendssh_enc_recv |
| 395 | func ssh_load_identity(seed: *u8, pub: *u8) -> i64 |
| 412 | func ssh_userauth_publickey(st: *SshState, user: *u8, ulen: i64, seed32: *u8, pub32: *u8) -> i64 called by 2: mainmain calls 7: sys_mmapssh_ed25519_blobssh_put_strssh_put_byteed25519_sign_fullssh_enc_send+1 |
| 445 | func ssh_exec(st: *SshState, cmd: *u8, cmdlen: i64) -> i64 called by 18: mainmainmainmainmainmain+12 calls 9: sys_mmapssh_put_bytessh_put_strssh_put_u32ssh_enc_sendssh_enc_recv+3 |