OpendTect 8.0
Loading...
Searching...
No Matches
Crypto::PassPhrase Class Reference

A string with a hash algorithm method. More...

#include <opensslaccess.h>

Inheritance diagram for Crypto::PassPhrase:
[legend]

Public Member Functions

 PassPhrase (const char *, Algorithm)
 
 PassPhrase (const OD::String &, Algorithm)
 
Algorithm getAlgo () const
 
- Public Member Functions inherited from BufferString
 BufferString ()
 
 BufferString (const BufferString &)
 
 BufferString (const char *)
 
template<class T>
 BufferString (const char *, const T &, const char *s=nullptr)
 
 BufferString (const OD::String &)
 
 BufferString (const QString &)
 
 BufferString (const std::string &)
 
 BufferString (const std::wstring &)
 
template<class T>
 BufferString (const T &)
 
 BufferString (int minlen, bool setnull)
 
virtual ~BufferString ()
 
BufferString & add (char)
 
BufferString & add (const char *)
 
template<>
BufferString & add (const double &d)
 
template<>
BufferString & add (const float &f)
 
BufferString & add (const OD::String &)
 
BufferString & add (const QString &)
 
BufferString & add (const std::string &)
 
BufferString & add (const std::wstring &)
 
template<class T>
BufferString & add (const T &)
 
BufferString & add (double, int nrdec)
 
BufferString & add (float, int nrdec)
 
BufferString & addDec (double, int nrdec)
 
BufferString & addDec (float, int nrdec)
 
BufferString & addLim (double, int maxnrchars)
 
BufferString & addLim (float, int maxnrchars)
 
BufferString & addNewLine (int nrnewlines=1)
 
BufferString & addSpace (int nrspaces=1)
 
BufferString & addTab (int nrtabs=1)
 
unsigned int bufSize () const
 
BufferString & clean (CleanType ct=OnlyAlphaNum)
 
BufferString & embed (char open, char close)
 
char * find (char)
 
const char * find (char) const
 
char * find (const char *)
 
const char * find (const char *) const
 
char * findLast (char)
 
const char * findLast (char) const
 
char * findLast (const char *)
 
const char * findLast (const char *) const
 
char & first ()
 
char * getCStr ()
 
int indexOf (char, int from=0) const
 
int indexOf (const char *, int from=0) const
 
BufferString & insertAt (int idx, const char *)
 If idx >= size(), pads spaces.
 
char & last ()
 
unsigned int minBufSize () const
 
bool operator!= (const BufferString &) const
 
bool operator!= (const char *) const
 
bool operator!= (const OD::String &) const
 
bool operator!= (const StringView &) const
 
BufferString & operator+= (const char *s)
 
BufferString & operator+= (const OD::String &s)
 
template<class T>
BufferString & operator+= (const T &t)
 
BufferString & operator= (const BufferString &b)
 
BufferString & operator= (const char *s)
 
BufferString & operator= (const OD::String &s)
 
BufferString & operator= (const std::string &)
 
BufferString & operator= (const std::wstring &)
 
BufferString & operator= (const StringView &s)
 
template<class T>
BufferString & operator= (const T &)
 
bool operator== (const BufferString &) const
 
bool operator== (const char *) const
 
bool operator== (const OD::String &) const
 
bool operator== (const StringView &) const
 
char & operator[] (int idx)
 
BufferString & quote (char q='\'')
 
BufferString & remove (char)
 
BufferString & remove (const char *s)
 
BufferString & replace (char from, char to)
 
BufferString & replace (const char *from, const char *to)
 
BufferString & replaceAt (int idx, const char *, bool cutoff=true)
 If idx >= size(), pads spaces.
 
BufferString & set (const char *)
 
template<>
BufferString & set (const double &dval, od_uint16 width, char specifier, od_uint16 precision, const char *length, const char *flags)
 
template<>
BufferString & set (const float &fval, od_uint16 width, char specifier, od_uint16 precision, const char *length, const char *flags)
 
BufferString & set (const OD::String &)
 
template<class T>
BufferString & set (const T &)
 
template<class T>
BufferString & set (const T &, od_uint16 width, char specifier='g', od_uint16 precision=6, const char *length=nullptr, const char *flags=nullptr)
 
BufferString & set (double, int nrdec)
 
BufferString & set (float, int nrdec)
 
bool setBufSize (unsigned int)
 
BufferString & setCFmt (double, const char *cformat, int minbufsz)
 
BufferString & setCFmt (float, const char *cformat, int minbufsz)
 
BufferString & setDec (double, int nrdec)
 
BufferString & setDec (float, int nrdec)
 
BufferString & setEmpty ()
 
BufferString & setLim (double, int maxnrchars)
 
BufferString & setLim (float, int maxnrchars)
 
void setMinBufSize (unsigned int)
 
BufferString & setPtr (const void *, od_uint16 width=0)
 
BufferString & toLower ()
 
BufferString & toTitleCase ()
 
BufferString & toUpper ()
 
BufferString & trimBlanks ()
 removes front and back whitespaces
 
BufferString & unEmbed (char open, char close)
 
BufferString & unQuote (char q='\'')
 
- Public Member Functions inherited from OD::String
virtual ~String ()
 
const char * buf () const
 
bool contains (char) const
 
bool contains (const char *) const
 
unsigned int count (char) const
 
bool endsWith (const char *, CaseSensitivity c=CaseSensitive) const
 
const char * find (char) const
 
const char * find (const char *) const
 
const char * findLast (char) const
 
const char * findLast (const char *) const
 
virtual char firstChar () const
 
const char * getHash (Crypto::Algorithm) const
 
unsigned int getLevenshteinDist (const char *, bool casesens) const
 
bool isEmpty () const
 
bool isEndOf (const char *, CaseSensitivity c=CaseSensitive) const
 
bool isEqual (const char *, CaseSensitivity c=CaseSensitive) const
 
bool isNumber (bool int_only=false) const
 
bool isStartOf (const char *, CaseSensitivity c=CaseSensitive) const
 
bool isYesNo () const
 
virtual char lastChar () const
 
bool matches (const char *, CaseSensitivity c=CaseSensitive) const
 
 operator const char * () const
 
bool operator!= (const char *) const
 
bool operator!= (const String &) const
 
template<class T>
bool operator!= (const T &t) const
 
bool operator< (const char *) const
 
bool operator< (const String &) const
 
template<class T>
bool operator< (const T &) const
 
bool operator== (const char *) const
 
bool operator== (const String &) const
 
template<class T>
bool operator== (const T &) const
 
bool operator> (const char *) const
 
bool operator> (const String &) const
 
template<class T>
bool operator> (const T &) const
 
const char & operator[] (int idx) const
 
unsigned int size () const
 
bool startsWith (const char *, CaseSensitivity c=CaseSensitive) const
 
const char * str () const
 
bool toBool () const
 
double toDouble () const
 
float toFloat () const
 
int toInt () const
 
std::wstring toStdWString () const
 
od_uint64 toUInt64 () const
 

Private Attributes

Algorithm algo_
 

Additional Inherited Members

- Public Types inherited from BufferString
enum  CleanType {
  OnlyAlphaNum , AllowDots , NoSpaces , NoFileSeps ,
  NoSpecialChars
}
 
- Static Public Member Functions inherited from BufferString
static const BufferString & empty ()
 
- Static Public Member Functions inherited from OD::String
static const String & empty ()
 
- Protected Member Functions inherited from BufferString
BufferString & assignTo (const char *)
 
const char * gtBuf () const override
 
const char * gtStr () const override
 
- Protected Member Functions inherited from OD::String
 String ()
 
 operator bool () const =delete
 
- Protected Attributes inherited from BufferString
char * buf_
 
unsigned int len_
 
const unsigned int minlen_
 

Detailed Description

A string with a hash algorithm method.

Constructor & Destructor Documentation

◆ PassPhrase() [1/2]

Crypto::PassPhrase::PassPhrase ( const char * ,
Algorithm  )

◆ PassPhrase() [2/2]

Crypto::PassPhrase::PassPhrase ( const OD::String & ,
Algorithm  )

Member Function Documentation

◆ getAlgo()

Algorithm Crypto::PassPhrase::getAlgo ( ) const
inline

Member Data Documentation

◆ algo_

Algorithm Crypto::PassPhrase::algo_
private

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