/* $NetBSD: cryptosoft.h,v 1.2 2003/08/27 00:20:56 thorpej Exp $ */ /* $OpenBSD: cryptosoft.h,v 1.10 2002/04/22 23:10:09 deraadt Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * * This code was written by Angelos D. Keromytis in Athens, Greece, in * February 2000. Network Security Technologies Inc. (NSTI) kindly * supported the development of this code. * * Copyright (c) 2000 Angelos D. Keromytis * * Permission to use, copy, and modify this software with or without fee * is hereby granted, provided that this entire notice is included in * all source code copies of any software which is or includes a copy or * modification of this software. * * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR * PURPOSE. */ #ifndef _CRYPTO_CRYPTOSOFT_H_ #define _CRYPTO_CRYPTOSOFT_H_ /* Software session entry */ struct swcr_data { int sw_alg; /* Algorithm */ union { struct { u_int8_t *SW_ictx; u_int8_t *SW_octx; u_int32_t SW_klen; struct auth_hash *SW_axf; } SWCR_AUTH; struct { u_int8_t *SW_kschedule; struct enc_xform *SW_exf; } SWCR_ENC; struct { u_int32_t SW_size; struct comp_algo *SW_cxf; } SWCR_COMP; } SWCR_UN; #define sw_ictx SWCR_UN.SWCR_AUTH.SW_ictx #define sw_octx SWCR_UN.SWCR_AUTH.SW_octx #define sw_klen SWCR_UN.SWCR_AUTH.SW_klen #define sw_axf SWCR_UN.SWCR_AUTH.SW_axf #define sw_kschedule SWCR_UN.SWCR_ENC.SW_kschedule #define sw_exf SWCR_UN.SWCR_ENC.SW_exf #define sw_size SWCR_UN.SWCR_COMP.SW_size #define sw_cxf SWCR_UN.SWCR_COMP.SW_cxf struct swcr_data *sw_next; }; #ifdef _KERNEL extern const u_int8_t hmac_ipad_buffer[64]; extern const u_int8_t hmac_opad_buffer[64]; void swcr_init(void); #endif /* _KERNEL */ #endif /* _CRYPTO_CRYPTO_H_ */ nput class='txt' type='search' size='10' name='q' value=''/>
path: root/usr.bin/paste
AgeCommit message (Expand)Author
2013-04-07Remove second NetBSD RCS Id.wiz
2013-04-07 * Create separate section with macro for EXIT STATUSjdf
2011-09-06static + __deadjoerg
2009-04-14Enable WARNS=4 by default for usr.bin, except for:lukem
2009-04-07Null-terminate the delimiter list string after processing escapesdholland
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2007-01-17Remove duplicate #includeshubertf
2006-04-01cast line_len to (int) to avoid warn.rtr
2006-04-01revert previous to previous as it was correctrtr
2006-04-01change printf format from "%.*s" to "%.8s"rtr
2006-03-31Rewrite parallel() so that it uses fgetln() instead of fgets() so thatdsl
2006-03-31KNF prior to fixing all the buffer overruns....dsl
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
2001-12-01Whitespace cleanup.wiz