4
* Copyright (C) 2008 Stefan Walter
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.
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.
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
22
#ifndef __GCK_DH_KEY_H__
23
#define __GCK_DH_KEY_H__
25
#include <glib-object.h>
27
#include "gck-object.h"
28
#include "gck-types.h"
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))
37
typedef struct _GckDhKeyClass GckDhKeyClass;
38
typedef struct _GckDhKeyPrivate GckDhKeyPrivate;
45
struct _GckDhKeyClass {
46
GckObjectClass parent_class;
49
GType gck_dh_key_get_type (void);
51
void gck_dh_key_initialize (GckDhKey *self,
57
gcry_mpi_t gck_dh_key_get_prime (GckDhKey *self);
59
#endif /* __GCK_DH_KEY_H__ */