BIP32 specifies that the seed must be between 128 and 512 bits (16 to 64 bytes). CExtKey::SetSeed currently accepts any length, which could result in weak master keys being generated. Add Assert at the start of SetSeed that terminates if seed is outside valid range. Add unit tests to validate the conditions: 16 bytes (minimum valid), and 64 bytes (maximum valid).
To test:
cmake --build build -j --target test_bitcoin ./build/bin/test_bitcoin --run_test=bip32_tests/extkey_setseed_bip32_length
Fixes #35308