| 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, see |
| 18 |
* <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef GKM_NULL_MECHANISM_H_ |
| 22 |
#define GKM_NULL_MECHANISM_H_ |
| 23 |
|
| 24 |
#include "gkm-types.h" |
| 25 |
|
| 26 |
#include "pkcs11/pkcs11.h" |
| 27 |
#include "pkcs11/pkcs11i.h" |
| 28 |
|
| 29 |
#include <glib.h> |
| 30 |
|
| 31 |
#define GKM_NULL_MECHANISM_MIN_LENGTH 0 |
| 32 |
#define GKM_NULL_MECHANISM_MAX_LENGTH 0 |
| 33 |
|
| 34 |
static const CK_MECHANISM_TYPE GKM_NULL_MECHANISMS[] = { |
| 35 |
CKM_G_NULL |
| 36 |
}; |
| 37 |
|
| 38 |
CK_RV gkm_null_mechanism_wrap (GkmSession *session, |
| 39 |
CK_MECHANISM_PTR mech, |
| 40 |
GkmObject *wrapper, |
| 41 |
GkmObject *wrapped, |
| 42 |
CK_BYTE_PTR output, |
| 43 |
CK_ULONG_PTR n_output); |
| 44 |
|
| 45 |
CK_RV gkm_null_mechanism_unwrap (GkmSession *session, |
| 46 |
CK_MECHANISM_PTR mech, |
| 47 |
GkmObject *wrapper, |
| 48 |
CK_VOID_PTR input, |
| 49 |
CK_ULONG n_input, |
| 50 |
CK_ATTRIBUTE_PTR attrs, |
| 51 |
CK_ULONG n_attrs, |
| 52 |
GkmObject **unwrapped); |
| 53 |
|
| 54 |
#endif /* GKM_NULL_MECHANISM_H_ */ |