Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109644946
D31945.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
667 B
Referenced Files
None
Subscribers
None
D31945.diff
View Options
diff --git a/sys/crypto/sha2/sha256c.c b/sys/crypto/sha2/sha256c.c
--- a/sys/crypto/sha2/sha256c.c
+++ b/sys/crypto/sha2/sha256c.c
@@ -138,7 +138,11 @@
* the 512-bit input block to produce a new state.
*/
static void
+#if defined(ARM64_SHA2)
SHA256_Transform_c(uint32_t * state, const unsigned char block[64])
+#else
+SHA256_Transform(uint32_t * state, const unsigned char block[64])
+#endif
{
uint32_t W[64];
uint32_t S[8];
@@ -213,12 +217,6 @@
return (SHA256_Transform_c);
}
-#else
-static void
-SHA256_Transform(uint32_t * state, const unsigned char block[64])
-{
- SHA256_Transform_c(state, block);
-}
#endif
static unsigned char PAD[64] = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 8, 10:06 PM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16533881
Default Alt Text
D31945.diff (667 B)
Attached To
Mode
D31945: libmd: Only define SHA256_Transform_c when using the ARM64 ifunc.
Attached
Detach File
Event Timeline
Log In to Comment