xref: /titanic_41/usr/src/uts/common/sys/md5_consts.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) by 1998 Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef	_SYS_MD5_CONSTS_H
28 #define	_SYS_MD5_CONSTS_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /* constants, as provided in RFC 1321 */
37 
38 #define	MD5_CONST_0		(uint32_t)0xd76aa478
39 #define	MD5_CONST_1		(uint32_t)0xe8c7b756
40 #define	MD5_CONST_2		(uint32_t)0x242070db
41 #define	MD5_CONST_3		(uint32_t)0xc1bdceee
42 #define	MD5_CONST_4		(uint32_t)0xf57c0faf
43 #define	MD5_CONST_5		(uint32_t)0x4787c62a
44 #define	MD5_CONST_6		(uint32_t)0xa8304613
45 #define	MD5_CONST_7		(uint32_t)0xfd469501
46 #define	MD5_CONST_8		(uint32_t)0x698098d8
47 #define	MD5_CONST_9		(uint32_t)0x8b44f7af
48 #define	MD5_CONST_10		(uint32_t)0xffff5bb1
49 #define	MD5_CONST_11		(uint32_t)0x895cd7be
50 #define	MD5_CONST_12		(uint32_t)0x6b901122
51 #define	MD5_CONST_13		(uint32_t)0xfd987193
52 #define	MD5_CONST_14		(uint32_t)0xa679438e
53 #define	MD5_CONST_15		(uint32_t)0x49b40821
54 #define	MD5_CONST_16		(uint32_t)0xf61e2562
55 #define	MD5_CONST_17		(uint32_t)0xc040b340
56 #define	MD5_CONST_18		(uint32_t)0x265e5a51
57 #define	MD5_CONST_19		(uint32_t)0xe9b6c7aa
58 #define	MD5_CONST_20		(uint32_t)0xd62f105d
59 #define	MD5_CONST_21		(uint32_t)0x2441453
60 #define	MD5_CONST_22		(uint32_t)0xd8a1e681
61 #define	MD5_CONST_23		(uint32_t)0xe7d3fbc8
62 #define	MD5_CONST_24		(uint32_t)0x21e1cde6
63 #define	MD5_CONST_25		(uint32_t)0xc33707d6
64 #define	MD5_CONST_26		(uint32_t)0xf4d50d87
65 #define	MD5_CONST_27		(uint32_t)0x455a14ed
66 #define	MD5_CONST_28		(uint32_t)0xa9e3e905
67 #define	MD5_CONST_29		(uint32_t)0xfcefa3f8
68 #define	MD5_CONST_30		(uint32_t)0x676f02d9
69 #define	MD5_CONST_31		(uint32_t)0x8d2a4c8a
70 #define	MD5_CONST_32		(uint32_t)0xfffa3942
71 #define	MD5_CONST_33		(uint32_t)0x8771f681
72 #define	MD5_CONST_34		(uint32_t)0x6d9d6122
73 #define	MD5_CONST_35		(uint32_t)0xfde5380c
74 #define	MD5_CONST_36		(uint32_t)0xa4beea44
75 #define	MD5_CONST_37		(uint32_t)0x4bdecfa9
76 #define	MD5_CONST_38		(uint32_t)0xf6bb4b60
77 #define	MD5_CONST_39		(uint32_t)0xbebfbc70
78 #define	MD5_CONST_40		(uint32_t)0x289b7ec6
79 #define	MD5_CONST_41		(uint32_t)0xeaa127fa
80 #define	MD5_CONST_42		(uint32_t)0xd4ef3085
81 #define	MD5_CONST_43		(uint32_t)0x4881d05
82 #define	MD5_CONST_44		(uint32_t)0xd9d4d039
83 #define	MD5_CONST_45		(uint32_t)0xe6db99e5
84 #define	MD5_CONST_46		(uint32_t)0x1fa27cf8
85 #define	MD5_CONST_47		(uint32_t)0xc4ac5665
86 #define	MD5_CONST_48		(uint32_t)0xf4292244
87 #define	MD5_CONST_49		(uint32_t)0x432aff97
88 #define	MD5_CONST_50		(uint32_t)0xab9423a7
89 #define	MD5_CONST_51		(uint32_t)0xfc93a039
90 #define	MD5_CONST_52		(uint32_t)0x655b59c3
91 #define	MD5_CONST_53		(uint32_t)0x8f0ccc92
92 #define	MD5_CONST_54		(uint32_t)0xffeff47d
93 #define	MD5_CONST_55		(uint32_t)0x85845dd1
94 #define	MD5_CONST_56		(uint32_t)0x6fa87e4f
95 #define	MD5_CONST_57		(uint32_t)0xfe2ce6e0
96 #define	MD5_CONST_58		(uint32_t)0xa3014314
97 #define	MD5_CONST_59		(uint32_t)0x4e0811a1
98 #define	MD5_CONST_60		(uint32_t)0xf7537e82
99 #define	MD5_CONST_61		(uint32_t)0xbd3af235
100 #define	MD5_CONST_62		(uint32_t)0x2ad7d2bb
101 #define	MD5_CONST_63		(uint32_t)0xeb86d391
102 
103 /* initialization constants, as given in RFC 1321. used in MD5Init */
104 
105 #define	MD5_INIT_CONST_1	(uint32_t)0x67452301
106 #define	MD5_INIT_CONST_2	(uint32_t)0xefcdab89
107 #define	MD5_INIT_CONST_3	(uint32_t)0x98badcfe
108 #define	MD5_INIT_CONST_4	(uint32_t)0x10325476
109 
110 /* shift constants, as given in RFC 1321.  used in MD5Transform */
111 
112 #define	MD5_SHIFT_11		7
113 #define	MD5_SHIFT_12		12
114 #define	MD5_SHIFT_13		17
115 #define	MD5_SHIFT_14		22
116 #define	MD5_SHIFT_21		5
117 #define	MD5_SHIFT_22		9
118 #define	MD5_SHIFT_23		14
119 #define	MD5_SHIFT_24		20
120 #define	MD5_SHIFT_31		4
121 #define	MD5_SHIFT_32		11
122 #define	MD5_SHIFT_33		16
123 #define	MD5_SHIFT_34		23
124 #define	MD5_SHIFT_41		6
125 #define	MD5_SHIFT_42		10
126 #define	MD5_SHIFT_43		15
127 #define	MD5_SHIFT_44		21
128 
129 #ifdef	__cplusplus
130 }
131 #endif
132 
133 #endif /* _SYS_MD5_CONSTS_H */
134