suricata
util-crypt.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "util-crypt.h"
Include dependency graph for util-crypt.c:

Go to the source code of this file.

Functions

int Base64Encode (const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen)
 

Detailed Description

Author
Roliers Jean-Paul popof.nosp@m..fpn.nosp@m.@gmai.nosp@m.l.co

Implements cryptographic functions. Based on the libtomcrypt library ( http://libtom.org/?page=features&newsitems=5&whatfile=crypt )

Implementation of function using NSS is not linked with libtomcrypt.

Definition in file util-crypt.c.

Function Documentation

◆ Base64Encode()

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().

Here is the caller graph for this function: