• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 // Copyright (C) 2022 Beken Corporation
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 #ifndef _BSAE64_ENC_H_
16 #define _BSAE64_ENC_H_
17 
18 #define CFG_USE_BASE64        1
19 
20 #ifdef CFG_USE_BASE64
21 unsigned int base64_calc_encode_length(unsigned int src_Len);
22 unsigned char base64_encode(const unsigned char *src, int len,
23 							int *out_len, unsigned char *out);
24 
25 unsigned int base64_calc_decode_length(const unsigned char *src, unsigned int src_Len);
26 unsigned char base64_decode(const unsigned char *src, int len,
27 							int *out_len, unsigned char *out);
28 #endif /*CFG_USE_BASE64*/
29 #endif /*_base64_Enc_H_*/
30 
31