Neeraj Soni | 7b93926 | 2017-11-15 16:31:27 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef PFK_ICE_H_ |
| 14 | #define PFK_ICE_H_ |
| 15 | |
| 16 | /* |
| 17 | * PFK ICE |
| 18 | * |
| 19 | * ICE keys configuration through scm calls. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #include <linux/types.h> |
| 24 | |
| 25 | int pfk_ice_init(void); |
| 26 | int pfk_ice_deinit(void); |
| 27 | |
| 28 | int qti_pfk_ice_set_key(uint32_t index, uint8_t *key, uint8_t *salt, |
| 29 | char *storage_type); |
| 30 | int qti_pfk_ice_invalidate_key(uint32_t index, char *storage_type); |
| 31 | |
| 32 | |
| 33 | #endif /* PFK_ICE_H_ */ |