Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: rust cli #185

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

wip: rust cli #185

wants to merge 3 commits into from

Conversation

burgerdev
Copy link
Collaborator

First impression of a concise Rust implementation of the CLI - turned out I had this sitting on an abandoned branch.

@burgerdev burgerdev requested a review from pkern October 11, 2024 21:01
@pkern
Copy link
Member

pkern commented Oct 21, 2024

Generally looks good to me. I have nothing to add to your TODOs. Thanks! :)

Copy link
Collaborator Author

@burgerdev burgerdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! I'll leave a couple more TODOs :)

name = "glome"
path = "src/cli/bin.rs"

required-features = ["cli"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document what this does.

use std::fs;
use std::io::{self, Read, Write};
use std::path::PathBuf;
use x25519_dalek::{PublicKey, StaticSecret};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this crypto-lib-agnostic?

if handshake.len() < 33 {
panic!("handshake too short") // TODO(burgerdev): better error output
}
let _message_tag_suffix = handshake.split_off(33);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suffix? Prefix?

testable subcommands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants