base64: add define LTC_BASE64_URL, make _internal functions static

This commit is contained in:
Steffen Jaeckel
2013-11-24 22:11:44 +01:00
parent 947fe41bbb
commit d78aa37c10
4 changed files with 32 additions and 12 deletions
+2
View File
@@ -383,6 +383,8 @@
/* Various tidbits of modern neatoness */
#define LTC_BASE64
/* ... and it's URL safe version */
#define LTC_BASE64_URL
/* Keep LTC_NO_HKDF for compatibility reasons
* superseeded by LTC_NO_MISC*/
+2
View File
@@ -7,11 +7,13 @@ int base64_decode(const unsigned char *in, unsigned long len,
unsigned char *out, unsigned long *outlen);
#endif
#ifdef LTC_BASE64_URL
int base64url_encode(const unsigned char *in, unsigned long len,
unsigned char *out, unsigned long *outlen);
int base64url_decode(const unsigned char *in, unsigned long len,
unsigned char *out, unsigned long *outlen);
#endif
/* ===> LTC_HKDF -- RFC5869 HMAC-based Key Derivation Function <=== */
#ifdef LTC_HKDF