Home | History | Annotate | Line # | Download | only in opencrypto
cryptosoft.h revision 1.2.4.5
      1  1.2.4.5  christos /*	$NetBSD: cryptosoft.h,v 1.2.4.5 2005/12/11 10:29:36 christos Exp $ */
      2  1.2.4.2     skrll /*	$OpenBSD: cryptosoft.h,v 1.10 2002/04/22 23:10:09 deraadt Exp $	*/
      3  1.2.4.2     skrll 
      4  1.2.4.2     skrll /*
      5  1.2.4.2     skrll  * The author of this code is Angelos D. Keromytis (angelos (at) cis.upenn.edu)
      6  1.2.4.2     skrll  *
      7  1.2.4.2     skrll  * This code was written by Angelos D. Keromytis in Athens, Greece, in
      8  1.2.4.2     skrll  * February 2000. Network Security Technologies Inc. (NSTI) kindly
      9  1.2.4.2     skrll  * supported the development of this code.
     10  1.2.4.2     skrll  *
     11  1.2.4.2     skrll  * Copyright (c) 2000 Angelos D. Keromytis
     12  1.2.4.2     skrll  *
     13  1.2.4.2     skrll  * Permission to use, copy, and modify this software with or without fee
     14  1.2.4.2     skrll  * is hereby granted, provided that this entire notice is included in
     15  1.2.4.2     skrll  * all source code copies of any software which is or includes a copy or
     16  1.2.4.2     skrll  * modification of this software.
     17  1.2.4.2     skrll  *
     18  1.2.4.2     skrll  * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
     19  1.2.4.2     skrll  * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
     20  1.2.4.2     skrll  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
     21  1.2.4.2     skrll  * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
     22  1.2.4.2     skrll  * PURPOSE.
     23  1.2.4.2     skrll  */
     24  1.2.4.2     skrll 
     25  1.2.4.2     skrll #ifndef _CRYPTO_CRYPTOSOFT_H_
     26  1.2.4.2     skrll #define _CRYPTO_CRYPTOSOFT_H_
     27  1.2.4.2     skrll 
     28  1.2.4.2     skrll /* Software session entry */
     29  1.2.4.2     skrll struct swcr_data {
     30  1.2.4.2     skrll 	int		sw_alg;		/* Algorithm */
     31  1.2.4.2     skrll 	union {
     32  1.2.4.2     skrll 		struct {
     33  1.2.4.2     skrll 			u_int8_t	 *SW_ictx;
     34  1.2.4.2     skrll 			u_int8_t	 *SW_octx;
     35  1.2.4.2     skrll 			u_int32_t	 SW_klen;
     36  1.2.4.5  christos 			const struct swcr_auth_hash *SW_axf;
     37  1.2.4.2     skrll 		} SWCR_AUTH;
     38  1.2.4.2     skrll 		struct {
     39  1.2.4.2     skrll 			u_int8_t	 *SW_kschedule;
     40  1.2.4.5  christos 			const struct swcr_enc_xform *SW_exf;
     41  1.2.4.2     skrll 		} SWCR_ENC;
     42  1.2.4.2     skrll 		struct {
     43  1.2.4.2     skrll 			u_int32_t	 SW_size;
     44  1.2.4.5  christos 			const struct swcr_comp_algo *SW_cxf;
     45  1.2.4.2     skrll 		} SWCR_COMP;
     46  1.2.4.2     skrll 	} SWCR_UN;
     47  1.2.4.2     skrll 
     48  1.2.4.2     skrll #define sw_ictx		SWCR_UN.SWCR_AUTH.SW_ictx
     49  1.2.4.2     skrll #define sw_octx		SWCR_UN.SWCR_AUTH.SW_octx
     50  1.2.4.2     skrll #define sw_klen		SWCR_UN.SWCR_AUTH.SW_klen
     51  1.2.4.2     skrll #define sw_axf		SWCR_UN.SWCR_AUTH.SW_axf
     52  1.2.4.2     skrll #define sw_kschedule	SWCR_UN.SWCR_ENC.SW_kschedule
     53  1.2.4.2     skrll #define sw_exf		SWCR_UN.SWCR_ENC.SW_exf
     54  1.2.4.2     skrll #define sw_size		SWCR_UN.SWCR_COMP.SW_size
     55  1.2.4.2     skrll #define sw_cxf		SWCR_UN.SWCR_COMP.SW_cxf
     56  1.2.4.2     skrll 
     57  1.2.4.2     skrll 	struct swcr_data *sw_next;
     58  1.2.4.2     skrll };
     59  1.2.4.2     skrll 
     60  1.2.4.2     skrll #endif /* _CRYPTO_CRYPTO_H_ */
     61