File: b64.h

package info (click to toggle)
libscrypt 1.22-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: ansic: 1,565; makefile: 144
file content (10 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10

/* BASE64 libraries used internally - should not need to be packaged */
#include <stddef.h>
#define b64_encode_len(A) ((A+2)/3 * 4 + 1)
#define b64_decode_len(A) (A / 4 * 3 + 2)

int	libscrypt_b64_encode(unsigned char const *src, size_t srclength, 
        /*@out@*/ char *target, size_t targetsize);
int	libscrypt_b64_decode(char const *src, /*@out@*/ unsigned char *target, 
        size_t targetsize);