Changeset 11921
- Timestamp:
- 09/12/2009 10:03:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/compat.php
r11920 r11921 73 73 if (strlen($key) > 64) 74 74 $key = pack($pack, $algo($key)); 75 else if (strlen($key) < 64) 76 75 76 $key = str_pad($key, 64, chr(0)); 77 77 78 78 $ipad = (substr($key, 0, 64) ^ str_repeat(chr(0x36), 64)); 79 79 $opad = (substr($key, 0, 64) ^ str_repeat(chr(0x5C), 64)); 80 80 81 return $algo($opad . pack($pack, $algo($ipad . $data))); 81 $hmac = $algo($opad . pack($pack, $algo($ipad . $data))); 82 83 if ( $raw_output ) 84 return pack( $pack, $hmac ); 85 return $hmac; 82 86 } 83 87
Note: See TracChangeset
for help on using the changeset viewer.