/crypt/ |
A D | md5test-giant.c | 43 size_t len; member 65 printf ("test %s with size %zd failed\n", id, len); in report() 73 test_single (void *buf, size_t len, const char *ref) in test_single() argument 79 __md5_process_bytes (buf, len, &ctx); in test_single() 82 return report ("single", sum, len, ref); in test_single() 88 test_double (void *buf, size_t len, const char *ref) in test_double() argument 94 if (len >= CONST_2G) in test_double() 100 __md5_process_bytes (buf, len, &ctx); in test_double() 104 return report ("double", sum, len, ref); in test_double() 124 if (test_single (buf, test_data[j].len, test_data[j].ref)) in do_test() [all …]
|
A D | sha256.c | 150 size_t add = 128 - left_over > len ? len : 128 - left_over; in __sha256_process_bytes() 166 len -= add; in __sha256_process_bytes() 170 if (len >= 64) in __sha256_process_bytes() 181 while (len > 64) in __sha256_process_bytes() 185 len -= 64; in __sha256_process_bytes() 190 __sha256_process_block (buffer, len & ~63, ctx); in __sha256_process_bytes() 191 buffer = (const char *) buffer + (len & ~63); in __sha256_process_bytes() 192 len &= 63; in __sha256_process_bytes() 197 if (len > 0) in __sha256_process_bytes() 201 memcpy (&ctx->buffer[left_over], buffer, len); in __sha256_process_bytes() [all …]
|
A D | md5.c | 195 md5_process_bytes (buffer, len, &ctx); in md5_buffer() 210 size_t add = 128 - left_over > len ? len : 128 - left_over; in md5_process_bytes() 226 len -= add; in md5_process_bytes() 230 if (len >= 64) in md5_process_bytes() 241 while (len > 64) in md5_process_bytes() 245 len -= 64; in md5_process_bytes() 250 __md5_process_block (buffer, len & ~63, ctx); in md5_process_bytes() 251 buffer = (const char *) buffer + (len & ~63); in md5_process_bytes() 252 len &= 63; in md5_process_bytes() 257 if (len > 0) in md5_process_bytes() [all …]
|
A D | sha512.c | 173 size_t add = 256 - left_over > len ? len : 256 - left_over; in __sha512_process_bytes() 189 len -= add; in __sha512_process_bytes() 193 if (len >= 128) in __sha512_process_bytes() 204 while (len > 128) in __sha512_process_bytes() 209 len -= 128; in __sha512_process_bytes() 214 __sha512_process_block (buffer, len & ~127, ctx); in __sha512_process_bytes() 215 buffer = (const char *) buffer + (len & ~127); in __sha512_process_bytes() 216 len &= 127; in __sha512_process_bytes() 221 if (len > 0) in __sha512_process_bytes() 225 memcpy (&ctx->buffer[left_over], buffer, len); in __sha512_process_bytes() [all …]
|
A D | md5.h | 105 extern void __md5_process_block (const void *buffer, size_t len, 112 extern void __md5_process_bytes (const void *buffer, size_t len, 143 extern void *__md5_buffer (const char *buffer, size_t len,
|
A D | sha512-block.c | 6 __sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx) in __sha512_process_block() argument 9 size_t nwords = len / sizeof (uint64_t); in __sha512_process_block() 23 ctx->total128 += len; in __sha512_process_block() 25 uint64_t lolen = len; in __sha512_process_block() 27 ctx->total[TOTAL128_high] += ((len >> 31 >> 31 >> 2) in __sha512_process_block()
|
A D | sha256-block.c | 6 __sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) in __sha256_process_block() argument 9 size_t nwords = len / sizeof (uint32_t); in __sha256_process_block() 22 ctx->total64 += len; in __sha256_process_block()
|
A D | sha256.h | 58 extern void __sha256_process_bytes (const void *buffer, size_t len,
|
A D | sha512.h | 61 extern void __sha512_process_bytes (const void *buffer, size_t len,
|
A D | md5-crypt.c | 51 # define md5_process_bytes(buf, len, ctxp, nss_ctxp) \ argument 52 NSSLOWHASH_Update (nss_ctxp, (const unsigned char *) buf, len) 68 # define md5_process_bytes(buf, len, ctxp, nss_ctxp) \ argument 69 __md5_process_bytes(buf, len, ctxp)
|
A D | md5-block.c | 14 __md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx) in __md5_process_block() argument 18 size_t nwords = len / sizeof (md5_uint32); in __md5_process_block() 24 md5_uint32 lolen = len; in __md5_process_block() 30 ctx->total[1] += (len >> 31 >> 1) + (ctx->total[0] < lolen); in __md5_process_block()
|
A D | sha256-crypt.c | 52 # define sha256_process_bytes(buf, len, ctxp, nss_ctxp) \ argument 53 NSSLOWHASH_Update (nss_ctxp, (const unsigned char *) buf, len) 69 # define sha256_process_bytes(buf, len, ctxp, nss_ctxp) \ argument 70 __sha256_process_bytes(buf, len, ctxp)
|
A D | sha512-crypt.c | 52 # define sha512_process_bytes(buf, len, ctxp, nss_ctxp) \ argument 53 NSSLOWHASH_Update (nss_ctxp, (const unsigned char *) buf, len) 69 # define sha512_process_bytes(buf, len, ctxp, nss_ctxp) \ argument 70 __sha512_process_bytes(buf, len, ctxp)
|