wickr-crypto-c
Functions
base32

Functions

wickr_buffer_tbase32_encode (const wickr_buffer_t *buffer)
 
wickr_buffer_tbase32_decode (const wickr_buffer_t *buffer)
 

Detailed Description

Function Documentation

◆ base32_decode()

wickr_buffer_t* base32_decode ( const wickr_buffer_t buffer)

Decode base32 data to a binary representation

Parameters
abuffer containing a base32 string
Returns
decoded binary data representation of 'buffer' or NULL if 'buffer' contains invalid base32 data

◆ base32_encode()

wickr_buffer_t* base32_encode ( const wickr_buffer_t buffer)

Encode data in base32 (Crockford's) encoding

Parameters
bufferthe buffer to encode in base32 format
Returns
a buffer representing 'buffer' in base32 format. The length field will represent the string length even though the contents are null terminated