diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-05-02 21:14:44 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-05-02 21:14:44 +0000 |
commit | b31fd982055de64ef7c3d11b96922179e2e29f37 (patch) | |
tree | 57455e7a267351a6da7638b309578fbda1de9731 /share | |
parent | f7b5d697793764c3c82bf01ee0a5041a1d7ecd75 (diff) |
correct command-line prompts; from daniel wade
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man8/vpn.8 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/man/man8/vpn.8 b/share/man/man8/vpn.8 index 67b61698236..3ba0852d0e1 100644 --- a/share/man/man8/vpn.8 +++ b/share/man/man8/vpn.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vpn.8,v 1.108 2006/03/10 04:29:49 david Exp $ +.\" $OpenBSD: vpn.8,v 1.109 2006/05/02 21:14:43 jmc Exp $ .\" .\" Copyright 1998 Niels Provos <provos@physnet.uni-hamburg.de> .\" All rights reserved. @@ -154,11 +154,11 @@ One practical method of generating them is by using the device. To produce 160 bits (20 bytes) of randomness, for example, do: .Bd -literal -offset indent -# openssl rand 20 | hexdump -e '20/1 "%02x"' +$ openssl rand 20 | hexdump -e '20/1 "%02x"' .Ed or: .Bd -literal -offset indent -compact -# openssl rand 20 | perl -pe 's/./unpack("H2",$&)/ges' +$ openssl rand 20 | perl -pe 's/./unpack("H2",$&)/ges' .Ed .Pp Different cipher types may require different sized keys. @@ -186,8 +186,8 @@ algorithms. The following would create suitable keys for a 3DES encryption key and SHA-1 authentication key: .Bd -literal -offset indent -# openssl rand 24 | hexdump -e '24/1 "%02x"' \*(Gt enc_key -# openssl rand 20 | hexdump -e '20/1 "%02x"' \*(Gt auth_key +$ openssl rand 24 | hexdump -e '24/1 "%02x"' \*(Gt enc_key +$ openssl rand 20 | hexdump -e '20/1 "%02x"' \*(Gt auth_key .Ed .Pp The 3DES encryption key needs 192 bits (3x64), or 24 bytes. |