blob: e0970a578188ccaf563340f115e2aaeadb65267e [file] [log] [blame]
David Howellsab3c3582013-09-24 10:35:18 +01001/* Big capacity key type.
2 *
3 * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12#ifndef _KEYS_BIG_KEY_TYPE_H
13#define _KEYS_BIG_KEY_TYPE_H
14
15#include <linux/key-type.h>
16
17extern struct key_type key_type_big_key;
18
David Howells002edaf2014-07-18 18:56:36 +010019extern int big_key_preparse(struct key_preparsed_payload *prep);
20extern void big_key_free_preparse(struct key_preparsed_payload *prep);
David Howellsab3c3582013-09-24 10:35:18 +010021extern void big_key_revoke(struct key *key);
22extern void big_key_destroy(struct key *key);
23extern void big_key_describe(const struct key *big_key, struct seq_file *m);
24extern long big_key_read(const struct key *key, char __user *buffer, size_t buflen);
25
26#endif /* _KEYS_BIG_KEY_TYPE_H */