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