1 /* 2 * Off-the-Record Messaging Toolkit 3 * Copyright (C) 2004-2012 Ian Goldberg, Chris Alexander, Nikita Borisov 4 * <otr@cypherpunks.ca> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of version 2 of the GNU General Public License as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 #ifndef __SHA1HMAC_H__ 21 #define __SHA1HMAC_H__ 22 23 /* Implementation of SHA1-HMAC. We're rolling our own just to 24 * double-check that the calls libotr makes to libgcrypt are in fact 25 * doing the right thing. */ 26 void sha1hmac(unsigned char digest[20], unsigned char key[20], 27 unsigned char *data, size_t datalen); 28 29 #endif 30