diff --git a/README.md b/README.md index 945908c..189b9bf 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Code: https://git.kropa.tech/hiddenbox/sshcrypt # decrypting needs the matching private key sshcrypt -d -k ~/.ssh/id_ed25519 < notes.txt.asc - # verify which key a message or a key file belongs to + # print a key's fingerprint, the same value ssh-keygen -l shows sshcrypt -F bob.pub sshcrypt -F ~/.ssh/id_ed25519 @@ -45,7 +45,8 @@ terminal. * Decryption reads PEM/PKCS#8 directly. An OpenSSH-format private key (`-----BEGIN OPENSSH PRIVATE KEY-----`) is converted through `ssh-keygen`, which therefore has to be installed. The conversion happens in a `0600` - file under `/dev/shm` (or `$TMPDIR`), and the file is unlinked immediately. + file under `/dev/shm` (or `$TMPDIR`), which is unlinked as soon as it has + been read. * A passphrase is asked for on `/dev/tty` with echo off, never on stdin (that is the payload). `SSHCRYPT_PASSPHRASE` supplies it non-interactively. diff --git a/src/keys.c b/src/keys.c index 798fbae..106a324 100644 --- a/src/keys.c +++ b/src/keys.c @@ -382,8 +382,8 @@ static int parse_pub_text(const char *text, size_t n, const char *label, } if (!found) { fprintf(stderr, - "sshcrypt: %s: no ssh-ed25519 or ssh-rsa public key found\n", - label); + "sshcrypt: %s: no ssh-ed25519 or ssh-rsa public key found " + "(ECDSA keys are not supported)\n", label); return -1; }