Lines Matching refs:digest
48 SHA_INT32 digest[5]; /* Message digest */ member
80 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy()
175 A = sha_info->digest[0]; in sha_transform()
176 B = sha_info->digest[1]; in sha_transform()
177 C = sha_info->digest[2]; in sha_transform()
178 D = sha_info->digest[3]; in sha_transform()
179 E = sha_info->digest[4]; in sha_transform()
190 sha_info->digest[0] += E; in sha_transform()
191 sha_info->digest[1] += T; in sha_transform()
192 sha_info->digest[2] += A; in sha_transform()
193 sha_info->digest[3] += B; in sha_transform()
194 sha_info->digest[4] += C; in sha_transform()
211 sha_info->digest[0] += A; in sha_transform()
212 sha_info->digest[1] += B; in sha_transform()
213 sha_info->digest[2] += C; in sha_transform()
214 sha_info->digest[3] += D; in sha_transform()
215 sha_info->digest[4] += E; in sha_transform()
226 sha_info->digest[0] = 0x67452301L; in sha_init()
227 sha_info->digest[1] = 0xefcdab89L; in sha_init()
228 sha_info->digest[2] = 0x98badcfeL; in sha_init()
229 sha_info->digest[3] = 0x10325476L; in sha_init()
230 sha_info->digest[4] = 0xc3d2e1f0L; in sha_init()
279 sha_final(unsigned char digest[20], SHAobject *sha_info) in sha_final()
310 digest[ 0] = (unsigned char) ((sha_info->digest[0] >> 24) & 0xff); in sha_final()
311 digest[ 1] = (unsigned char) ((sha_info->digest[0] >> 16) & 0xff); in sha_final()
312 digest[ 2] = (unsigned char) ((sha_info->digest[0] >> 8) & 0xff); in sha_final()
313 digest[ 3] = (unsigned char) ((sha_info->digest[0] ) & 0xff); in sha_final()
314 digest[ 4] = (unsigned char) ((sha_info->digest[1] >> 24) & 0xff); in sha_final()
315 digest[ 5] = (unsigned char) ((sha_info->digest[1] >> 16) & 0xff); in sha_final()
316 digest[ 6] = (unsigned char) ((sha_info->digest[1] >> 8) & 0xff); in sha_final()
317 digest[ 7] = (unsigned char) ((sha_info->digest[1] ) & 0xff); in sha_final()
318 digest[ 8] = (unsigned char) ((sha_info->digest[2] >> 24) & 0xff); in sha_final()
319 digest[ 9] = (unsigned char) ((sha_info->digest[2] >> 16) & 0xff); in sha_final()
320 digest[10] = (unsigned char) ((sha_info->digest[2] >> 8) & 0xff); in sha_final()
321 digest[11] = (unsigned char) ((sha_info->digest[2] ) & 0xff); in sha_final()
322 digest[12] = (unsigned char) ((sha_info->digest[3] >> 24) & 0xff); in sha_final()
323 digest[13] = (unsigned char) ((sha_info->digest[3] >> 16) & 0xff); in sha_final()
324 digest[14] = (unsigned char) ((sha_info->digest[3] >> 8) & 0xff); in sha_final()
325 digest[15] = (unsigned char) ((sha_info->digest[3] ) & 0xff); in sha_final()
326 digest[16] = (unsigned char) ((sha_info->digest[4] >> 24) & 0xff); in sha_final()
327 digest[17] = (unsigned char) ((sha_info->digest[4] >> 16) & 0xff); in sha_final()
328 digest[18] = (unsigned char) ((sha_info->digest[4] >> 8) & 0xff); in sha_final()
329 digest[19] = (unsigned char) ((sha_info->digest[4] ) & 0xff); in sha_final()
378 unsigned char digest[SHA_DIGESTSIZE]; in SHA_digest() local
382 sha_final(digest, &temp); in SHA_digest()
383 return PyString_FromStringAndSize((const char *)digest, sizeof(digest)); in SHA_digest()
392 unsigned char digest[SHA_DIGESTSIZE]; in SHA_hexdigest() local
400 sha_final(digest, &temp); in SHA_hexdigest()
403 retval = PyString_FromStringAndSize(NULL, sizeof(digest) * 2); in SHA_hexdigest()
413 for(i=j=0; i<sizeof(digest); i++) { in SHA_hexdigest()
415 c = (digest[i] >> 4) & 0xf; in SHA_hexdigest()
418 c = (digest[i] & 0xf); in SHA_hexdigest()