Debian Codegraph @

pkcs11/gkm/gkm-hkdf-mechanism.h

raw
1 /*
2 * gnome-keyring
3 *
4 * Copyright (C) 2011 Collabora Ltd.
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 * Author: Stef Walter <[email protected]>
21 */
22
23 #ifndef GKM_HKDF_MECHANISM_H_
24 #define GKM_HKDF_MECHANISM_H_
25
26 #include "gkm-types.h"
27
28 #include "pkcs11/pkcs11.h"
29 #include "pkcs11/pkcs11i.h"
30
31 #include <glib.h>
32
33 static const CK_MECHANISM_TYPE GKM_HKDF_MECHANISMS[] = {
34 CKM_G_HKDF_SHA256_DERIVE
35 };
36
37 CK_RV gkm_hkdf_mechanism_derive (GkmSession *session,
38 const gchar *algo,
39 CK_MECHANISM_PTR mech,
40 GkmObject *base,
41 CK_ATTRIBUTE_PTR attrs,
42 CK_ULONG n_attrs,
43 GkmObject **derived);
44
45 #endif /* GKM_HKDF_MECHANISM_H_ */