.. | .. |
---|
1594 | 1594 | return crypto_memneq(expected, got, c->hmac_desc_len); |
---|
1595 | 1595 | } |
---|
1596 | 1596 | |
---|
| 1597 | +#ifdef CONFIG_UBIFS_FS_AUTHENTICATION |
---|
1597 | 1598 | void ubifs_bad_hash(const struct ubifs_info *c, const void *node, |
---|
1598 | 1599 | const u8 *hash, int lnum, int offs); |
---|
| 1600 | +#else |
---|
| 1601 | +static inline void ubifs_bad_hash(const struct ubifs_info *c, const void *node, |
---|
| 1602 | + const u8 *hash, int lnum, int offs) {}; |
---|
| 1603 | +#endif |
---|
1599 | 1604 | |
---|
1600 | 1605 | int __ubifs_node_check_hash(const struct ubifs_info *c, const void *buf, |
---|
1601 | 1606 | const u8 *expected); |
---|