Home | History | Annotate | Download | only in netinet

Lines Matching defs:context

73 	MD5Context context;
75 SHA1_CTX context;
128 MD5Init(&context); /* init context for 1st pass */
129 MD5Update(&context, k_ipad, 64); /* start with inner pad */
130 MD5Update(&context, text, text_len); /* then text of datagram */
131 MD5Final(digest, &context); /* finish up 1st pass */
133 SHA1Init(&context); /* init context for 1st pass */
134 SHA1Update(&context, k_ipad, 64); /* start with inner pad */
135 SHA1Update(&context, text, text_len); /* then text of datagram */
136 SHA1Final(digest, &context); /* finish up 1st pass */
143 MD5Init(&context); /* init context for 2nd pass */
144 MD5Update(&context, k_opad, 64); /* start with outer pad */
145 MD5Update(&context, digest, 16); /* then results of 1st hash */
146 MD5Final(digest, &context); /* finish up 2nd pass */
148 SHA1Init(&context); /* init context for 2nd pass */
149 SHA1Update(&context, k_opad, 64); /* start with outer pad */
150 SHA1Update(&context, digest, 20); /* then results of 1st hash */
151 SHA1Final(digest, &context); /* finish up 2nd pass */
160 MD5Context context;
162 SHA1_CTX context;
222 MD5Init(&context); /* init context for 1st pass */
223 MD5Update(&context, k_ipad, 64); /* start with inner pad */
227 MD5Update(&context, mtod(m_at, char *)+offset,
234 MD5Final(digest, &context); /* finish up 1st pass */
236 SHA1Init(&context); /* init context for 1st pass */
237 SHA1Update(&context, k_ipad, 64); /* start with inner pad */
241 SHA1Update(&context, mtod(m_at, char *)+offset,
248 SHA1Final(digest, &context); /* finish up 1st pass */
255 MD5Init(&context); /* init context for 2nd pass */
256 MD5Update(&context, k_opad, 64); /* start with outer pad */
257 MD5Update(&context, digest, 16); /* then results of 1st hash */
258 MD5Final(digest, &context); /* finish up 2nd pass */
260 SHA1Init(&context); /* init context for 2nd pass */
261 SHA1Update(&context, k_opad, 64); /* start with outer pad */
262 SHA1Update(&context, digest, 20); /* then results of 1st hash */
263 SHA1Final(digest, &context); /* finish up 2nd pass */