[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]

FreeBSD/Linux Kernel Cross Reference
sys/opencrypto/cryptosoft.h

Version: -  FREEBSD  -  FREEBSD7  -  FREEBSD70  -  FREEBSD6  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  OPENSOLARIS  -  minix-3-1-1  -  TRUSTEDBSD-SEBSD  -  FREEBSD-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  excerpts  -  bigexcerpts 

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

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.