1
0
mirror of https://github.com/rg3/libbcrypt.git synced 2026-10-25 00:19:18 +03:00
Files
bcrypt/base64.h
Ricardo Garcia d4bac5883f Make all nonstatic functions start with bcrypt_
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.
2017-12-07 12:42:07 +01:00

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