librsync  2.0.2
utilities.md
1 # Utility functions {#api_utility}
2 
3 Some additional functions are used internally and also exposed in the
4 API:
5 
6 - encoding/decoding binary data: rs_base64(), rs_unbase64(),
7  rs_hexify().
8 
9 - MD4 message digests: rs_mdfour(), rs_mdfour_begin(),
10  rs_mdfour_update(), rs_mdfour_result().
void rs_hexify(char *to_buf, void const *from_buf, int from_len)
Convert from_len bytes at from_buf into a hex representation in to_buf, which must be twice as long p...
Definition: hex.c:32
size_t rs_unbase64(char *s)
Decode a base64 buffer in place.
Definition: base64.c:33
void rs_mdfour_update(rs_mdfour_t *md, void const *in_void, size_t n)
Feed some data into the MD4 accumulator.
Definition: mdfour.c:292
void rs_base64(unsigned char const *buf, int n, char *out)
Encode a buffer as base64.
Definition: base64.c:65