1 /* 2 * Copyright (c) 2019-2025, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef PAUTH_H 8 #define PAUTH_H 9 10 #if ENABLE_PAUTH 11 /* Platform hook to generate the APIAKey */ 12 uint128_t plat_init_apkey(void); 13 14 void pauth_init(void); 15 void pauth_enable_el1(void); 16 void pauth_enable_el3(void); 17 void pauth_enable_el2(void); 18 void pauth_disable_el1(void); 19 void pauth_disable_el3(void); 20 #else 21 static inline void pauth_init(void) 22 { 23 } 24 static inline void pauth_enable_el1(void) 25 { 26 } 27 static inline void pauth_enable_el3(void) 28 { 29 } 30 static inline void pauth_enable_el2(void) 31 { 32 } 33 static inline void pauth_disable_el1(void) 34 { 35 } 36 static inline void pauth_disable_el3(void) 37 { 38 } 39 #endif 40 #endif /* PAUTH_H */ 41