Blame view
include/keys/encrypted-type.h
1.25 KB
7e70cb497 keys: add new key... |
1 2 |
/* * Copyright (C) 2010 IBM Corporation |
4e561d388 encrypted-keys: a... |
3 4 5 6 7 8 |
* 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> |
7e70cb497 keys: add new key... |
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
* * 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> struct encrypted_key_payload { struct rcu_head rcu; |
4e561d388 encrypted-keys: a... |
23 |
char *format; /* datablob: format */ |
7e70cb497 keys: add new key... |
24 25 26 27 28 29 |
char *master_desc; /* datablob: master key name */ char *datalen; /* datablob: decrypted key length */ u8 *iv; /* datablob: iv */ u8 *encrypted_data; /* datablob: encrypted data */ unsigned short datablob_len; /* length of datablob */ unsigned short decrypted_datalen; /* decrypted data length */ |
4e561d388 encrypted-keys: a... |
30 31 32 33 |
unsigned short payload_datalen; /* payload data length */ unsigned short encrypted_key_format; /* encrypted key format */ u8 *decrypted_data; /* decrypted data */ u8 payload_data[0]; /* payload data + datablob + hmac */ |
7e70cb497 keys: add new key... |
34 35 36 37 38 |
}; extern struct key_type key_type_encrypted; #endif /* _KEYS_ENCRYPTED_TYPE_H */ |