| 1 |
|
| 2 | |
| 3 | * Copyright (C) 2010 IBM Corporation
|
| 4 | * Copyright (C) 2010 Politecnico di Torino, Italy
|
| 5 | * TORSEC group -- https://security.polito.it
|
| 6 | *
|
| 7 | * Authors:
|
| 8 | * Mimi Zohar <[email protected]>
|
| 9 | * Roberto Sassu <[email protected]>
|
| 10 |
|
| 11 |
|
| 12 | #ifndef _KEYS_ENCRYPTED_TYPE_H
|
| 13 | #define _KEYS_ENCRYPTED_TYPE_H
|
| 14 |
|
| 15 | #include <linux/key.h>
|
| 16 | #include <linux/rcupdate.h>
|
| 17 |
|
| 18 | struct encrypted_key_payload {
|
| 19 | struct rcu_head rcu;
|
| 20 | char *format;
|
| 21 | char *master_desc;
|
| 22 | char *datalen;
|
| 23 | u8 *iv;
|
| 24 | u8 *encrypted_data;
|
| 25 | unsigned short datablob_len;
|
| 26 | unsigned short decrypted_datalen;
|
| 27 | unsigned short payload_datalen;
|
| 28 | unsigned short encrypted_key_format;
|
| 29 | u8 *decrypted_data;
|
| 30 | u8 payload_data[];
|
| 31 | };
|
| 32 |
|
| 33 | extern struct key_type key_type_encrypted;
|
| 34 |
|
| 35 | #endif
|