/*1* Copyright (C) 2010 IBM Corporation2* Author: Mimi Zohar <[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_ENCRYPTED_TYPE_H10#define _KEYS_ENCRYPTED_TYPE_H1112#include <linux/key.h>13#include <linux/rcupdate.h>1415struct encrypted_key_payload {16struct rcu_head rcu;17char *master_desc; /* datablob: master key name */18char *datalen; /* datablob: decrypted key length */19u8 *iv; /* datablob: iv */20u8 *encrypted_data; /* datablob: encrypted data */21unsigned short datablob_len; /* length of datablob */22unsigned short decrypted_datalen; /* decrypted data length */23u8 decrypted_data[0]; /* decrypted data + datablob + hmac */24};2526extern struct key_type key_type_encrypted;2728#endif /* _KEYS_ENCRYPTED_TYPE_H */293031