feat: update comments

This commit is contained in:
2024-08-22 22:59:04 +08:00
parent ddc3ff98a2
commit 1d2a00a0c8

View File

@@ -61,6 +61,15 @@ impl Command for CommandImpl {
information!("ECDSA public key: {}", hex::encode(&ec_key_point));
println!();
// ECDSA SSH public key format:
// string ecdsa-sha2-[identifier]
// byte[n] ecc_key_blob
//
// ecc_key_blob:
// string [identifier]
// string Q
//
// [identifier] will be nistp256 or nistp384
let mut ssh_pub_key = vec![];
ssh_pub_key.write_string(&format!("ecdsa-sha2-{}", ssh_algorithm).as_bytes());
let mut ecc_key_blob = vec![];