• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
3  * Licensed under the Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *     http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
8  * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
9  * PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  */
12 
13 #ifndef WB_AES_DECRYPT_H
14 #define WB_AES_DECRYPT_H
15 
16 /* stub for white box in OH */
17 struct wb_tool_inter_key {
18     const unsigned char *iv;
19     const unsigned int *table2;
20     unsigned char round_num;
21 };
22 
wb_aes_decrypt_cbc(const struct wb_tool_inter_key * tool_key,const unsigned char * input,unsigned int in_len,unsigned char * output,unsigned int * out_len)23 static inline int wb_aes_decrypt_cbc(const struct wb_tool_inter_key *tool_key,
24     const unsigned char *input, unsigned int in_len, unsigned char *output, unsigned int *out_len)
25 {
26     (void)tool_key;
27     (void)input;
28     (void)in_len;
29     (void)output;
30     (void)out_len;
31 
32     tloge("white box not support\n");
33     return -1;
34 }
35 #endif /* WB_AES_DECRYPT_H */
36