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 (8 years, 1 month 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


/*
 * ecp_des.h
 *
 * Rewritten by Alexander Motin <mav@FreeBSD.org>
 * Written by Archie Cobbs <archie@freebsd.org>
 * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
 * See ``COPYRIGHT.whistle''
 */

#ifndef _ECP_DESE_BIS_H_
#define _ECP_DESE_BIS_H_

#include "defs.h"
#include "mbuf.h"
#include <openssl/des.h>

/*
 * DEFINITIONS
 */

  struct desebis_stats {
	uint64_t	FramesIn;
	uint64_t	FramesOut;
	uint64_t	OctetsIn;
	uint64_t	OctetsOut;
	uint64_t	Errors;
  };
  typedef struct desebis_stats	*DeseBisStats;
  
  struct desebisinfo
  {
    DES_cblock		xmit_ivec;	/* Xmit initialization vector */
    DES_cblock		recv_ivec;	/* Recv initialization vector */
    u_int16_t		xmit_seq;	/* Transmit sequence number */
    u_int16_t		recv_seq;	/* Receive sequence number */
    DES_key_schedule	ks;		/* Key schedule */
    struct desebis_stats recv_stats;	
    struct desebis_stats xmit_stats;	
  };
  typedef struct desebisinfo	*DeseBisInfo;

/*
 * VARIABLES
 */

  extern const struct enctype	gDeseBisEncType;

#endif


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