KPN Things Device SDK
base64.h
Go to the documentation of this file.
1#ifndef THINGS_SENML_BASE64
2#define THINGS_SENML_BASE64
3
4/*Copyright (C) 2013 Adam Rudd
5
6Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
7documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
8rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
9persons to whom the Software is furnished to do so, subject to the following conditions:
10
11The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
12Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
15WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
17OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18*/
19int base64_encode(char *output, char *input, int inputLen);
20int base64_decode(char *output, char *input, int inputLen);
21
22int base64_enc_len(int plainLen);
23int base64_dec_len(char *input, int inputLen);
24
25#endif
int base64_dec_len(char *input, int inputLen)
Definition: base64.cpp:157
int base64_encode(char *output, char *input, int inputLen)
Definition: base64.cpp:62
int base64_enc_len(int plainLen)
Definition: base64.cpp:147
int base64_decode(char *output, char *input, int inputLen)
Definition: base64.cpp:102