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/xform.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 /*      $NetBSD: xform.h,v 1.9.20.1 2009/05/03 17:24:45 snj Exp $ */
    2 /*      $FreeBSD: src/sys/opencrypto/xform.h,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $    */
    3 /*      $OpenBSD: xform.h,v 1.10 2002/04/22 23:10:09 deraadt Exp $      */
    4 
    5 /*
    6  * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
    7  *
    8  * This code was written by Angelos D. Keromytis in Athens, Greece, in
    9  * February 2000. Network Security Technologies Inc. (NSTI) kindly
   10  * supported the development of this code.
   11  *
   12  * Copyright (c) 2000 Angelos D. Keromytis
   13  *
   14  * Permission to use, copy, and modify this software with or without fee
   15  * is hereby granted, provided that this entire notice is included in
   16  * all source code copies of any software which is or includes a copy or
   17  * modification of this software.
   18  *
   19  * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
   20  * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
   21  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
   22  * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
   23  * PURPOSE.
   24  */
   25 
   26 #ifndef _CRYPTO_XFORM_H_
   27 #define _CRYPTO_XFORM_H_
   28 
   29 #include <sys/md5.h>
   30 #include <sys/sha1.h>
   31 #include <sys/sha2.h>
   32 #include <sys/rmd160.h>
   33 
   34 /* Declarations */
   35 struct auth_hash {
   36         int type;
   37         const char *name;
   38         u_int16_t keysize;
   39         u_int16_t hashsize;
   40         u_int16_t authsize;
   41         u_int16_t ctxsize;
   42 };
   43 
   44 /* Provide array-limit for clients (e.g., netipsec) */
   45 #define AH_ALEN_MAX     20      /* max authenticator hash length */
   46 
   47 struct enc_xform {
   48         int type;
   49         const char *name;
   50         u_int16_t blocksize;
   51         u_int16_t minkey, maxkey;
   52 };
   53 
   54 struct comp_algo {
   55         int type;
   56         const char *name;
   57         size_t minlen;
   58 };
   59 
   60 extern const u_int8_t hmac_ipad_buffer[64];
   61 extern const u_int8_t hmac_opad_buffer[64];
   62 
   63 extern struct enc_xform enc_xform_null;
   64 extern struct enc_xform enc_xform_des;
   65 extern struct enc_xform enc_xform_3des;
   66 extern struct enc_xform enc_xform_blf;
   67 extern struct enc_xform enc_xform_cast5;
   68 extern struct enc_xform enc_xform_skipjack;
   69 extern struct enc_xform enc_xform_rijndael128;
   70 extern struct enc_xform enc_xform_arc4;
   71 
   72 extern struct auth_hash auth_hash_null;
   73 extern struct auth_hash auth_hash_md5;
   74 extern struct auth_hash auth_hash_sha1;
   75 extern struct auth_hash auth_hash_key_md5;
   76 extern struct auth_hash auth_hash_key_sha1;
   77 extern struct auth_hash auth_hash_hmac_md5;
   78 extern struct auth_hash auth_hash_hmac_sha1;
   79 extern struct auth_hash auth_hash_hmac_ripemd_160;
   80 extern struct auth_hash auth_hash_hmac_md5_96;
   81 extern struct auth_hash auth_hash_hmac_sha1_96;
   82 extern struct auth_hash auth_hash_hmac_ripemd_160_96;
   83 extern struct auth_hash auth_hash_hmac_sha2_256;
   84 extern struct auth_hash auth_hash_hmac_sha2_384;
   85 extern struct auth_hash auth_hash_hmac_sha2_512;
   86 
   87 extern struct comp_algo comp_algo_deflate;
   88 extern struct comp_algo comp_algo_gzip;
   89 
   90 #ifdef _KERNEL
   91 #include <sys/malloc.h>
   92 MALLOC_DECLARE(M_XDATA);
   93 #endif
   94 #endif /* _CRYPTO_XFORM_H_ */

Cache object: fbaa181028f267a03703c033c09c4e64


[ 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.