The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

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

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*      $FreeBSD: releng/5.2/sys/opencrypto/cryptosoft.h 104476 2002-10-04 20:31:23Z sam $      */
    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_int32_t        SW_klen;
   36                         struct auth_hash *SW_axf;
   37                 } SWCR_AUTH;
   38                 struct {
   39                         u_int8_t         *SW_kschedule;
   40                         struct enc_xform *SW_exf;
   41                 } SWCR_ENC;
   42                 struct {
   43                         u_int32_t        SW_size;
   44                         struct comp_algo *SW_cxf;
   45                 } SWCR_COMP;
   46         } SWCR_UN;
   47 
   48 #define sw_ictx         SWCR_UN.SWCR_AUTH.SW_ictx
   49 #define sw_octx         SWCR_UN.SWCR_AUTH.SW_octx
   50 #define sw_klen         SWCR_UN.SWCR_AUTH.SW_klen
   51 #define sw_axf          SWCR_UN.SWCR_AUTH.SW_axf
   52 #define sw_kschedule    SWCR_UN.SWCR_ENC.SW_kschedule
   53 #define sw_exf          SWCR_UN.SWCR_ENC.SW_exf
   54 #define sw_size         SWCR_UN.SWCR_COMP.SW_size
   55 #define sw_cxf          SWCR_UN.SWCR_COMP.SW_cxf
   56 
   57         struct swcr_data *sw_next;
   58 };
   59 
   60 #ifdef _KERNEL
   61 extern u_int8_t hmac_ipad_buffer[64];
   62 extern u_int8_t hmac_opad_buffer[64];
   63 #endif /* _KERNEL */
   64 
   65 #endif /* _CRYPTO_CRYPTO_H_ */

Cache object: a4db2006eabffbb1672d5622ae30e594


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


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