summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-20 14:04:50 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-20 14:04:50 -0800
commit8b72cb852a8da420d6d64f83aa0cbf256f36dd68 (patch)
tree21afaa589d4dbc4c962948607e557395f3755e0a
parent37f7800766fe12af43d0cdba13aea9545cbe7755 (diff)
downloadnitrocli-8b72cb852a8da420d6d64f83aa0cbf256f36dd68.tar.gz
nitrocli-8b72cb852a8da420d6d64f83aa0cbf256f36dd68.tar.bz2
Document hidden volumes in the README and the manual page
This change updates the README and the man page with documentation about hidden volumes in general and the storage hidden subcommand in particular.
-rw-r--r--nitrocli/CHANGELOG.md1
-rw-r--r--nitrocli/README.md4
-rw-r--r--nitrocli/doc/nitrocli.149
-rw-r--r--nitrocli/doc/nitrocli.1.pdfbin15579 -> 17202 bytes
4 files changed, 46 insertions, 8 deletions
diff --git a/nitrocli/CHANGELOG.md b/nitrocli/CHANGELOG.md
index 0f62943..416c1e5 100644
--- a/nitrocli/CHANGELOG.md
+++ b/nitrocli/CHANGELOG.md
@@ -1,5 +1,6 @@
Unreleased
----------
+- Added the `storage hidden` subcommand for working with hidden volumes
- Store cached PINs on a per-device basis to better support multi-device
scenarios
- Further decreased binary size by using system allocator
diff --git a/nitrocli/README.md b/nitrocli/README.md
index 51db5c0..3003c6b 100644
--- a/nitrocli/README.md
+++ b/nitrocli/README.md
@@ -22,6 +22,10 @@ The following commands are currently supported:
- open: Open the encrypted volume. The user PIN needs to be entered.
- close: Close the encrypted volume.
- status: Print information about the Nitrokey's storage.
+ - hidden:
+ - create: Create a hidden volume.
+ - open: Open a hidden volume with a password.
+ - close: Close a hidden volume.
- otp: Access one-time passwords (OTP).
- get: Generate a one-time password.
- set: Set an OTP slot.
diff --git a/nitrocli/doc/nitrocli.1 b/nitrocli/doc/nitrocli.1
index dbbaf2b..21dbc3b 100644
--- a/nitrocli/doc/nitrocli.1
+++ b/nitrocli/doc/nitrocli.1
@@ -1,4 +1,4 @@
-.TH NITROCLI 1 2019-01-11
+.TH NITROCLI 1 2019-01-21
.SH NAME
nitrocli \- access Nitrokey devices
.SH SYNOPSIS
@@ -35,10 +35,17 @@ number, the firmware version, and the PIN retry count.
.B nitrocli lock
Lock the Nitrokey.
This command locks the password safe (see the Password safe section). On the
-Nitrokey Storage, it will also close the encrypted volume (see the Storage
-section).
+Nitrokey Storage, it will also close any active encrypted or hidden volumes (see
+the Storage section).
.SS Storage
+The Nitrokey Storage comes with a storage area. This area is comprised of an
+\fIunencrypted\fR region and an \fIencrypted\fR one of fixed sizes, each made
+available to the user in the form of block devices. The encrypted region can
+optionally further be overlayed with up to four \fIhidden\fR volumes. Because of
+this overlay (which is required to achieve plausible deniability of the
+existence of hidden volumes), the burden of ensuring that data on the encrypted
+volume does not overlap with data on one of the hidden volumes is on the user.
.TP
\fBnitrocli storage open
Open the encrypted volume on the Nitrokey Storage.
@@ -52,9 +59,27 @@ Close the encrypted volume on the Nitrokey Storage.
Print the status of the connected Nitrokey Storage device's storage. The
printed information includes the SD card serial number, the encryption
status, and the status of the volumes.
+.TP
+\fBnitrocli storage hidden create \fIslot\fR \fIstart\fR \fIend\fR
+Create a new hidden volume inside the encrypted volume. \fIslot\fR must indicate
+one of the four available slots. \fIstart\fR and \fIend\fR represent,
+respectively, the start and end position of the hidden volume inside the
+encrypted volume, as a percentage of the encrypted volume's size.
+This command requires a password which is later used to look up the hidden
+volume to open. Unlike a PIN, this password is not cached by \fBgpg\-agent\fR(1).
+.TP
+\fBnitrocli storage hidden open
+Open a hidden volume. The volume to open is determined based on the password
+entered, which must have a minimum of six characters. Only one hidden volume can
+be active at any point in time and previously opened volumes will be
+automatically closed. Similarly, the encrypted volume will be closed if it was
+open.
+.TP
+\fBnitrocli storage hidden close
+Close a hidden volume.
.SS One-time passwords
-The Nitrokey Pro and the Nitrokey Store support the generation of one-time
+The Nitrokey Pro and the Nitrokey Storage support the generation of one-time
passwords using the HOTP algorithm according to RFC 4226 or the TOTP algorithm
according to RFC 6238.
The required data \(en a name and the secret \(en is stored in slots.
@@ -231,14 +256,22 @@ The admin PIN to use.
The user PIN to use.
.TP
.B NITROCLI_NEW_ADMIN_PIN
-The new admin PIN to set. This variable is only used by the \fBnitrocli
-pin set\fR command for the \fBadmin\fR type.
+The new admin PIN to set. This variable is only used by the \fBpin set\fR
+command for the \fBadmin\fR type.
.TP
.B NITROCLI_NEW_USER_PIN
-The new user PIN to set. This variable is only used by the \fBnitrocli
-pin set\fR command for the \fBuser\fR type.
+The new user PIN to set. This variable is only used by the \fBpin set\fR command
+for the \fBuser\fR type.
+.TP
+.B NITROCLI_PASSWORD
+A password used by commands that require one (e.g., \fBstorage hidden open\fR).
.SH EXAMPLES
+.SS Storage
+Create a hidden volume in the first available slot, starting at half the size of
+the encrypted volume (i.e., 50%) and stretching all the way to its end (100%):
+ $ \fBnitrocli storage hidden create 0 50 100\fR
+
.SS One-time passwords
Configure a one-time password slot with a hexadecimal secret representation:
$ \fBnitrocli otp set 0 test\-rfc4226 3132333435363738393031323334353637383930 \-\-algorithm hotp\fR
diff --git a/nitrocli/doc/nitrocli.1.pdf b/nitrocli/doc/nitrocli.1.pdf
index a823db0..d85e599 100644
--- a/nitrocli/doc/nitrocli.1.pdf
+++ b/nitrocli/doc/nitrocli.1.pdf
Binary files differ