MySQL 9.1.0
Source Code Documentation
|
Classes | |
class | Caching_sha2_password |
Class to handle caching_sha2_authentication Provides methods for: More... | |
class | Generate_digest |
Interface for cryptographic digest generation. More... | |
class | Generate_scramble |
Scramble generator Responsible for generating scramble of following format: XOR(SHA2(m_src), SHA2(SHA2(SHA2(m_src)), m_rnd)) More... | |
class | SHA256_digest |
SHA256 digest generator. More... | |
struct | sha2_cache_entry |
class | SHA2_password_cache |
Password cache used for caching_sha2_authentication. More... | |
class | Validate_scramble |
Scramble validator Expects scramble to be: XOR(SHA2(m_src), SHA2(SHA2(SHA2(m_src)), m_rnd)) Validates it against: SHA2(SHA2(m_src)) and random string. More... | |
Typedefs | |
typedef struct sha2_password::sha2_cache_entry | sha2_cache_entry |
Enumerations | |
enum class | Digest_info { SHA256_DIGEST = 0 , DIGEST_LAST } |
Supported digest information. More... | |
Variables | |
const unsigned int | MIN_FAST_DIGEST_ROUNDS = 2 |
const unsigned int | DEFAULT_FAST_DIGEST_ROUNDS = 2 |
const unsigned int | MAX_FAST_DIGEST_ROUNDS = 1000 |
const unsigned int | DIGEST_INFO_LENGTH = 1 |
const unsigned int | ITERATION_LENGTH = 3 |
const unsigned int | ITERATION_MULTIPLIER = 1000 |
const long unsigned int | MAX_ITERATIONS = 0xFFF * ITERATION_MULTIPLIER |
const unsigned int | SALT_LENGTH = CRYPT_SALT_LENGTH |
const unsigned int | SHA256_AUTH_STRING_LEN |
const char | DELIMITER = '$' |
const unsigned int | STORED_SHA256_DIGEST_LENGTH = 43 |
const size_t | MIN_STORED_DIGEST_ROUNDS = ROUNDS_MIN |
const size_t | DEFAULT_STORED_DIGEST_ROUNDS = ROUNDS_DEFAULT |
const size_t | MAX_STORED_DIGEST_ROUNDS = ROUNDS_MAX |
const size_t | CACHING_SHA2_PASSWORD_MAX_PASSWORD_LENGTH = MAX_PLAINTEXT_LENGTH |
const unsigned int | MAX_PASSWORDS = 2 |
const unsigned int | CACHING_SHA2_DIGEST_LENGTH = SHA256_DIGEST_LENGTH |
static const char * | category = "sha2_auth" |
static PSI_rwlock_key | key_m_cache_lock |
static PSI_rwlock_info | all_rwlocks [] |
typedef struct sha2_password::sha2_cache_entry sha2_password::sha2_cache_entry |
|
strong |
|
static |
const unsigned int sha2_password::CACHING_SHA2_DIGEST_LENGTH = SHA256_DIGEST_LENGTH |
const size_t sha2_password::CACHING_SHA2_PASSWORD_MAX_PASSWORD_LENGTH = MAX_PLAINTEXT_LENGTH |
|
static |
const unsigned int sha2_password::DEFAULT_FAST_DIGEST_ROUNDS = 2 |
const size_t sha2_password::DEFAULT_STORED_DIGEST_ROUNDS = ROUNDS_DEFAULT |
const char sha2_password::DELIMITER = '$' |
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 |
|
static |
const unsigned int sha2_password::MAX_FAST_DIGEST_ROUNDS = 1000 |
const long unsigned int sha2_password::MAX_ITERATIONS = 0xFFF * ITERATION_MULTIPLIER |
const unsigned int sha2_password::MAX_PASSWORDS = 2 |
const size_t sha2_password::MAX_STORED_DIGEST_ROUNDS = ROUNDS_MAX |
const unsigned int sha2_password::MIN_FAST_DIGEST_ROUNDS = 2 |
const size_t sha2_password::MIN_STORED_DIGEST_ROUNDS = ROUNDS_MIN |
const unsigned int sha2_password::SALT_LENGTH = CRYPT_SALT_LENGTH |
const unsigned int sha2_password::SHA256_AUTH_STRING_LEN |
const unsigned int sha2_password::STORED_SHA256_DIGEST_LENGTH = 43 |