Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 2 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 18
Line 1... Line 1...
1
.\"                                      Hey, EMACS: -*- nroff -*-
1
.\"                                      Hey, EMACS: -*- nroff -*-
2
.\" First parameter, NAME, should be all caps
2
.\" First parameter, NAME, should be all caps
3
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
3
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4
.\" other parameters are allowed: see man(7), man(1)
4
.\" other parameters are allowed: see man(7), man(1)
5
.TH SEXP-CONV 1 "Apr 19, 2002" sexp-conv "Lsh Manuals"
5
.TH SEXP\-CONV 1 "June 2007" "nettle 1.15"  "Nettle tools"
6
.\" Please adjust this date whenever revising the manpage.
6
.\" Please adjust this date whenever revising the manpage.
7
.\"
7
.\"
8
.\" Some roff macros, for reference:
8
.\" Some roff macros, for reference:
9
.\" .nh        disable hyphenation
9
.\" .nh        disable hyphenation
10
.\" .hy        enable hyphenation
10
.\" .hy        enable hyphenation
Line 14... Line 14...
14
.\" .fi        enable filling
14
.\" .fi        enable filling
15
.\" .br        insert line break
15
.\" .br        insert line break
16
.\" .sp <n>    insert n+1 empty lines
16
.\" .sp <n>    insert n+1 empty lines
17
.\" for manpage-specific macros, see man(7)
17
.\" for manpage-specific macros, see man(7)
18
.SH NAME
18
.SH NAME
19
sexp_conv \- convert s-expression to a different encoding
19
sexp\-conv \- convert s-expression to a different encoding
20
.SH SYNOPSIS
20
.SH SYNOPSIS
-
 
21
Conversion:
-
 
22
.br
21
.B sexp_conv
23
.B sexp-conv
-
 
24
.RI [ OPTION ]... 
-
 
25
.RI <\  INPUT-SEXP
-
 
26
.PP
-
 
27
Fingerprinting:
-
 
28
.br
-
 
29
.B sexp-conv --hash\fR[\fB=\fP\fIalgorithm\fP]
22
.RI [ options ]
30
.RI [ OPTION ]...
-
 
31
.RI <\  INPUT-SEXP
23
.SH DESCRIPTION
32
.SH DESCRIPTION
24
This manual page documents briefly the
33
This manual page documents briefly the
25
.B sexp_conv
34
.B sexp\-conv
26
command.
35
command.
27
This manual page was written for the Debian GNU/Linux distribution
36
This manual page was written for the Debian GNU/Linux distribution
28
because the original program does not have a manual page.
37
because the original program does not have a manual page.
29
Instead, it has documentation in the GNU Info format; see below.
38
Instead, it has documentation in the GNU Info format; see below.
30
.PP
39
.PP
31
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
40
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
32
.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
41
.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
33
.\" respectively.
42
.\" respectively.
34
\fBsexp_conv\fP is a program that converts S-expressions (keys and
43
\fBsexp\-conv\fP is a program that converts S-expressions. It automatically
-
 
44
detects the s-expression syntax variant of the input. It is primarily
35
most other objects which `lsh' needs to store on disk)
45
used by the `lsh' packages, which stores keys and most other objects
-
 
46
on disk in that format, but may be of other use as well.
36
.SH OPTIONS
47
.SH OPTIONS
37
This program follows the usual GNU command line syntax, with long
48
This program follows the usual GNU command line syntax, with long
38
options starting with two dashes (`-').
49
options starting with two dashes (`-').
39
A summary of options is included below.
50
A summary of options is included below.
40
For a complete description, see the Info files.
51
For a complete description, see the Info files.
41
.TP
52
.TP
42
.B \-\-hash=\fIalgorithm\fP
53
.B \-\-hash=\fIalgorithm\fP
43
Hash algorithm (default: sha1).
54
Output only the hash of the s-expression, using \fIalgorithm\fP (default: sha1).
44
.TP
-
 
45
.B \-\-once
-
 
46
Process at most one s-expression.
-
 
47
.TP
55
.TP
48
.B \-\-raw\-hash
56
.B \-\-raw\-hash
49
Output the hash for the canonical representation of the object, in hexadecimal.
-
 
50
.TP
-
 
51
.B \-\-spki\-hash
-
 
52
Output an SPKI hash for the object.
57
Alias for \-\-hash, for compatibility with lsh 1.x.
53
.TP
58
.TP
54
.B \-\-debug
-
 
55
Print huge amounts of debug information.
-
 
56
.TP
-
 
57
.B \-q, \-\-quiet
-
 
58
Supress all warnings and diagnostic messages.
-
 
59
.TP
-
 
60
.B \-\-trace
59
.B \-\-once
61
Detailed trace.
-
 
62
.TP
-
 
63
.B \-v, \-\-verbose
-
 
64
Verbose diagnostic messages.
60
Process exactly one s-expression.
65
.TP
61
.TP
66
.B \-i, \-\-input\-format=\fIformat\fP
62
.B \-\-spki\-hash
67
Variant of S-expression to accept. Valid S-expression formats are: transport,
63
Output an SPKI hash for the object. \fBNot yet implemented.\fP
68
canonical, advanced and international.
-
 
69
.TP
64
.TP
70
.B \-o, \-\-output\-format=\fIformat\fP
65
.B \-s, \-\-syntax=\fIformat\fP
71
Variant of S-expression to output. Valid S-expression formats are: transport,
66
Variant of S-expression to output. Valid S-expression formats are: transport,
72
canonical, advanced and international.
67
canonical (binary), advanced, and hex (same as advanced, but numbers in hex
-
 
68
instead of base64).
-
 
69
.TP
-
 
70
.B \-w, \-\-width=\fIwidth\fP
-
 
71
Limit output to lines of \fIwidth\fP characters (has no effect on canonical syntax). Zero means no limit.
73
.TP
72
.TP
74
.B \-?, \-\-help
73
.B \-?, \-\-help
75
Show summary of options.
74
Show summary of options.
76
.TP
75
.TP
77
.B \-\-usage
-
 
78
Give a short usage message.
-
 
79
.TP
-
 
80
.B \-v, \-\-version
76
.B \-V, \-\-version
81
Show version of program.
77
Show version of program.
82
.SH SEE ALSO
78
.SH SEE ALSO
83
.BR ssh-conv (1),
79
.BR ssh-conv (1),
84
.BR lshc (1),
80
.BR lsh (1),
85
.BR lshd (8).
81
.BR lshd (8),
-
 
82
http://theworld.com/~cme/spki.txt.
86
.br
83
.br
87
The programs are documented fully by the
84
The programs are documented fully by the
88
.IR "sexp"
85
.IR "sexp"
89
section under the
86
section under the
90
.IR "Getting Started"
87
.IR "Getting Started"
91
header of the lsh info page, available via the Info system.
88
header of the lsh info page, available via the Info system.
-
 
89
.SH BUGS
-
 
90
This program should be documented in the nettle manual, not in the lsh manual.
92
.SH AUTHOR
91
.SH AUTHOR
93
This manual page was written by Timshel Knoll <timshel@debian.org>,
92
This manual page was originally written by Timshel Knoll <timshel@debian.org>,
94
for the Debian GNU/Linux system (but may be used by others).
93
for the Debian GNU/Linux system (but may be used by others). Edited
-
 
94
by Magnus Holmgren <magnus@kibibyte.se>.