mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Bnet: Implemented new SRP6 variants, and migrate old sha_pass_hash in battlenet_accounts to separate salt and verifier columns
* passwords can now be case sensitive and up to 128 characters long
This commit is contained in:
@@ -120,7 +120,7 @@ BigNumber& BigNumber::operator%=(BigNumber const& bn)
|
||||
BN_CTX *bnctx;
|
||||
|
||||
bnctx = BN_CTX_new();
|
||||
BN_mod(_bn, _bn, bn._bn, bnctx);
|
||||
BN_nnmod(_bn, _bn, bn._bn, bnctx);
|
||||
BN_CTX_free(bnctx);
|
||||
|
||||
return *this;
|
||||
@@ -166,6 +166,11 @@ int32 BigNumber::GetNumBytes() const
|
||||
return BN_num_bytes(_bn);
|
||||
}
|
||||
|
||||
int32 BigNumber::GetNumBits() const
|
||||
{
|
||||
return BN_num_bits(_bn);
|
||||
}
|
||||
|
||||
uint32 BigNumber::AsDword() const
|
||||
{
|
||||
return (uint32)BN_get_word(_bn);
|
||||
|
||||
Reference in New Issue
Block a user