audio: handle special case when going offline during call
[siplcs.git] / src / api / sipe-digest.h
blob79c5cf8c82a12bb4e215d99735b2e3213650daa1
1 /**
2 * @file sipe-digest.h
4 * pidgin-sipe
6 * Copyright (C) 2010 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #define SIPE_DIGEST_HMAC_MD5_LENGTH 16
24 void sipe_digest_hmac_md5(const guchar *key, gsize key_length,
25 const guchar *data, gsize data_length,
26 guchar *digest);
28 #define SIPE_DIGEST_MD4_LENGTH 16
29 void sipe_digest_md4(const guchar *data, gsize length, guchar *digest);
31 #define SIPE_DIGEST_MD5_LENGTH 16
32 void sipe_digest_md5(const guchar *data, gsize length, guchar *digest);
34 #define SIPE_DIGEST_SHA1_LENGTH 20
35 void sipe_digest_sha1(const guchar *data, gsize length, guchar *digest);
37 /* Stream HMAC(SHA1) digest for file transfer */
38 #define SIPE_DIGEST_FILETRANSFER_LENGTH 20
39 gpointer sipe_digest_ft_start(const guchar *sha1_digest);
40 void sipe_digest_ft_update(gpointer context, const guchar *data, gsize length);
41 void sipe_digest_ft_end(gpointer context, guchar *digest);
42 void sipe_digest_ft_destroy(gpointer context);