File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/boost/mysql/impl/internal/sansio Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ inline void csha2p_hash_password_impl(
64
64
SHA256 (reinterpret_cast <const unsigned char *>(password.data ()), password.size (), password_sha.data ());
65
65
66
66
// SHA(password_sha) concat scramble = buffer
67
- std::array<std::uint8_t , csha2p_hash_size + csha2p_hash_size > buffer;
67
+ std::array<std::uint8_t , csha2p_hash_size + scramble_size > buffer;
68
68
SHA256 (password_sha.data (), password_sha.size (), buffer.data ());
69
- std::memcpy (buffer.data () + csha2p_hash_size, scramble.data (), csha2p_hash_size );
69
+ std::memcpy (buffer.data () + csha2p_hash_size, scramble.data (), scramble. size () );
70
70
71
71
// SHA(SHA(password_sha) concat scramble) = SHA(buffer) = salted_password
72
72
std::array<std::uint8_t , csha2p_hash_size> salted_password;
You can’t perform that action at this time.
0 commit comments