0ffdc8b196
This adds functionality needed for parsing and generating JSON Web Key data structures in DPP. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
21 lines
653 B
C
21 lines
653 B
C
/*
|
|
* Base64 encoding/decoding (RFC1341)
|
|
* Copyright (c) 2005, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef BASE64_H
|
|
#define BASE64_H
|
|
|
|
unsigned char * base64_encode(const unsigned char *src, size_t len,
|
|
size_t *out_len);
|
|
unsigned char * base64_decode(const unsigned char *src, size_t len,
|
|
size_t *out_len);
|
|
unsigned char * base64_url_encode(const unsigned char *src, size_t len,
|
|
size_t *out_len, int add_pad);
|
|
unsigned char * base64_url_decode(const unsigned char *src, size_t len,
|
|
size_t *out_len);
|
|
|
|
#endif /* BASE64_H */
|