File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / ecp_dese_bis.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Nov 1 09:56:12 2016 UTC (7 years, 8 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, v5_8p7, v5_8p1_cross, v5_8p1, v5_8, HEAD
mpd 5.8

    1: 
    2: /*
    3:  * ecp_des.h
    4:  *
    5:  * Rewritten by Alexander Motin <mav@FreeBSD.org>
    6:  * Written by Archie Cobbs <archie@freebsd.org>
    7:  * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
    8:  * See ``COPYRIGHT.whistle''
    9:  */
   10: 
   11: #ifndef _ECP_DESE_BIS_H_
   12: #define _ECP_DESE_BIS_H_
   13: 
   14: #include "defs.h"
   15: #include "mbuf.h"
   16: #include <openssl/des.h>
   17: 
   18: /*
   19:  * DEFINITIONS
   20:  */
   21: 
   22:   struct desebis_stats {
   23: 	uint64_t	FramesIn;
   24: 	uint64_t	FramesOut;
   25: 	uint64_t	OctetsIn;
   26: 	uint64_t	OctetsOut;
   27: 	uint64_t	Errors;
   28:   };
   29:   typedef struct desebis_stats	*DeseBisStats;
   30:   
   31:   struct desebisinfo
   32:   {
   33:     DES_cblock		xmit_ivec;	/* Xmit initialization vector */
   34:     DES_cblock		recv_ivec;	/* Recv initialization vector */
   35:     u_int16_t		xmit_seq;	/* Transmit sequence number */
   36:     u_int16_t		recv_seq;	/* Receive sequence number */
   37:     DES_key_schedule	ks;		/* Key schedule */
   38:     struct desebis_stats recv_stats;	
   39:     struct desebis_stats xmit_stats;	
   40:   };
   41:   typedef struct desebisinfo	*DeseBisInfo;
   42: 
   43: /*
   44:  * VARIABLES
   45:  */
   46: 
   47:   extern const struct enctype	gDeseBisEncType;
   48: 
   49: #endif
   50: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>