Debian Codegraph @

pkcs11/gkm/gkm-aes-mechanism.h

raw
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_AES_MECHANISM_H_
22 #define GKM_AES_MECHANISM_H_
23
24 #include "gkm-types.h"
25
26 #include "pkcs11/pkcs11.h"
27
28 #include <glib.h>
29
30 #define GKM_AES_MECHANISM_MIN_LENGTH 16
31 #define GKM_AES_MECHANISM_MAX_LENGTH 32
32
33 CK_RV gkm_aes_mechanism_wrap (GkmSession *session,
34 CK_MECHANISM_PTR mech,
35 GkmObject *wrapper,
36 GkmObject *wrapped,
37 CK_BYTE_PTR output,
38 CK_ULONG_PTR n_output);
39
40 CK_RV gkm_aes_mechanism_unwrap (GkmSession *session,
41 CK_MECHANISM_PTR mech,
42 GkmObject *wrapper,
43 CK_VOID_PTR input,
44 CK_ULONG n_input,
45 CK_ATTRIBUTE_PTR attrs,
46 CK_ULONG n_attrs,
47 GkmObject **unwrapped);
48
49 #endif /* GKM_AES_MECHANISM_H_ */