MySQL  8.0.22
Source Code Documentation
i_sha2_password.h File Reference

Classes for caching_sha2_authentication plugin. More...

#include <string>
#include <unordered_map>
#include "crypt_genhash_impl.h"
#include "mysql/plugin.h"
#include "mysql/psi/mysql_rwlock.h"
#include "sql/auth/i_sha2_password_common.h"

Go to the source code of this file.

Classes

struct  sha2_password::sha2_cache_entry
 
class  sha2_password::SHA2_password_cache
 Password cache used for caching_sha2_authentication. More...
 
class  sha2_password::Caching_sha2_password
 Class to handle caching_sha2_authentication Provides methods for: More...
 

Namespaces

 sha2_password
 

Typedefs

typedef struct sha2_password::sha2_cache_entry sha2_password::sha2_cache_entry
 

Variables

const unsigned int sha2_password::MIN_FAST_DIGEST_ROUNDS = 2
 
const unsigned int sha2_password::DEFAULT_FAST_DIGEST_ROUNDS = 2
 
const unsigned int sha2_password::MAX_FAST_DIGEST_ROUNDS = 1000
 
const unsigned int sha2_password::DIGEST_INFO_LENGTH = 1
 
const unsigned int sha2_password::ITERATION_LENGTH = 3
 
const unsigned int sha2_password::ITERATION_MULTIPLIER = 1000
 
const long unsigned int sha2_password::MAX_ITERATIONS = 100000
 
const unsigned int sha2_password::SALT_LENGTH = CRYPT_SALT_LENGTH
 
const unsigned int sha2_password::SHA256_AUTH_STRING_LEN
 
const char sha2_password::DELIMITER = '$'
 
const unsigned int sha2_password::STORED_SHA256_DIGEST_LENGTH = 43
 
const size_t sha2_password::MIN_STORED_DIGEST_ROUNDS = ROUNDS_MIN
 
const size_t sha2_password::DEFAULT_STORED_DIGEST_ROUNDS = ROUNDS_DEFAULT
 
const size_t sha2_password::MAX_STORED_DIGEST_ROUNDS = ROUNDS_MAX
 
const size_t sha2_password::CACHING_SHA2_PASSWORD_MAX_PASSWORD_LENGTH = MAX_PLAINTEXT_LENGTH
 
const unsigned int sha2_password::MAX_PASSWORDS = 2
 

Detailed Description

Classes for caching_sha2_authentication plugin.