OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
OD::OpenSSLAccess Class Reference

Provides access to the core ODOpenSSL API Will load the ODOpenSSL plugin at runtime without introducing dependencies The plugin remains fully managed by the plugin manager PIM()
More...

#include <opensslaccess.h>

Public Member Functions

 OpenSSLAccess ()
 
 ~OpenSSLAccess ()
 
bool decryptFromFile (const char *fnm, BufferString &, uiRetVal &, const Crypto::PassPhrase &, int nriters=sDefNrIters(), bool base64=sDefBase64(), const char *cipher=sKeyDefCipher()) const
 
bool encryptToFile (const OD::String &, const char *fnm, uiRetVal &, const Crypto::PassPhrase &, int nriters=sDefNrIters(), bool base64=sDefBase64(), const char *cipher=sKeyDefCipher(), bool withsalt=sDefUseSalt()) const
 
bool isOK (uiRetVal *=nullptr) const
 

Static Public Member Functions

static bool loadOpenSSL ()
 
static bool sDefBase64 ()
 
static int sDefNrIters ()
 
static bool sDefUseSalt ()
 
static const char * sKeyDefCipher ()
 

Private Member Functions

void loadPlugin ()
 

Static Private Member Functions

static bool loadOpenSSL (const char *libnm, const char *path, bool iscrypto)
 

Private Attributes

OpenSSLFnSet * functions_ = nullptr
 
const SharedLibAccesssla_ = nullptr
 

Detailed Description

Provides access to the core ODOpenSSL API Will load the ODOpenSSL plugin at runtime without introducing dependencies The plugin remains fully managed by the plugin manager PIM()

<>

Constructor & Destructor Documentation

◆ OpenSSLAccess()

OD::OpenSSLAccess::OpenSSLAccess ( )

◆ ~OpenSSLAccess()

OD::OpenSSLAccess::~OpenSSLAccess ( )

Member Function Documentation

◆ decryptFromFile()

bool OD::OpenSSLAccess::decryptFromFile ( const char * fnm,
BufferString & ,
uiRetVal & ,
const Crypto::PassPhrase & ,
int nriters = sDefNrIters(),
bool base64 = sDefBase64(),
const char * cipher = sKeyDefCipher() ) const

◆ encryptToFile()

bool OD::OpenSSLAccess::encryptToFile ( const OD::String & ,
const char * fnm,
uiRetVal & ,
const Crypto::PassPhrase & ,
int nriters = sDefNrIters(),
bool base64 = sDefBase64(),
const char * cipher = sKeyDefCipher(),
bool withsalt = sDefUseSalt() ) const

◆ isOK()

bool OD::OpenSSLAccess::isOK ( uiRetVal * = nullptr) const

◆ loadOpenSSL() [1/2]

static bool OD::OpenSSLAccess::loadOpenSSL ( )
static

◆ loadOpenSSL() [2/2]

static bool OD::OpenSSLAccess::loadOpenSSL ( const char * libnm,
const char * path,
bool iscrypto )
staticprivate

◆ loadPlugin()

void OD::OpenSSLAccess::loadPlugin ( )
private

◆ sDefBase64()

static bool OD::OpenSSLAccess::sDefBase64 ( )
inlinestatic

◆ sDefNrIters()

static int OD::OpenSSLAccess::sDefNrIters ( )
inlinestatic

◆ sDefUseSalt()

static bool OD::OpenSSLAccess::sDefUseSalt ( )
inlinestatic

◆ sKeyDefCipher()

static const char * OD::OpenSSLAccess::sKeyDefCipher ( )
inlinestatic

Member Data Documentation

◆ functions_

OpenSSLFnSet* OD::OpenSSLAccess::functions_ = nullptr
private

◆ sla_

const SharedLibAccess* OD::OpenSSLAccess::sla_ = nullptr
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025