chibipub

experimental activitypub node in C
git clone git://jb55.com/chibipub
Log | Files | Refs | README | LICENSE

base64.h (715B)


      1 /*
      2  * Base64 encoding/decoding (RFC1341)
      3  * Copyright (c) 2005, Jouni Malinen <j@w1.fi>
      4  *
      5  * This software may be distributed under the terms of the BSD license.
      6  * See README for more details.
      7  */
      8 
      9 #ifndef BASE64_H
     10 #define BASE64_H
     11 
     12 #include <stddef.h>
     13 
     14 unsigned char * base62_encode(const unsigned char *src, size_t len,
     15 			      unsigned char *out, size_t out_capacity,
     16 			      size_t *out_len);
     17 unsigned char * base64_encode(const unsigned char *src, size_t len,
     18 			      unsigned char *out, size_t out_capacity,
     19 			      size_t *out_len);
     20 unsigned char * base64_decode(const unsigned char *src, size_t len,
     21 			      unsigned char *out, size_t out_capacity,
     22 			      size_t *out_size);
     23 
     24 #endif /* BASE64_H */