~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to .pc/03_revert_git_single_include_error.patch/glib/ghmac.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ghmac.h - secure data hashing
2
 
 *
3
 
 * Copyright (C) 2011  Stef Walter  <stefw@collabora.co.uk>
4
 
 *
5
 
 * This library is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU Library General Public
7
 
 * License as published by the Free Software Foundation; either
8
 
 * version 2 of the License, or (at your option) any later version.
9
 
 *
10
 
 * This library 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 GNU
13
 
 * Library General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU Library General Public
16
 
 * License along with this library; if not, write to the
17
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
 
 * Boston, MA 02111-1307, USA.
19
 
 */
20
 
 
21
 
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
22
 
#error "Only <glib.h> can be included directly."
23
 
#endif
24
 
 
25
 
#ifndef __G_HMAC_H__
26
 
#define __G_HMAC_H__
27
 
 
28
 
#include <glib/gtypes.h>
29
 
#include "gchecksum.h"
30
 
 
31
 
G_BEGIN_DECLS
32
 
 
33
 
/**
34
 
 * GHmac:
35
 
 *
36
 
 * An opaque structure representing a HMAC operation.
37
 
 * To create a new GHmac, use g_hmac_new(). To free
38
 
 * a GHmac, use g_hmac_unref().
39
 
 *
40
 
 * Since: 2.30
41
 
 */
42
 
typedef struct _GHmac       GHmac;
43
 
 
44
 
GLIB_AVAILABLE_IN_2_30
45
 
GHmac *               g_hmac_new                    (GChecksumType  digest_type,
46
 
                                                     const guchar  *key,
47
 
                                                     gsize          key_len);
48
 
GLIB_AVAILABLE_IN_2_30
49
 
GHmac *               g_hmac_copy                   (const GHmac   *hmac);
50
 
GLIB_AVAILABLE_IN_2_30
51
 
GHmac *               g_hmac_ref                    (GHmac         *hmac);
52
 
GLIB_AVAILABLE_IN_2_30
53
 
void                  g_hmac_unref                  (GHmac         *hmac);
54
 
GLIB_AVAILABLE_IN_2_30
55
 
void                  g_hmac_update                 (GHmac         *hmac,
56
 
                                                     const guchar  *data,
57
 
                                                     gssize         length);
58
 
GLIB_AVAILABLE_IN_2_30
59
 
const gchar *         g_hmac_get_string             (GHmac         *hmac);
60
 
GLIB_AVAILABLE_IN_2_30
61
 
void                  g_hmac_get_digest             (GHmac         *hmac,
62
 
                                                     guint8        *buffer,
63
 
                                                     gsize         *digest_len);
64
 
 
65
 
GLIB_AVAILABLE_IN_2_30
66
 
gchar                *g_compute_hmac_for_data       (GChecksumType  digest_type,
67
 
                                                     const guchar  *key,
68
 
                                                     gsize          key_len,
69
 
                                                     const guchar  *data,
70
 
                                                     gsize          length);
71
 
GLIB_AVAILABLE_IN_2_30
72
 
gchar                *g_compute_hmac_for_string     (GChecksumType  digest_type,
73
 
                                                     const guchar  *key,
74
 
                                                     gsize          key_len,
75
 
                                                     const gchar   *str,
76
 
                                                     gssize         length);
77
 
 
78
 
G_END_DECLS
79
 
 
80
 
#endif /* __G_CHECKSUM_H__ */