mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-05 18:44:06 +08:00
update 2026-05-10 09:48:30
This commit is contained in:
1 parent
95ac96413e
commit
0b362674f1
6244 files changed
+2992248
No files matched your search
@@ -0,0 +1,17 @@
|
||||
--- a/hmac_md5.c
|
||||
+++ b/hmac_md5.c
|
||||
@@ -356,10 +356,10 @@ caddr_t digest; /* caller di
|
||||
*/
|
||||
|
||||
/* start out by storing key in pads */
|
||||
- bzero(k_ipad, sizeof k_ipad);
|
||||
- bzero(k_opad, sizeof k_opad);
|
||||
- bcopy(key, k_ipad, key_len);
|
||||
- bcopy( key, k_opad, key_len);
|
||||
+ memset(k_ipad, 0, sizeof k_ipad);
|
||||
+ memset(k_opad, 0, sizeof k_opad);
|
||||
+ memcpy(k_ipad, key, key_len);
|
||||
+ memcpy(k_opad, key, key_len);
|
||||
|
||||
/* XOR key with ipad and opad values */
|
||||
for(i = 0; i < 64; ++i)
|
||||
Reference in new issue
Block a user