wickr-crypto-c

Functions
Data Conversion Utilities

## Functions
wickr_buffer_t * | getBase64FromData (const wickr_buffer_t *objData)
wickr_buffer_t * | getDataFromBase64 (const wickr_buffer_t *strBase64)
wickr_buffer_t * | getHexStringFromData (const wickr_buffer_t *objData)
wickr_buffer_t * | getDataFromHexString (const wickr_buffer_t *hexString)

## Detailed Description

## Function Documentation

## ◆ getBase64FromData()

wickr_buffer_t* getBase64FromData | ( | const wickr_buffer_t * | objData | ) |

Convert data to base64 format

Parameters

  objData | the buffer to convert

Returns
  a buffer containing a null-terminated base64 string representation of objData

## ◆ getDataFromBase64()

wickr_buffer_t* getDataFromBase64 | ( | const wickr_buffer_t * | strBase64 | ) |

Convert a base64 string to data

Parameters

  strBase64 | a null terminated base64 buffer

Returns
  a buffer containing the data represented by the base64 buffer

## ◆ getDataFromHexString()

wickr_buffer_t* getDataFromHexString | ( | const wickr_buffer_t * | hexString | ) |

Convert a hex string to data

Parameters

  hexString | a null terminated hex buffer

Returns
  a buffer containing the data represented by the hex buffer

## ◆ getHexStringFromData()

wickr_buffer_t* getHexStringFromData | ( | const wickr_buffer_t * | objData | ) |

Convert data to hex format

Parameters

  objData | the buffer to convert

Returns
  a buffer containing a null-terminated hex string representation of objData