File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / encrypt.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 (10 years, 11 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, v5_8p7, v5_8p1_cross, v5_8p1, v5_8, v5_7p0, v5_7, v5_6, HEAD
5.7

    1: 
    2: /*
    3:  * encrypt.h
    4:  *
    5:  * Written by Archie Cobbs <archie@freebsd.org>
    6:  * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
    7:  * See ``COPYRIGHT.whistle''
    8:  */
    9: 
   10: #ifndef _ENCRYPT_H_
   11: #define	_ENCRYPT_H_
   12: 
   13: /*
   14:  * DEFINITIONS
   15:  */
   16: 
   17: /* Descriptor for one type of encryption */
   18: 
   19:   struct ecpstate;
   20: 
   21:   struct enctype
   22:   {
   23:     const char	*name;
   24:     u_char	type;
   25:     int		(*Init)(Bund b, int dir);
   26:     void	(*Configure)(Bund b);
   27:     void	(*UnConfigure)(Bund b);
   28:     int		(*SubtractBloat)(Bund b, int size);
   29:     void	(*Cleanup)(Bund b, int dir);
   30:     u_char	*(*BuildConfigReq)(Bund b, u_char *cp);
   31:     void	(*DecodeConfig)(Fsm fp, FsmOption opt, int mode);
   32:     Mbuf	(*SendResetReq)(Bund b);
   33:     Mbuf	(*RecvResetReq)(Bund b, int id, Mbuf bp);
   34:     void	(*RecvResetAck)(Bund b, int id, Mbuf bp);
   35:     int         (*Stat)(Context ctx, int dir);
   36:     Mbuf	(*Encrypt)(Bund b, Mbuf plain);
   37:     Mbuf	(*Decrypt)(Bund b, Mbuf cypher);
   38:   };
   39:   typedef const struct enctype	*EncType;
   40: 
   41: #endif
   42: 

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