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 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 License for more details.
16
* You should have received a copy of the GNU Lesser General
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_MECHANISM_H_
23
#define GCK_DH_MECHANISM_H_
25
#include "gck-types.h"
27
#include "pkcs11/pkcs11.h"
33
static const CK_MECHANISM_TYPE GCK_DH_MECHANISMS[] = {
37
CK_RV gck_dh_mechanism_generate (GckSession *session,
38
CK_ATTRIBUTE_PTR pub_atts,
40
CK_ATTRIBUTE_PTR priv_atts,
43
GckObject **priv_key);
45
CK_RV gck_dh_mechanism_derive (GckSession *session,
46
CK_MECHANISM_PTR mech,
48
CK_ATTRIBUTE_PTR attrs,
52
#endif /* GCK_DH_MECHANISM_H_ */