File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / ecp_dese.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:44:29 2013 UTC (11 years, 5 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_7p0, v5_7, v5_6, HEAD
5.7


/*
 * 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_DES_H_
#define _ECP_DES_H_

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

/*
 * DEFINITIONS
 */

  struct dese_stats {
	uint64_t	FramesIn;
	uint64_t	FramesOut;
	uint64_t	OctetsIn;
	uint64_t	OctetsOut;
	uint64_t	Errors;
  };
  typedef struct dese_stats	*DeseStats;
  
  struct desinfo
  {
    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 dese_stats	recv_stats;	
    struct dese_stats	xmit_stats;	
  };
  typedef struct desinfo	*DesInfo;

/*
 * VARIABLES
 */

  extern const struct enctype	gDeseEncType;

#endif


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