4
* Copyright (C) 2009 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_NULL_MECHANISM_H_
23
#define GCK_NULL_MECHANISM_H_
25
#include "gck-types.h"
27
#include "pkcs11/pkcs11.h"
28
#include "pkcs11/pkcs11i.h"
32
#define GCK_NULL_MECHANISM_MIN_LENGTH 0
33
#define GCK_NULL_MECHANISM_MAX_LENGTH 0
35
static const CK_MECHANISM_TYPE GCK_NULL_MECHANISMS[] = {
39
CK_RV gck_null_mechanism_wrap (GckSession *session,
40
CK_MECHANISM_PTR mech,
44
CK_ULONG_PTR n_output);
46
CK_RV gck_null_mechanism_unwrap (GckSession *session,
47
CK_MECHANISM_PTR mech,
51
CK_ATTRIBUTE_PTR attrs,
53
GckObject **unwrapped);
55
#endif /* GCK_NULL_MECHANISM_H_ */