~ubuntu-branches/ubuntu/natty/gnome-keyring/natty

« back to all changes in this revision

Viewing changes to daemon/prompt/gkd-prompt-util.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-16 19:00:06 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216190006-cqpnic4zxlkmmi0o
Tags: 2.29.90git20100218-0ubuntu1
Updated to a git snapshot version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * gnome-keyring
 
3
 *
 
4
 * Copyright (C) 2009 Stefan Walter
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU Lesser General Public License as
 
8
 * published by the Free Software Foundation; either version 2.1 of
 
9
 * the License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __GKD_PROMPT_UTIL_H__
 
23
#define __GKD_PROMPT_UTIL_H__
 
24
 
 
25
#include <gcrypt.h>
 
26
 
 
27
#include <glib.h>
 
28
 
 
29
void        gkd_prompt_util_encode_mpi                   (GKeyFile *key_file, const gchar *section,
 
30
                                                          const gchar *field, gcry_mpi_t mpi);
 
31
 
 
32
void        gkd_prompt_util_encode_hex                   (GKeyFile *key_file, const gchar *section,
 
33
                                                          const gchar *field, gconstpointer data, gsize n_data);
 
34
 
 
35
gboolean    gkd_prompt_util_decode_mpi                   (GKeyFile *key_file, const gchar *section,
 
36
                                                          const gchar *field, gcry_mpi_t *mpi);
 
37
 
 
38
gpointer    gkd_prompt_util_decode_hex                   (GKeyFile *key_file, const gchar *section,
 
39
                                                          const gchar *field, gsize *n_result);
 
40
 
 
41
gpointer    gkd_prompt_util_encrypt_text                 (gconstpointer key, gsize n_key,
 
42
                                                          gconstpointer iv, gsize n_iv,
 
43
                                                          const gchar *text, gsize *n_result);
 
44
 
 
45
gchar*      gkd_prompt_util_decrypt_text                 (gconstpointer key, gsize n_key,
 
46
                                                          gconstpointer iv, gsize n_iv,
 
47
                                                          gconstpointer data, gsize n_data);
 
48
 
 
49
#endif /* __GKD_PROMPT_H__ */