Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

rpmio/base64.h File Reference

More...

Go to the source code of this file.

Functions

int B64decode (const char *s, void **datap, size_t *lenp)
 Decode chunks of 4 bytes of base64 input into 3 bytes of binary output. More...

char * B64encode (const void *data, size_t ns)
 Encode chunks of 3 bytes of binary input into 4 bytes of base64 output. More...


Detailed Description

Definition in file base64.h.


Function Documentation

int B64decode const char *    s,
void **    datap,
size_t *    lenp
 

Decode chunks of 4 bytes of base64 input into 3 bytes of binary output.

Parameters:
s  base64 string
Return values:
datap  address of (malloc'd) binary data
lenp  address of no. bytes of binary data
Returns:
0 on success

Definition at line 11 of file base64.c.

char* B64encode const void *    data,
size_t    ns
 

Encode chunks of 3 bytes of binary input into 4 bytes of base64 output.

Parameters:
data  binary data
ns  no. bytes of data (0 uses strlen(data))
Returns:
(malloc'd) base64 string

Definition at line 76 of file base64.c.


Generated on Wed Mar 13 15:34:53 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002