This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* taken direct from rfc2104 implementation and modified for suitable use
use the microsoft hmacmd5 init method because the key is 16 bytes.
************************************************************/
-void hmac_md5( unsigned char key[16], unsigned char *data, int data_len, unsigned char *digest)
+void hmac_md5( unsigned char key[16], const unsigned char *data, int data_len,
+ unsigned char *digest)
{
HMACMD5Context ctx;
hmac_md5_init_limK_to_64(key, 16, &ctx);