/* * Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- http://security.polito.it * * Authors: * Mimi Zohar <zohar@us.ibm.com> * Roberto Sassu <roberto.sassu@polito.it> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 2 of the License. */#ifndef _KEYS_ENCRYPTED_TYPE_H#define _KEYS_ENCRYPTED_TYPE_H#include <linux/key.h>#include <linux/rcupdate.h>structencrypted_key_payload{structrcu_headrcu;char*format;/* datablob: format */char*master_desc;/* datablob: master key name */char*datalen;/* datablob: decrypted key length */u8*iv;/* datablob: iv */u8*encrypted_data;/* datablob: encrypted data */unsignedshortdatablob_len;/* length of datablob */unsignedshortdecrypted_datalen;/* decrypted data length */unsignedshortpayload_datalen;/* payload data length */unsignedshortencrypted_key_format;/* encrypted key format */u8*decrypted_data;/* decrypted data */u8payload_data[0];/* payload data + datablob + hmac */};externstructkey_typekey_type_encrypted;#endif /* _KEYS_ENCRYPTED_TYPE_H */