feat(vaults): flag and skip wrong content keys from poisoned vaults

Verify a vault-sourced key with an FFmpeg decode after decryption. On failure flag the KID:KEY locally with its source, restore the ciphertext, and retry through the remaining vaults and then the CDM.
This commit is contained in:
imSp4rky
2026-09-12 13:11:44 -06:00
parent 9b49299dd4
commit 7c82282813
16 changed files with 654 additions and 61 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ KEY = "a" * 32
def tables(path: Path) -> list[str]:
conn = sqlite3.connect(path)
try:
return sorted(r[0] for r in conn.execute("SELECT name FROM sqlite_master WHERE type='table'"))
return sorted(
r[0] for r in conn.execute("SELECT name FROM sqlite_master WHERE type='table' AND name != 'bad_keys'")
)
finally:
conn.close()