17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * include/krb5/crc-32.h
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * Copyright 1989,1990 by the Massachusetts Institute of Technology.
57c478bd9Sstevel@tonic-gate  * All Rights Reserved.
67c478bd9Sstevel@tonic-gate  *
77c478bd9Sstevel@tonic-gate  * Export of this software from the United States of America may
87c478bd9Sstevel@tonic-gate  *   require a specific license from the United States Government.
97c478bd9Sstevel@tonic-gate  *   It is the responsibility of any person or organization contemplating
107c478bd9Sstevel@tonic-gate  *   export to obtain such a license before exporting.
11*55fea89dSDan Cross  *
127c478bd9Sstevel@tonic-gate  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
137c478bd9Sstevel@tonic-gate  * distribute this software and its documentation for any purpose and
147c478bd9Sstevel@tonic-gate  * without fee is hereby granted, provided that the above copyright
157c478bd9Sstevel@tonic-gate  * notice appear in all copies and that both that copyright notice and
167c478bd9Sstevel@tonic-gate  * this permission notice appear in supporting documentation, and that
177c478bd9Sstevel@tonic-gate  * the name of M.I.T. not be used in advertising or publicity pertaining
187c478bd9Sstevel@tonic-gate  * to distribution of the software without specific, written prior
19159d09a2SMark Phalan  * permission.  Furthermore if you modify this software you must label
20159d09a2SMark Phalan  * your software as modified software and not distribute it in such a
21159d09a2SMark Phalan  * fashion that it might be confused with the original M.I.T. software.
22159d09a2SMark Phalan  * M.I.T. makes no representations about the suitability of
237c478bd9Sstevel@tonic-gate  * this software for any purpose.  It is provided "as is" without express
247c478bd9Sstevel@tonic-gate  * or implied warranty.
25*55fea89dSDan Cross  *
267c478bd9Sstevel@tonic-gate  *
277c478bd9Sstevel@tonic-gate  * Definitions for the CRC-32 checksum
287c478bd9Sstevel@tonic-gate  */
297c478bd9Sstevel@tonic-gate 
30159d09a2SMark Phalan /*
31159d09a2SMark Phalan  * Copyright (C) 1998 by the FundsXpress, INC.
32*55fea89dSDan Cross  *
33159d09a2SMark Phalan  * All rights reserved.
34*55fea89dSDan Cross  *
35159d09a2SMark Phalan  * Export of this software from the United States of America may require
36159d09a2SMark Phalan  * a specific license from the United States Government.  It is the
37159d09a2SMark Phalan  * responsibility of any person or organization contemplating export to
38159d09a2SMark Phalan  * obtain such a license before exporting.
39*55fea89dSDan Cross  *
40159d09a2SMark Phalan  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
41159d09a2SMark Phalan  * distribute this software and its documentation for any purpose and
42159d09a2SMark Phalan  * without fee is hereby granted, provided that the above copyright
43159d09a2SMark Phalan  * notice appear in all copies and that both that copyright notice and
44159d09a2SMark Phalan  * this permission notice appear in supporting documentation, and that
45159d09a2SMark Phalan  * the name of FundsXpress. not be used in advertising or publicity pertaining
46159d09a2SMark Phalan  * to distribution of the software without specific, written prior
47159d09a2SMark Phalan  * permission.  FundsXpress makes no representations about the suitability of
48159d09a2SMark Phalan  * this software for any purpose.  It is provided "as is" without express
49159d09a2SMark Phalan  * or implied warranty.
50*55fea89dSDan Cross  *
51159d09a2SMark Phalan  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
52159d09a2SMark Phalan  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
53159d09a2SMark Phalan  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
54159d09a2SMark Phalan  */
55159d09a2SMark Phalan 
567c478bd9Sstevel@tonic-gate 
577c478bd9Sstevel@tonic-gate #ifndef KRB5_CRC32__
587c478bd9Sstevel@tonic-gate #define KRB5_CRC32__
597c478bd9Sstevel@tonic-gate 
607c478bd9Sstevel@tonic-gate #define CRC32_CKSUM_LENGTH	4
617c478bd9Sstevel@tonic-gate 
627c478bd9Sstevel@tonic-gate void
63159d09a2SMark Phalan mit_crc32 (const krb5_pointer in, size_t in_length, unsigned long *c);
64505d05c7Sgtb 
65505d05c7Sgtb #ifdef CRC32_SHIFT4
66505d05c7Sgtb void mit_crc32_shift4(const krb5_pointer /* in */,
67159d09a2SMark Phalan 		      const size_t /* in_length */,
68159d09a2SMark Phalan 		      unsigned long * /* cksum */);
69505d05c7Sgtb #endif
707c478bd9Sstevel@tonic-gate 
717c478bd9Sstevel@tonic-gate #endif /* KRB5_CRC32__ */
72