1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 
8 
9 #ifndef UTIL_BASE64_H
10 #define UTIL_BASE64_H
11 
12 #ifdef __cplusplus
13 extern "C"
14 {
15 #endif
16 
17 /**
18  * @brief This function converts pem base64 encoded string to char string
19  *
20  *
21  * @param[in] pInStr - PEM base64 string
22  * @param[in] inSize - size of given string
23  * @param[out] pOutStr - output string decoded
24  * @param[in/out] outSize - the output buffer size (in MAX size out actual size)
25  *
26  * @return CCError_t - On success the value CC_OK is returned,
27  *         on failure - a value from bootimagesverifierx509_error.h
28  */
29 CCError_t UTIL_ConvertPemStrToCharStr(uint8_t *pInStr, uint32_t inSize,
30                       uint8_t *pOutStr, uint32_t *outSize);
31 
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif
38 
39 
40 
41