/*1* Copyright (C) 2010 IBM Corporation2* Author: David Safford <[email protected]>3*4* This program is free software; you can redistribute it and/or modify5* it under the terms of the GNU General Public License as published by6* the Free Software Foundation, version 2 of the License.7*/89#ifndef _KEYS_TRUSTED_TYPE_H10#define _KEYS_TRUSTED_TYPE_H1112#include <linux/key.h>13#include <linux/rcupdate.h>1415#define MIN_KEY_SIZE 3216#define MAX_KEY_SIZE 12817#define MAX_BLOB_SIZE 3201819struct trusted_key_payload {20struct rcu_head rcu;21unsigned int key_len;22unsigned int blob_len;23unsigned char migratable;24unsigned char key[MAX_KEY_SIZE + 1];25unsigned char blob[MAX_BLOB_SIZE];26};2728extern struct key_type key_type_trusted;2930#endif /* _KEYS_TRUSTED_TYPE_H */313233