Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/tirpc/rpc
File: des.h
/* @(#)des.h 2.2 88/08/10 4.0 RPCSRC; from 2.7 88/02/08 SMI */
[0] Fix | Delete
/* $FreeBSD: src/include/rpc/des.h,v 1.4 2002/03/23 17:24:55 imp Exp $ */
[1] Fix | Delete
/*
[2] Fix | Delete
* Copyright (c) 2009, Sun Microsystems, Inc.
[3] Fix | Delete
* All rights reserved.
[4] Fix | Delete
*
[5] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[6] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[7] Fix | Delete
* - Redistributions of source code must retain the above copyright notice,
[8] Fix | Delete
* this list of conditions and the following disclaimer.
[9] Fix | Delete
* - Redistributions in binary form must reproduce the above copyright notice,
[10] Fix | Delete
* this list of conditions and the following disclaimer in the documentation
[11] Fix | Delete
* and/or other materials provided with the distribution.
[12] Fix | Delete
* - Neither the name of Sun Microsystems, Inc. nor the names of its
[13] Fix | Delete
* contributors may be used to endorse or promote products derived
[14] Fix | Delete
* from this software without specific prior written permission.
[15] Fix | Delete
*
[16] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[17] Fix | Delete
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[18] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[19] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
[20] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[21] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[22] Fix | Delete
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[23] Fix | Delete
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[24] Fix | Delete
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[25] Fix | Delete
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[26] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[27] Fix | Delete
*/
[28] Fix | Delete
/*
[29] Fix | Delete
* Generic DES driver interface
[30] Fix | Delete
* Keep this file hardware independent!
[31] Fix | Delete
* Copyright (c) 1986 by Sun Microsystems, Inc.
[32] Fix | Delete
*/
[33] Fix | Delete
[34] Fix | Delete
#ifndef _RPC_DES_H_
[35] Fix | Delete
#define _RPC_DES_H_
[36] Fix | Delete
[37] Fix | Delete
#define DES_MAXLEN 65536 /* maximum # of bytes to encrypt */
[38] Fix | Delete
#define DES_QUICKLEN 16 /* maximum # of bytes to encrypt quickly */
[39] Fix | Delete
[40] Fix | Delete
enum desdir { ENCRYPT, DECRYPT };
[41] Fix | Delete
enum desmode { CBC, ECB };
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
* parameters to ioctl call
[45] Fix | Delete
*/
[46] Fix | Delete
struct desparams {
[47] Fix | Delete
u_char des_key[8]; /* key (with low bit parity) */
[48] Fix | Delete
enum desdir des_dir; /* direction */
[49] Fix | Delete
enum desmode des_mode; /* mode */
[50] Fix | Delete
u_char des_ivec[8]; /* input vector */
[51] Fix | Delete
unsigned des_len; /* number of bytes to crypt */
[52] Fix | Delete
union {
[53] Fix | Delete
u_char UDES_data[DES_QUICKLEN];
[54] Fix | Delete
u_char *UDES_buf;
[55] Fix | Delete
} UDES;
[56] Fix | Delete
# define des_data UDES.UDES_data /* direct data here if quick */
[57] Fix | Delete
# define des_buf UDES.UDES_buf /* otherwise, pointer to data */
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
#ifdef notdef
[61] Fix | Delete
[62] Fix | Delete
/*
[63] Fix | Delete
* These ioctls are only implemented in SunOS. Maybe someday
[64] Fix | Delete
* if somebody writes a driver for DES hardware that works
[65] Fix | Delete
* with FreeBSD, we can being that back.
[66] Fix | Delete
*/
[67] Fix | Delete
[68] Fix | Delete
/*
[69] Fix | Delete
* Encrypt an arbitrary sized buffer
[70] Fix | Delete
*/
[71] Fix | Delete
#define DESIOCBLOCK _IOWR('d', 6, struct desparams)
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Encrypt of small amount of data, quickly
[75] Fix | Delete
*/
[76] Fix | Delete
#define DESIOCQUICK _IOWR('d', 7, struct desparams)
[77] Fix | Delete
[78] Fix | Delete
#endif
[79] Fix | Delete
[80] Fix | Delete
/*
[81] Fix | Delete
* Software DES.
[82] Fix | Delete
*/
[83] Fix | Delete
extern int _des_crypt( char *, unsigned, struct desparams * );
[84] Fix | Delete
[85] Fix | Delete
#endif
[86] Fix | Delete
[87] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function