ua_base64.h 577 B

123456789101112131415161718192021
  1. /*
  2. * ua_base64.h
  3. *
  4. * Created on: Jun 10, 2014
  5. * Author: sten
  6. */
  7. #ifndef UA_BASE64_H_
  8. #define UA_BASE64_H_
  9. #include "ua_types.h"
  10. #include "ua_util.h"
  11. /** @brief calculates the exact size for the binary data that is encoded in base64 encoded string */
  12. UA_Int32 UA_base64_getDecodedSize(UA_String *const base64EncodedData);
  13. /** @brief decodes base64 encoded string into target, target should be at least of the size returned by UA_base64_getDecodedSizeUB */
  14. UA_Int32 UA_base64_decode(UA_String *const base64EncodedData, UA_Byte *target);
  15. #endif /* UA_BASE64_H_ */