• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "lnn_cipherkey_manager.h"
17 
18 #include "softbus_errcode.h"
19 #include "softbus_log.h"
20 
LnnInitCipherKeyManager(void)21 int32_t LnnInitCipherKeyManager(void)
22 {
23     SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_INFO, "init virtual lnn cipherkey manager");
24     return SOFTBUS_OK;
25 }
26 
LnnDeinitCipherKeyManager(void)27 void LnnDeinitCipherKeyManager(void)
28 {
29     SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_INFO, "Deinit virtual lnn cipherkey manager");
30 }
31 
GetCipherKeyByNetworkId(const char * networkId,int32_t seq,uint32_t tableIndex,unsigned char * key,int32_t keyLen)32 bool GetCipherKeyByNetworkId(const char *networkId, int32_t seq, uint32_t tableIndex, unsigned char *key,
33     int32_t keyLen)
34 {
35     return true;
36 }
37 
GetLocalCipherKey(int32_t seq,uint32_t * tableIndex,unsigned char * key,int32_t keyLen)38 bool GetLocalCipherKey(int32_t seq, uint32_t *tableIndex, unsigned char *key, int32_t keyLen)
39 {
40     return true;
41 }
42 
PackCipherKeySyncMsg(void * json)43 bool PackCipherKeySyncMsg(void *json)
44 {
45     (void)json;
46     return true;
47 }
48 
ProcessCipherKeySyncInfo(const void * json,const char * networkId)49 void ProcessCipherKeySyncInfo(const void *json, const char *networkId)
50 {
51     (void)json;
52     (void)networkId;
53     return;
54 }
55 
LoadBleBroadcastKey(void)56 void LoadBleBroadcastKey(void)
57 {
58     return;
59 }
60 
IsCipherManagerFindKey(const char * udid)61 bool IsCipherManagerFindKey(const char *udid)
62 {
63     (void)udid;
64     return false;
65 }
66