Searched defs:digest (Results 1 - 3 of 3) sorted by relevance

/ast/src/lib/libsum/
H A Dsum-sha1.c32 uint8_t digest[20]; member in struct:Sha1_s
264 * Add padding and return the message digest.
290 for (i = 0; i < elementsof(sha->digest); i++)
292 sha->digest[i] = (unsigned char)((sha->state[i >> 2] >> ((3 - (i & 3)) * 8)) & 255);
293 sha->digest_sum[i] ^= sha->digest[i];
308 d = (flags & SUM_TOTAL) ? sha->digest_sum : sha->digest;
309 for (n = 0; n < elementsof(sha->digest); n++)
319 data->size = elementsof(sha->digest);
321 data->buf = sha->digest;
H A Dsum-md5.c45 unsigned char digest[16]; /* final digest */ member in struct:Md5_s
323 /* store state in digest */
324 md5_encode(context->digest, context->state, sizeof(context->digest));
327 for (index = 0; index < elementsof(context->digest); index++)
328 context->digest_sum[index] ^= context->digest[index];
340 d = (flags & SUM_TOTAL) ? x->digest_sum : x->digest;
341 for (n = 0; n < elementsof(x->digest); n++)
351 data->size = elementsof(x->digest);
[all...]
H A Dsum-sha2.c448 sha2_byte digest[SHA256_DIGEST_LENGTH]; member in struct:Sha256_s
753 sha2_word32* d = (sha2_word32*)sha->digest;
760 MEMCPY_BCOPY(sha->digest, sha->state, SHA256_DIGEST_LENGTH);
765 sha->digest_sum[i] ^= sha->digest[i];
781 d = (flags & SUM_TOTAL) ? sha->digest_sum : sha->digest;
795 data->buf = sha->digest;
817 sha2_byte digest[SHA512_DIGEST_LENGTH]; member in struct:Sha512_s
1113 sha2_word64* d = (sha2_word64*)sha->digest;
1121 MEMCPY_BCOPY(sha->digest, sha->state, SHA512_DIGEST_LENGTH);
1126 sha->digest_sum[i] ^= sha->digest[
[all...]

Completed in 24 milliseconds