Lines Matching refs:digest
49 SHA_INT32 digest[8]; /* Message digest */ member
82 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy()
140 S[i] = sha_info->digest[i]; in sha_transform()
219 sha_info->digest[i] = sha_info->digest[i] + S[i]; in sha_transform()
231 sha_info->digest[0] = 0x6A09E667L; in sha_init()
232 sha_info->digest[1] = 0xBB67AE85L; in sha_init()
233 sha_info->digest[2] = 0x3C6EF372L; in sha_init()
234 sha_info->digest[3] = 0xA54FF53AL; in sha_init()
235 sha_info->digest[4] = 0x510E527FL; in sha_init()
236 sha_info->digest[5] = 0x9B05688CL; in sha_init()
237 sha_info->digest[6] = 0x1F83D9ABL; in sha_init()
238 sha_info->digest[7] = 0x5BE0CD19L; in sha_init()
248 sha_info->digest[0] = 0xc1059ed8L; in sha224_init()
249 sha_info->digest[1] = 0x367cd507L; in sha224_init()
250 sha_info->digest[2] = 0x3070dd17L; in sha224_init()
251 sha_info->digest[3] = 0xf70e5939L; in sha224_init()
252 sha_info->digest[4] = 0xffc00b31L; in sha224_init()
253 sha_info->digest[5] = 0x68581511L; in sha224_init()
254 sha_info->digest[6] = 0x64f98fa7L; in sha224_init()
255 sha_info->digest[7] = 0xbefa4fa4L; in sha224_init()
306 sha_final(unsigned char digest[SHA_DIGESTSIZE], SHAobject *sha_info) in sha_final()
337 digest[ 0] = (unsigned char) ((sha_info->digest[0] >> 24) & 0xff); in sha_final()
338 digest[ 1] = (unsigned char) ((sha_info->digest[0] >> 16) & 0xff); in sha_final()
339 digest[ 2] = (unsigned char) ((sha_info->digest[0] >> 8) & 0xff); in sha_final()
340 digest[ 3] = (unsigned char) ((sha_info->digest[0] ) & 0xff); in sha_final()
341 digest[ 4] = (unsigned char) ((sha_info->digest[1] >> 24) & 0xff); in sha_final()
342 digest[ 5] = (unsigned char) ((sha_info->digest[1] >> 16) & 0xff); in sha_final()
343 digest[ 6] = (unsigned char) ((sha_info->digest[1] >> 8) & 0xff); in sha_final()
344 digest[ 7] = (unsigned char) ((sha_info->digest[1] ) & 0xff); in sha_final()
345 digest[ 8] = (unsigned char) ((sha_info->digest[2] >> 24) & 0xff); in sha_final()
346 digest[ 9] = (unsigned char) ((sha_info->digest[2] >> 16) & 0xff); in sha_final()
347 digest[10] = (unsigned char) ((sha_info->digest[2] >> 8) & 0xff); in sha_final()
348 digest[11] = (unsigned char) ((sha_info->digest[2] ) & 0xff); in sha_final()
349 digest[12] = (unsigned char) ((sha_info->digest[3] >> 24) & 0xff); in sha_final()
350 digest[13] = (unsigned char) ((sha_info->digest[3] >> 16) & 0xff); in sha_final()
351 digest[14] = (unsigned char) ((sha_info->digest[3] >> 8) & 0xff); in sha_final()
352 digest[15] = (unsigned char) ((sha_info->digest[3] ) & 0xff); in sha_final()
353 digest[16] = (unsigned char) ((sha_info->digest[4] >> 24) & 0xff); in sha_final()
354 digest[17] = (unsigned char) ((sha_info->digest[4] >> 16) & 0xff); in sha_final()
355 digest[18] = (unsigned char) ((sha_info->digest[4] >> 8) & 0xff); in sha_final()
356 digest[19] = (unsigned char) ((sha_info->digest[4] ) & 0xff); in sha_final()
357 digest[20] = (unsigned char) ((sha_info->digest[5] >> 24) & 0xff); in sha_final()
358 digest[21] = (unsigned char) ((sha_info->digest[5] >> 16) & 0xff); in sha_final()
359 digest[22] = (unsigned char) ((sha_info->digest[5] >> 8) & 0xff); in sha_final()
360 digest[23] = (unsigned char) ((sha_info->digest[5] ) & 0xff); in sha_final()
361 digest[24] = (unsigned char) ((sha_info->digest[6] >> 24) & 0xff); in sha_final()
362 digest[25] = (unsigned char) ((sha_info->digest[6] >> 16) & 0xff); in sha_final()
363 digest[26] = (unsigned char) ((sha_info->digest[6] >> 8) & 0xff); in sha_final()
364 digest[27] = (unsigned char) ((sha_info->digest[6] ) & 0xff); in sha_final()
365 digest[28] = (unsigned char) ((sha_info->digest[7] >> 24) & 0xff); in sha_final()
366 digest[29] = (unsigned char) ((sha_info->digest[7] >> 16) & 0xff); in sha_final()
367 digest[30] = (unsigned char) ((sha_info->digest[7] >> 8) & 0xff); in sha_final()
368 digest[31] = (unsigned char) ((sha_info->digest[7] ) & 0xff); in sha_final()
438 unsigned char digest[SHA_DIGESTSIZE]; in SHA256Type_digest_impl() local
442 sha_final(digest, &temp); in SHA256Type_digest_impl()
443 return PyBytes_FromStringAndSize((const char *)digest, self->digestsize); in SHA256Type_digest_impl()
456 unsigned char digest[SHA_DIGESTSIZE]; in SHA256Type_hexdigest_impl() local
461 sha_final(digest, &temp); in SHA256Type_hexdigest_impl()
463 return _Py_strhex((const char *)digest, self->digestsize); in SHA256Type_hexdigest_impl()