mirror of
https://github.com/rg3/libbcrypt.git
synced 2026-10-25 00:19:18 +03:00
This is irrelevant for the dynamic library thanks to -fvisibility=hidden, but it can be important to avoid symbol name collisions in the static library.
15 lines
452 B
C
15 lines
452 B
C
#ifndef BASE64_H_
|
|
#define BASE64_H_
|
|
|
|
#include <stddef.h>
|
|
|
|
/*
|
|
* The output buffer size must be enough to fit the base64 representation of
|
|
* the input buffer. Their lengths are related. For an input buffer of N bytes,
|
|
* the output buffer needs at least (N+2)/3*4 + 1 bytes. We're supposing
|
|
* integer division, and the extra byte accounts for the string terminator.
|
|
*/
|
|
void bcrypt_base64_calc(const unsigned char *in, size_t len, char *out);
|
|
|
|
#endif
|