Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/lib/libdes Regen man pages with ...



details:   https://anonhg.NetBSD.org/src/rev/4f3fff59f03f
branches:  trunk
changeset: 753852:4f3fff59f03f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Apr 12 17:59:37 2010 +0000

description:
Regen man pages with modern pod2man to get more normalised version.

diffstat:

 crypto/external/bsd/openssl/lib/libdes/des.3       |  180 ++++++++++----------
 crypto/external/bsd/openssl/lib/libdes/des_modes.7 |  161 ++++++++----------
 2 files changed, 165 insertions(+), 176 deletions(-)

diffs (truncated from 661 to 300 lines):

diff -r 9dc4c687f545 -r 4f3fff59f03f crypto/external/bsd/openssl/lib/libdes/des.3
--- a/crypto/external/bsd/openssl/lib/libdes/des.3      Mon Apr 12 17:58:40 2010 +0000
+++ b/crypto/external/bsd/openssl/lib/libdes/des.3      Mon Apr 12 17:59:37 2010 +0000
@@ -1,26 +1,11 @@
-.\" Automatically generated by Pod::Man version 1.02
-.\" Wed Jul 23 14:41:57 2003
+.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07)
 .\"
 .\" Standard preamble:
-.\" ======================================================================
-.de Sh \" Subsection heading
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
+.\" ========================================================================
 .de Sp \" Vertical space (when we can't use .PP)
 .if t .sp .5v
 .if n .sp
 ..
-.de Ip \" List item
-.br
-.ie \\n(.$>=3 .ne \\$3
-.el .ne 3
-.IP "\\$1" \\$2
-..
 .de Vb \" Begin verbatim text
 .ft CW
 .nf
@@ -28,16 +13,15 @@
 ..
 .de Ve \" End verbatim text
 .ft R
-
 .fi
 ..
 .\" Set up some character translations and predefined strings.  \*(-- will
 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote.  | will give a
-.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used
-.\" to do unbreakable dashes and therefore won't be available.  \*(C` and
-.\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
-.tr \(*W-|\(bv\*(Tr
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
 .ie n \{\
 .    ds -- \(*W-
@@ -46,8 +30,8 @@
 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
 .    ds L" ""
 .    ds R" ""
-.    ds C` `
-.    ds C' '
+.    ds C` ""
+.    ds C' ""
 'br\}
 .el\{\
 .    ds -- \|\(em\|
@@ -56,26 +40,28 @@
 .    ds R" ''
 'br\}
 .\"
-.\" If the F register is turned on, we'll generate index entries on stderr
-.\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
-.\" index entries marked with X<> in POD.  Of course, you'll have to process
-.\" the output yourself in some meaningful fashion.
-.if \nF \{\
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.ie \nF \{\
 .    de IX
 .    tm Index:\\$1\t\\n%\t"\\$2"
-.    .
+..
 .    nr % 0
 .    rr F
 .\}
-.\"
-.\" For nroff, turn off justification.  Always turn off hyphenation; it
-.\" makes way too many mistakes in technical documents.
-.hy 0
-.if n .na
+.el \{\
+.    de IX
+..
+.\}
 .\"
 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
-.bd B 3
 .    \" fudge factors for nroff and troff
 .if n \{\
 .    ds #H 0
@@ -135,11 +121,14 @@
 .    ds Ae AE
 .\}
 .rm #[ #] #H #V #F C
-.\" ======================================================================
+.\" ========================================================================
 .\"
 .IX Title "des 3"
-.TH des 3 "0.9.6j" "2003-07-23" "libdes"
-.UC
+.TH des 3 "2009-07-20" "0.9.6j" "libdes"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
 .SH "NAME"
 des_random_key, des_set_key, des_key_sched, des_set_key_checked,
 des_set_key_unchecked, des_set_odd_parity, des_is_weak_key,
@@ -150,39 +139,34 @@
 des_ede3_cbcm_encrypt, des_ede3_cfb64_encrypt, des_ede3_ofb64_encrypt,
 des_read_password, des_read_2passwords, des_read_pw_string,
 des_cbc_cksum, des_quad_cksum, des_string_to_key, des_string_to_2keys,
-des_fcrypt, des_crypt, des_enc_read, des_enc_write \- \s-1DES\s0 encryption
+des_fcrypt, des_crypt, des_enc_read, des_enc_write \- DES encryption
 .SH "SYNOPSIS"
 .IX Header "SYNOPSIS"
 .Vb 1
 \& #include <openssl/des.h>
-.Ve
-.Vb 1
+\&
 \& void des_random_key(des_cblock *ret);
-.Ve
-.Vb 6
+\&
 \& int des_set_key(const_des_cblock *key, des_key_schedule schedule);
 \& int des_key_sched(const_des_cblock *key, des_key_schedule schedule);
 \& int des_set_key_checked(const_des_cblock *key,
 \&        des_key_schedule schedule);
 \& void des_set_key_unchecked(const_des_cblock *key,
 \&        des_key_schedule schedule);
-.Ve
-.Vb 2
+\&
 \& void des_set_odd_parity(des_cblock *key);
 \& int des_is_weak_key(const_des_cblock *key);
-.Ve
-.Vb 7
-\& void des_ecb_encrypt(const_des_cblock *input, des_cblock *output, 
+\&
+\& void des_ecb_encrypt(const_des_cblock *input, des_cblock *output,
 \&        des_key_schedule ks, int enc);
-\& void des_ecb2_encrypt(const_des_cblock *input, des_cblock *output, 
+\& void des_ecb2_encrypt(const_des_cblock *input, des_cblock *output,
 \&        des_key_schedule ks1, des_key_schedule ks2, int enc);
-\& void des_ecb3_encrypt(const_des_cblock *input, des_cblock *output, 
-\&        des_key_schedule ks1, des_key_schedule ks2, 
+\& void des_ecb3_encrypt(const_des_cblock *input, des_cblock *output,
+\&        des_key_schedule ks1, des_key_schedule ks2,
 \&        des_key_schedule ks3, int enc);
-.Ve
-.Vb 18
-\& void des_ncbc_encrypt(const unsigned char *input, unsigned char *output, 
-\&        long length, des_key_schedule schedule, des_cblock *ivec, 
+\&
+\& void des_ncbc_encrypt(const unsigned char *input, unsigned char *output,
+\&        long length, des_key_schedule schedule, des_cblock *ivec,
 \&        int enc);
 \& void des_cfb_encrypt(const unsigned char *in, unsigned char *out,
 \&        int numbits, long length, des_key_schedule schedule,
@@ -190,8 +174,8 @@
 \& void des_ofb_encrypt(const unsigned char *in, unsigned char *out,
 \&        int numbits, long length, des_key_schedule schedule,
 \&        des_cblock *ivec);
-\& void des_pcbc_encrypt(const unsigned char *input, unsigned char *output, 
-\&        long length, des_key_schedule schedule, des_cblock *ivec, 
+\& void des_pcbc_encrypt(const unsigned char *input, unsigned char *output,
+\&        long length, des_key_schedule schedule, des_cblock *ivec,
 \&        int enc);
 \& void des_cfb64_encrypt(const unsigned char *in, unsigned char *out,
 \&        long length, des_key_schedule schedule, des_cblock *ivec,
@@ -199,13 +183,11 @@
 \& void des_ofb64_encrypt(const unsigned char *in, unsigned char *out,
 \&        long length, des_key_schedule schedule, des_cblock *ivec,
 \&        int *num);
-.Ve
-.Vb 3
-\& void des_xcbc_encrypt(const unsigned char *input, unsigned char *output, 
-\&        long length, des_key_schedule schedule, des_cblock *ivec, 
+\&
+\& void des_xcbc_encrypt(const unsigned char *input, unsigned char *output,
+\&        long length, des_key_schedule schedule, des_cblock *ivec,
 \&        const_des_cblock *inw, const_des_cblock *outw, int enc);
-.Ve
-.Vb 9
+\&
 \& void des_ede2_cbc_encrypt(const unsigned char *input,
 \&        unsigned char *output, long length, des_key_schedule ks1,
 \&        des_key_schedule ks2, des_cblock *ivec, int enc);
@@ -215,47 +197,42 @@
 \& void des_ede2_ofb64_encrypt(const unsigned char *in,
 \&        unsigned char *out, long length, des_key_schedule ks1,
 \&        des_key_schedule ks2, des_cblock *ivec, int *num);
-.Ve
-.Vb 15
+\&
 \& void des_ede3_cbc_encrypt(const unsigned char *input,
 \&        unsigned char *output, long length, des_key_schedule ks1,
 \&        des_key_schedule ks2, des_key_schedule ks3, des_cblock *ivec,
 \&        int enc);
-\& void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, 
-\&        long length, des_key_schedule ks1, des_key_schedule ks2, 
-\&        des_key_schedule ks3, des_cblock *ivec1, des_cblock *ivec2, 
+\& void des_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out,
+\&        long length, des_key_schedule ks1, des_key_schedule ks2,
+\&        des_key_schedule ks3, des_cblock *ivec1, des_cblock *ivec2,
 \&        int enc);
-\& void des_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out, 
+\& void des_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out,
 \&        long length, des_key_schedule ks1, des_key_schedule ks2,
 \&        des_key_schedule ks3, des_cblock *ivec, int *num, int enc);
-\& void des_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out, 
-\&        long length, des_key_schedule ks1, 
-\&        des_key_schedule ks2, des_key_schedule ks3, 
+\& void des_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out,
+\&        long length, des_key_schedule ks1,
+\&        des_key_schedule ks2, des_key_schedule ks3,
 \&        des_cblock *ivec, int *num);
-.Ve
-.Vb 5
+\&
 \& int des_read_password(des_cblock *key, const char *prompt, int verify);
-\& int des_read_2passwords(des_cblock *key1, des_cblock *key2, 
+\& int des_read_2passwords(des_cblock *key1, des_cblock *key2,
 \&        const char *prompt, int verify);
 \& int des_read_pw_string(char *buf, int length, const char *prompt,
 \&        int verify);
-.Ve
-.Vb 8
-\& DES_LONG des_cbc_cksum(const unsigned char *input, des_cblock *output, 
-\&        long length, des_key_schedule schedule, 
+\&
+\& DES_LONG des_cbc_cksum(const unsigned char *input, des_cblock *output,
+\&        long length, des_key_schedule schedule,
 \&        const_des_cblock *ivec);
-\& DES_LONG des_quad_cksum(const unsigned char *input, des_cblock output[], 
+\& DES_LONG des_quad_cksum(const unsigned char *input, des_cblock output[],
 \&        long length, int out_count, des_cblock *seed);
 \& void des_string_to_key(const char *str, des_cblock *key);
 \& void des_string_to_2keys(const char *str, des_cblock *key1,
 \&        des_cblock *key2);
-.Ve
-.Vb 3
+\&
 \& char *des_fcrypt(const char *buf, const char *salt, char *ret);
 \& char *des_crypt(const char *buf, const char *salt);
 \& char *crypt(const char *buf, const char *salt);
-.Ve
-.Vb 4
+\&
 \& int des_enc_read(int fd, void *buf, int len, des_key_schedule sched,
 \&        des_cblock *iv);
 \& int des_enc_write(int fd, const void *buf, int len,
@@ -274,7 +251,7 @@
 the key; it is used to speed the encryption process.
 .PP
 \&\fIdes_random_key()\fR generates a random key.  The \s-1PRNG\s0 must be seeded
-prior to using this function (see rand(3); for backward
+prior to using this function (see \fIrand\fR\|(3); for backward
 compatibility the function \fIdes_random_seed()\fR is available as well).
 If the \s-1PRNG\s0 could not generate a secure key, 0 is returned.  In
 earlier versions of the library, \fIdes_random_key()\fR did not generate
@@ -350,6 +327,9 @@
 reusing \fIks1\fR for the final encryption.  \f(CW\*(C`C=E(ks1,D(ks2,E(ks1,M)))\*(C'\fR.
 This form of Triple-DES is used by the \s-1RSAREF\s0 library.
 .PP
+\&\fIdes_pcbc_encrypt()\fR encrypt/decrypts using the propagating cipher block
+chaining mode used by Kerberos v4. Its parameters are the same as
+\&\fIdes_ncbc_encrypt()\fR.
 .PP
 \&\fIdes_cfb_encrypt()\fR encrypt/decrypts using cipher feedback mode.  This
 method takes an array of characters as input and outputs and array of
@@ -384,6 +364,10 @@
 \&\fIdes_ede3_ofb64_encrypt()\fR and \fIdes_ede2_ofb64_encrypt()\fR is the same as
 \&\fIdes_ofb64_encrypt()\fR, using Triple-DES.
 .PP
+The following functions are included in the \s-1DES\s0 library for
+compatibility with the \s-1MIT\s0 Kerberos library. \fIdes_read_pw_string()\fR
+is also available under the name \fIEVP_read_pw_string()\fR.
+.PP
 \&\fIdes_read_pw_string()\fR writes the string specified by \fIprompt\fR to
 standard output, turns echo off and reads in input string from the
 terminal.  The string is returned in \fIbuf\fR, which must have space for
@@ -400,6 +384,18 @@



Home | Main Index | Thread Index | Old Index