Karthik Rajagopalan | 255bd81 | 2024-09-06 14:36:34 -0700 | [diff] [blame] | 1 | #ifndef CPER_BASE64_H |
| 2 | #define CPER_BASE64_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Ed Tanous | a7d2cdd | 2024-07-15 11:07:27 -0700 | [diff] [blame] | 8 | #include "edk/BaseTypes.h" |
| 9 | |
| 10 | /** |
| 11 | * base64_decode |
| 12 | * Caller is responsible for freeing the returned buffer. |
| 13 | */ |
| 14 | UINT8 *base64_decode(const CHAR8 *src, INT32 len, INT32 *out_len); |
| 15 | |
| 16 | /** |
| 17 | * base64_encode |
| 18 | * Caller is responsible for freeing the returned buffer. |
| 19 | */ |
| 20 | CHAR8 *base64_encode(const UINT8 *src, INT32 len, INT32 *out_len); |
Karthik Rajagopalan | 255bd81 | 2024-09-06 14:36:34 -0700 | [diff] [blame] | 21 | |
| 22 | #ifdef __cplusplus |
| 23 | } |
| 24 | #endif |
| 25 | |
| 26 | #endif |