suricata
|
#include "suricata-common.h"
Go to the source code of this file.
Macros | |
#define | BASE64_BUFFER_SIZE(x) ((4 * ((x) + 2) / 3) + 1) |
Enumerations | |
enum | CryptId { SC_BASE64_OK, SC_BASE64_INVALID_ARG, SC_BASE64_OVERFLOW } |
Functions | |
int | Base64Encode (const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) |
Implements cryptographic functions. Based on the libtomcrypt library ( http://libtom.org/?page=features&newsitems=5&whatfile=crypt )
Definition in file util-crypt.h.
#define BASE64_BUFFER_SIZE | ( | x | ) | ((4 * ((x) + 2) / 3) + 1) |
Definition at line 37 of file util-crypt.h.
enum CryptId |
Enumerator | |
---|---|
SC_BASE64_OK | |
SC_BASE64_INVALID_ARG | |
SC_BASE64_OVERFLOW |
Definition at line 38 of file util-crypt.h.
int Base64Encode | ( | const unsigned char * | in, |
unsigned long | inlen, | ||
unsigned char * | out, | ||
unsigned long * | outlen | ||
) |
Definition at line 35 of file util-crypt.c.
References SC_BASE64_INVALID_ARG, and SC_BASE64_OVERFLOW.
Referenced by EvePacket(), OutputJsonDNP3SetItem(), and StringAsBase64().