hmac.c revision d8361cc8576d9ede93a037f9b96f2a3f9b7e9054
/*
* HMAC (RFC-2104) implementation.
*
* Copyright (c) 2004 Andrey Panin <pazke@donpac.ru>
* Copyright (c) 2011-2012 Florian Zeitz <florob@babelmonkeys.de>
*
* This software is released under the MIT license.
*/
#include "lib.h"
#include "hmac.h"
#include "safe-memset.h"
{
int i;
unsigned char k_ipad[64];
unsigned char k_opad[64];
if (key_len > 64) {
}
for (i = 0; i < 64; i++) {
k_ipad[i] ^= 0x36;
k_opad[i] ^= 0x5c;
}
}
{
}