suricata
util-crypt.h File Reference
#include "suricata-common.h"
Include dependency graph for util-crypt.h:
This graph shows which files directly or indirectly include this file:

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)
 

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 )

Definition in file util-crypt.h.

Macro Definition Documentation

◆ BASE64_BUFFER_SIZE

#define BASE64_BUFFER_SIZE (   x)    ((4 * ((x) + 2) / 3) + 1)

Definition at line 37 of file util-crypt.h.

Enumeration Type Documentation

◆ CryptId

enum CryptId
Enumerator
SC_BASE64_OK 
SC_BASE64_INVALID_ARG 
SC_BASE64_OVERFLOW 

Definition at line 38 of file util-crypt.h.

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: