ref: 4472cbe66edbb03865a9fb0f67970e0ce9deb0f2
parent: 000363db658e62039e609a1e8d237544a20bcd55
author: cinap_lenrek <[email protected]>
date: Thu Jul 5 15:17:03 EDT 2012
add cryptsetup(8), add crypt command doc to fs(3)
--- a/sys/man/3/fs
+++ b/sys/man/3/fs
@@ -157,6 +157,15 @@
for further partition devices.
Default values are restored when the control file is closed.
.TP
+.BI crypt " new file key"
+The device
+.I new
+corresponds to a AES-encrypted partition
+.I file
+encrypted with
+.I key (see
+.IR cryptsetup (8)).
+.TP
.B clear
Discard all
.I fs
--- /dev/null
+++ b/sys/man/8/cryptsetup
@@ -1,0 +1,53 @@
+.TH CRYPTSETUP 8
+.SH NAME
+cryptsetup \- setup encrypted partition
+.SH SYNOPSIS
+.B cryptsetup
+.B -f
+.I files ...
+.br
+.B cryptsetup
+.B -o
+.I files ...
+.br
+.B cryptsetup
+.B -i
+.I files ...
+.SH DESCRIPTION
+.I Cryptsetup
+prepares a AES-encrypted partition to be used with the
+.IR fs (3)
+device.
+.PP
+The
+.B -f
+flag formats the partitions
+.I files,
+generating a new encryption key. The encryption key is
+protected by a password that
+.I cryptsetup
+will prompt for confirmation.
+.PP
+The flags
+.B -i
+and
+.B -o
+activate a previously formated encrypted partition. The
+.B -o
+flag outputs the
+.IR fs (3)
+ctl activation commands to standard output where
+.B -i
+directly writes them to the
+.B '/dev/fs/ctl'
+file.
+.PP
+Once activated, the new partition appears under
+.BI /dev/fs/ name
+where
+.I name
+is the last path element of the
+.I files
+argument.
+.SH SEE ALSO
+.IR fs (3)