xref: /linux/tools/testing/selftests/arm64/pauth/helper.h (revision 766d95b1ed93ebdd07ac87490e60e442342f5dc4)
1e74e1d55SBoyan Karatotev /* SPDX-License-Identifier: GPL-2.0 */
2e74e1d55SBoyan Karatotev /* Copyright (C) 2020 ARM Limited */
3e74e1d55SBoyan Karatotev 
4e74e1d55SBoyan Karatotev #ifndef _HELPER_H_
5e74e1d55SBoyan Karatotev #define _HELPER_H_
6e74e1d55SBoyan Karatotev 
7*766d95b1SBoyan Karatotev #include <stdlib.h>
8*766d95b1SBoyan Karatotev 
9e74e1d55SBoyan Karatotev void pac_corruptor(void);
10e74e1d55SBoyan Karatotev 
11*766d95b1SBoyan Karatotev /* PAuth sign a value with key ia and modifier value 0 */
12*766d95b1SBoyan Karatotev size_t keyia_sign(size_t val);
13*766d95b1SBoyan Karatotev size_t keyib_sign(size_t val);
14*766d95b1SBoyan Karatotev size_t keyda_sign(size_t val);
15*766d95b1SBoyan Karatotev size_t keydb_sign(size_t val);
16*766d95b1SBoyan Karatotev size_t keyg_sign(size_t val);
17*766d95b1SBoyan Karatotev 
18e74e1d55SBoyan Karatotev #endif
19