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 __CTRMODE_H__ 21 #define __CTRMODE_H__ 22 23 /* Encrypt or decrypt data in AES-CTR mode. (The operations are the 24 * same.) We roll our own here just to double-check that the calls 25 * libotr makes to libgcrypt are doing the right thing. */ 26 void aes_ctr_crypt(unsigned char *out, const unsigned char *in, size_t len, 27 unsigned char key[16], unsigned char ctrtop[8]); 28 29 #endif 30