View lcov test coverage results on http://www.gnu.org/software/liquidwar6/coverage/src/lib/glb/index.html.
buf: the data to encode
size: the size of data to encode
Encodes data into base64. Memory allocation is done automatically.
Return value: newly allocated string.
size: the size of the decoded data
base64_str: the string to decode
Decodes data from base64. Memory allocation is done automatically. Note that this function only works for strings, other data might not be handled correctly.
Return value: newly allocated pointer, NULL on error.
str: the string to encode
Encodes a string into base64.
Return value: newly allocated string.
str: the string to decode
Decodes a string from base64.
Return value: newly allocated string, NULL on error.
buf: the data to encode
size: the size of data to encode
prefix: a prefix string
Encodes data into base64. Memory allocation is done automatically. The encoded string will be prefixed with
prefix
.Return value: newly allocated string.
size: the size of the decoded data
base64_str: the string to decode
prefix: a prefix string
Decodes data from base64. Memory allocation is done automatically. Note that this function only works for strings, other data might not be handled correctly. The encoded is expected to start with prefix
prefix
and then contain base64 data.Return value: newly allocated pointer, NULL on error.
str: the string to encode
prefix: a prefix string
Encodes a string into base64. The encoded string will be prefixed with
prefix
.Return value: newly allocated string.
str: the string to decode
prefix: a prefix string
Decodes a string from base64. The encoded is expected to start with prefix
prefix
and then contain base64 data.Return value: newly allocated string, NULL on error.
key: the key buffer
key_size
buf: the data to analyse
buf_size: the size of data to analyse
Calculates an SHA-1 sum of buffer, using key to seed calc.
Return value: newly allocated string, containing 20 chars checksum.
key: a key (string)
str: the string to calculate the checksum for
Calculates an SHA-1 sum of a string, using key to seed calc.
Return value: newly allocated string, containing 20 chars checksum.
key: the key buffer
key_size
buf: the data to analyse
buf_size: the size of data to analyse
Calculates an SHA-1 sum of buffer, using key to seed calc.
Return value: a 32-bit unsigned integer