x86, gart: Make sure GART does not map physmem above 1TB
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / keys / encrypted-type.h
blob95855017a32b23a972a4504fcf51f75116cb3473
1 /*
2 * Copyright (C) 2010 IBM Corporation
3 * Author: Mimi Zohar <zohar@us.ibm.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 2 of the License.
8 */
10 #ifndef _KEYS_ENCRYPTED_TYPE_H
11 #define _KEYS_ENCRYPTED_TYPE_H
13 #include <linux/key.h>
14 #include <linux/rcupdate.h>
16 struct encrypted_key_payload {
17 struct rcu_head rcu;
18 char *master_desc; /* datablob: master key name */
19 char *datalen; /* datablob: decrypted key length */
20 u8 *iv; /* datablob: iv */
21 u8 *encrypted_data; /* datablob: encrypted data */
22 unsigned short datablob_len; /* length of datablob */
23 unsigned short decrypted_datalen; /* decrypted data length */
24 u8 decrypted_data[0]; /* decrypted data + datablob + hmac */
27 extern struct key_type key_type_encrypted;
29 #endif /* _KEYS_ENCRYPTED_TYPE_H */