MySQL 9.1.0
Source Code Documentation
CachingSha2Adaptor Class Reference

#include <kdf_sha_crypt.h>

Inheritance diagram for CachingSha2Adaptor:
[legend]

Static Public Member Functions

static ShaCryptMcfAdaptor from_mcf (const std::string &crypt_data)
 
- Static Public Member Functions inherited from ShaCryptMcfAdaptor
static ShaCryptMcfAdaptor from_mcf (const std::string &data)
 build ShaCrypt from a MCF notation. More...
 
static bool supports_mcf_id (const std::string mcf_id)
 
static std::error_code validate (const std::string &mcf_line, const std::string &password)
 

Static Public Attributes

static constexpr unsigned long kCachingSha2SaltLength = 20
 
- Static Public Attributes inherited from ShaCryptMcfAdaptor
static constexpr unsigned long kDefaultRounds = 5000
 number of rounds if no rounds was specified in from_mcf(). More...
 
static constexpr unsigned long kMinRounds = 1000
 minimum rounds. More...
 
static constexpr unsigned long kMaxRounds = 999999999
 maximum rounds. More...
 
static constexpr size_t kMaxSaltLength = 16
 maximum length of the salt. More...
 

Additional Inherited Members

- Public Types inherited from ShaCryptMcfAdaptor
using mcf_type = ShaCryptMcfType
 
using kdf_type = ShaCrypt
 
using Type = mcf_type::Type
 
- Public Member Functions inherited from ShaCryptMcfAdaptor
 ShaCryptMcfAdaptor (Type digest, unsigned long rounds, const std::string &salt, const std::string &checksum)
 
std::string mcf_digest_name () const
 name of the digest according to MCF. More...
 
std::string checksum () const
 checksum. More...
 
std::string salt () const
 salt. More...
 
Type digest () const
 
unsigned long rounds () const
 rounds. More...
 
std::string to_mcf () const
 encode to MCF. More...
 
void hash (const std::string &password)
 hash a password into checksum. More...
 

Member Function Documentation

◆ from_mcf()

ShaCryptMcfAdaptor CachingSha2Adaptor::from_mcf ( const std::string &  crypt_data)
static

Member Data Documentation

◆ kCachingSha2SaltLength

constexpr unsigned long CachingSha2Adaptor::kCachingSha2SaltLength = 20
staticconstexpr

The documentation for this class was generated from the following files: