OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::crypto Namespace Reference

Functions

bool memneq (const void *a, const void *b, size_t size)
 
bool str_neq (const char *s1, const char *s2)
 
bool str_neq (const std::string &s1, const std::string &s2)
 

Function Documentation

◆ memneq()

bool openvpn::crypto::memneq ( const void *  a,
const void *  b,
size_t  size 
)
inline

memneq - Compare two areas of memory in constant time

Parameters
afirst area of memory
bsecond area of memory
sizeThe length of the memory area to compare
Returns
Returns false when data is equal, true otherwise

Definition at line 79 of file memneq.hpp.

Here is the caller graph for this function:

◆ str_neq() [1/2]

bool openvpn::crypto::str_neq ( const char *  s1,
const char *  s2 
)
inline

Definition at line 25 of file strneq.hpp.

Here is the caller graph for this function:

◆ str_neq() [2/2]

bool openvpn::crypto::str_neq ( const std::string &  s1,
const std::string &  s2 
)
inline

Definition at line 48 of file strneq.hpp.