Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151502146
D54600.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D54600.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
@@ -206,12 +206,8 @@
DEFINE_UIFUNC(static, void, SHA256_Transform,
(uint32_t * state, const unsigned char block[64]))
{
- u_long hwcap;
-
- if (elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)) == 0) {
- if ((hwcap & HWCAP_SHA2) != 0)
- return (SHA256_Transform_arm64);
- }
+ if ((at_hwcap & HWCAP_SHA2) != 0)
+ return (SHA256_Transform_arm64);
return (SHA256_Transform_c);
}
diff --git a/sys/crypto/sha2/sha512c.c b/sys/crypto/sha2/sha512c.c
--- a/sys/crypto/sha2/sha512c.c
+++ b/sys/crypto/sha2/sha512c.c
@@ -236,13 +236,8 @@
DEFINE_UIFUNC(static, void, SHA512_Transform,
(uint64_t * state, const unsigned char block[SHA512_BLOCK_LENGTH]))
{
- u_long hwcap;
-
- if (elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)) == 0) {
- if ((hwcap & HWCAP_SHA512) != 0) {
- return (SHA512_Transform_arm64);
- }
- }
+ if ((at_hwcap & HWCAP_SHA512) != 0)
+ return (SHA512_Transform_arm64);
return (SHA512_Transform_c);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 9:00 PM (13 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31171349
Default Alt Text
D54600.diff (1 KB)
Attached To
Mode
D54600: crypto: Update sha256 and sha512 ifuncs to use passed HWCAP flags
Attached
Detach File
Event Timeline
Log In to Comment