debug: add diagnostic logging to 3DES S/MIME decrypt path
Log legacy key import success/failure, CMS algorithm OIDs (content encryption + key transport), legacy key availability during decrypt attempts, and detailed error messages from both RSA-OAEP and RSAES-PKCS1-v1_5 decrypt paths.
This commit is contained in:
@@ -1546,7 +1546,12 @@ export function EmailViewer({
|
||||
if (detection.type === 'enveloped-data') {
|
||||
// Encrypted message
|
||||
const { keyRecords, unlockedDecryptionKeys, unlockedLegacyDecryptionKeys } = smimeStore;
|
||||
smimeDebug('[S/MIME] decrypt attempt:', { keyRecordCount: keyRecords.length, unlockedKeyCount: unlockedDecryptionKeys.size, keyRecordIds: keyRecords.map(k => k.id) });
|
||||
smimeDebug('[S/MIME] decrypt attempt:', {
|
||||
keyRecordCount: keyRecords.length,
|
||||
unlockedKeyCount: unlockedDecryptionKeys.size,
|
||||
legacyKeyCount: unlockedLegacyDecryptionKeys.size,
|
||||
keyRecordIds: keyRecords.map(k => k.id),
|
||||
});
|
||||
|
||||
// Short-circuit: no keys imported at all
|
||||
if (keyRecords.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user