ASF Bugzilla – Attachment 25199 Details for
Bug 49011
[PATCH] Speed up MD5 on Little Endian Machines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
MD5 speedup patch
md5.patch (text/plain), 974 bytes, created by
Stefan Fuhrmann
on 2010-03-28 14:27:42 UTC
(
hide
)
Description:
MD5 speedup patch
Filename:
MIME Type:
Creator:
Stefan Fuhrmann
Created:
2010-03-28 14:27:42 UTC
Size:
974 bytes
patch
obsolete
>Index: crypto/apr_md5.c >=================================================================== >--- crypto/apr_md5.c (revision 928399) >+++ crypto/apr_md5.c (working copy) >@@ -347,10 +347,15 @@ > /* MD5 basic transformation. Transforms state based on block. */ > static void MD5Transform(apr_uint32_t state[4], const unsigned char block[64]) > { >+#if !APR_IS_BIGENDIAN >+ apr_uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; >+ const apr_uint32_t *x = (const apr_uint32_t*)(block); >+#else > apr_uint32_t a = state[0], b = state[1], c = state[2], d = state[3], > x[APR_MD5_DIGESTSIZE]; > > Decode(x, block, 64); >+#endif > > /* Round 1 */ > FF(a, b, c, d, x[0], S11, 0xd76aa478); /* 1 */ >@@ -429,8 +434,10 @@ > state[2] += c; > state[3] += d; > >+#if APR_IS_BIGENDIAN > /* Zeroize sensitive information. */ > memset(x, 0, sizeof(x)); >+#endif > } > > /* Encodes input (apr_uint32_t) into output (unsigned char). Assumes len is
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49011
: 25199