1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2014, STMicroelectronics International N.V. 4 */ 5 #ifndef BASE64_H 6 #define BASE64_H 7 8 #include <stdint.h> 9 #include <stdbool.h> 10 #include <stddef.h> 11 12 bool _base64_enc(const void *data, size_t size, char *buf, size_t *blen); 13 bool _base64_dec(const char *data, size_t size, void *buf, size_t *blen); 14 size_t _base64_enc_len(size_t size); 15 16 #endif /* BASE64_H */ 17