diff options
Diffstat (limited to 'security/integrity/integrity.h')
| -rw-r--r-- | security/integrity/integrity.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h index 0b02ea868e30..ea2318983d97 100644 --- a/security/integrity/integrity.h +++ b/security/integrity/integrity.h | |||
| @@ -70,6 +70,17 @@ struct ima_digest_data { | |||
| 70 | u8 digest[IMA_MAX_DIGEST_SIZE]; | 70 | u8 digest[IMA_MAX_DIGEST_SIZE]; |
| 71 | } __packed; | 71 | } __packed; |
| 72 | 72 | ||
| 73 | /* | ||
| 74 | * signature format v2 - for using with asymmetric keys | ||
| 75 | */ | ||
| 76 | struct signature_v2_hdr { | ||
| 77 | uint8_t version; /* signature format version */ | ||
| 78 | uint8_t hash_algo; /* Digest algorithm [enum pkey_hash_algo] */ | ||
| 79 | uint32_t keyid; /* IMA key identifier - not X509/PGP specific */ | ||
| 80 | uint16_t sig_size; /* signature size */ | ||
| 81 | uint8_t sig[0]; /* signature payload */ | ||
| 82 | } __packed; | ||
| 83 | |||
| 73 | /* integrity data associated with an inode */ | 84 | /* integrity data associated with an inode */ |
| 74 | struct integrity_iint_cache { | 85 | struct integrity_iint_cache { |
| 75 | struct rb_node rb_node; /* rooted in integrity_iint_tree */ | 86 | struct rb_node rb_node; /* rooted in integrity_iint_tree */ |
