Change --protect to use SHA512 per IEEE 1735.

This commit is contained in:
Wilson Snyder
2026-09-27 13:34:11 -04:00
parent 626333df02
commit f691cd1936
14 changed files with 231 additions and 192 deletions
+1 -1
View File
@@ -1110,7 +1110,7 @@ string V3Options::protectKeyDefaulted() VL_MT_SAFE {
if (m_protectKey.empty()) {
// Create a key with a human-readable symbol-like name.
// This conversion drops ~2 bits of entropy out of 256, shouldn't matter.
VHashSha256 digest{V3Os::trueRandom(32)};
VHashSha512 digest{V3Os::trueRandom(64)};
m_protectKey = "VL-KEY-" + digest.digestSymbol();
}
return m_protectKey;