fix(lotw): support more PBES2 variants, classify import errors for users

- Pkcs12Reader: AES-192/AES-128/DES-EDE3-CBC ciphers, PBKDF2
  SHA1/SHA256/SHA384/SHA512 PRFs, keyLength defaulting per cipher,
  error messages reduced to algorithm names
- LoTWKeyMaterial: map BadPadding -> wrong password, IllegalState
  (unsupported algorithm) -> format error with algorithm name,
  IllegalArgumentException -> invalid file
- Import dialog: user-facing messages with algorithm name embedded,
  no more raw OpenSSL/BoringSSL error strings
- Tests: AES-192, DES-EDE3 fixtures, wrong-password BadPadding check
This commit is contained in:
atsunatsu committed 2026-09-27 01:20:07 +08:00
1 parent 474762cbd3
commit 52b733a450
12 files changed
+158 -28

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
[versions]
#noinspection UnusedVersionCatalogEntry
appVersionCode = "523"
appVersionCode = "526"
#noinspection UnusedVersionCatalogEntry
appVersionName = "4.4.7-ba7opf.17"
appVersionName = "4.4.7-ba7opf.17.3"
#noinspection UnusedVersionCatalogEntry
compileSdk = "37"
#noinspection UnusedVersionCatalogEntry