Zhiqiang Han | a67a825 | 2023-02-25 18:23:48 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2014 Amlogic, Inc. All rights reserved. |
| 3 | * |
| 4 | * This source code is subject to the terms and conditions defined in the |
| 5 | * file 'LICENSE' which is part of this source code package. |
| 6 | * |
| 7 | * Description: */ |
Chuangcheng Peng | ae4ec20 | 2020-08-19 13:19:11 +0800 | [diff] [blame] | 8 | |
| 9 | #ifndef AM_KEY_H |
| 10 | #define AM_KEY_H |
| 11 | #include "aml_key.h" |
| 12 | |
| 13 | extern int key_open (void); |
| 14 | extern int key_close(int fd); |
Chuangcheng Peng | 272e8c6 | 2020-10-21 14:07:48 +0800 | [diff] [blame] | 15 | extern int key_alloc(int fd, int is_iv); |
Chuangcheng Peng | ae4ec20 | 2020-08-19 13:19:11 +0800 | [diff] [blame] | 16 | extern int key_free(int fd, int key_index); |
| 17 | extern int key_set(int fd, int key_index, char *key, int key_len); |
hualing chen | 7c8ff2e | 2021-08-12 15:39:37 +0800 | [diff] [blame] | 18 | extern int key_config(int fd, int key_index, int key_userid, int key_algo, unsigned int ext_value); |
Chuangcheng Peng | ae4ec20 | 2020-08-19 13:19:11 +0800 | [diff] [blame] | 19 | #endif |
| 20 | |