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

« back to all changes in this revision

Viewing changes to pkcs11/gck/gck-dh-key.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) 2008 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 __GCK_DH_KEY_H__
 
23
#define __GCK_DH_KEY_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
#include "gck-object.h"
 
28
#include "gck-types.h"
 
29
 
 
30
#define GCK_TYPE_DH_KEY               (gck_dh_key_get_type ())
 
31
#define GCK_DH_KEY(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCK_TYPE_DH_KEY, GckDhKey))
 
32
#define GCK_DH_KEY_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GCK_TYPE_DH_KEY, GckDhKeyClass))
 
33
#define GCK_IS_DH_KEY(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCK_TYPE_DH_KEY))
 
34
#define GCK_IS_DH_KEY_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GCK_TYPE_DH_KEY))
 
35
#define GCK_DH_KEY_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GCK_TYPE_DH_KEY, GckDhKeyClass))
 
36
 
 
37
typedef struct _GckDhKeyClass GckDhKeyClass;
 
38
typedef struct _GckDhKeyPrivate GckDhKeyPrivate;
 
39
 
 
40
struct _GckDhKey {
 
41
        GckObject parent;
 
42
        GckDhKeyPrivate *pv;
 
43
};
 
44
 
 
45
struct _GckDhKeyClass {
 
46
        GckObjectClass parent_class;
 
47
};
 
48
 
 
49
GType                     gck_dh_key_get_type           (void);
 
50
 
 
51
void                      gck_dh_key_initialize         (GckDhKey *self,
 
52
                                                         gcry_mpi_t prime,
 
53
                                                         gcry_mpi_t base,
 
54
                                                         gpointer id,
 
55
                                                         gsize n_id);
 
56
 
 
57
gcry_mpi_t                gck_dh_key_get_prime          (GckDhKey *self);
 
58
 
 
59
#endif /* __GCK_DH_KEY_H__ */