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 "softbus_aes_encrypt.h"
17 #include "softbus_errcode.h"
18 
SoftBusGenerateHmacHash(const EncryptKey * randomKey,const uint8_t * rootKey,uint32_t rootKeyLen,uint8_t * hash,uint32_t hashLen)19 int32_t SoftBusGenerateHmacHash(
20     const EncryptKey *randomKey, const uint8_t *rootKey, uint32_t rootKeyLen, uint8_t *hash, uint32_t hashLen)
21 {
22     (void)randomKey;
23     (void)rootKey;
24     (void)rootKeyLen;
25     (void)hash;
26     (void)hashLen;
27     return SOFTBUS_NOT_IMPLEMENT;
28 }
29 
SoftBusAesCfbRootEncrypt(const AesInputData * inData,const EncryptKey * randomKey,EncryptKey * rootKey,int32_t encMode,AesOutputData * outData)30 int32_t SoftBusAesCfbRootEncrypt(const AesInputData *inData, const EncryptKey *randomKey, EncryptKey *rootKey,
31     int32_t encMode, AesOutputData *outData)
32 {
33     (void)inData;
34     (void)randomKey;
35     (void)rootKey;
36     (void)encMode;
37     (void)outData;
38     return SOFTBUS_NOT_IMPLEMENT;
39 }
40 
SoftBusAesCfbEncrypt(const AesInputData * inData,AesCipherKey * cipherKey,int32_t encMode,AesOutputData * outData)41 int32_t SoftBusAesCfbEncrypt(
42     const AesInputData *inData, AesCipherKey *cipherKey, int32_t encMode, AesOutputData *outData)
43 {
44     (void)inData;
45     (void)cipherKey;
46     (void)encMode;
47     (void)outData;
48     return SOFTBUS_NOT_IMPLEMENT;
49 }
50 
SoftBusAesGcmEncrypt(const AesInputData * inData,AesCipherKey * cipherKey,int32_t encMode,AesOutputData * outData)51 int32_t SoftBusAesGcmEncrypt(
52     const AesInputData *inData, AesCipherKey *cipherKey, int32_t encMode, AesOutputData *outData)
53 {
54     (void)inData;
55     (void)cipherKey;
56     (void)encMode;
57     (void)outData;
58     return SOFTBUS_NOT_IMPLEMENT;
59 }
60 
61