| .. | .. |
|---|
| 122 | 122 | const u8 *salt, size_t salt_size); |
|---|
| 123 | 123 | |
|---|
| 124 | 124 | struct fsverity_info *fsverity_create_info(const struct inode *inode, |
|---|
| 125 | | - void *desc, size_t desc_size); |
|---|
| 125 | + struct fsverity_descriptor *desc, |
|---|
| 126 | + size_t desc_size); |
|---|
| 126 | 127 | |
|---|
| 127 | 128 | void fsverity_set_info(struct inode *inode, struct fsverity_info *vi); |
|---|
| 128 | 129 | |
|---|
| 129 | 130 | void fsverity_free_info(struct fsverity_info *vi); |
|---|
| 131 | + |
|---|
| 132 | +int fsverity_get_descriptor(struct inode *inode, |
|---|
| 133 | + struct fsverity_descriptor **desc_ret, |
|---|
| 134 | + size_t *desc_size_ret); |
|---|
| 130 | 135 | |
|---|
| 131 | 136 | int __init fsverity_init_info_cache(void); |
|---|
| 132 | 137 | void __init fsverity_exit_info_cache(void); |
|---|
| .. | .. |
|---|
| 135 | 140 | |
|---|
| 136 | 141 | #ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES |
|---|
| 137 | 142 | int fsverity_verify_signature(const struct fsverity_info *vi, |
|---|
| 138 | | - const struct fsverity_descriptor *desc, |
|---|
| 139 | | - size_t desc_size); |
|---|
| 143 | + const u8 *signature, size_t sig_size); |
|---|
| 140 | 144 | |
|---|
| 141 | 145 | int __init fsverity_init_signature(void); |
|---|
| 142 | 146 | #else /* !CONFIG_FS_VERITY_BUILTIN_SIGNATURES */ |
|---|
| 143 | 147 | static inline int |
|---|
| 144 | 148 | fsverity_verify_signature(const struct fsverity_info *vi, |
|---|
| 145 | | - const struct fsverity_descriptor *desc, |
|---|
| 146 | | - size_t desc_size) |
|---|
| 149 | + const u8 *signature, size_t sig_size) |
|---|
| 147 | 150 | { |
|---|
| 148 | 151 | return 0; |
|---|
| 149 | 152 | } |
|---|