fix: support 3DES S/MIME decryption by importing legacy RSAES-PKCS1-v1_5 keys #35

This commit is contained in:
Linus Rath
2026-03-30 16:00:27 +02:00
parent 789d211a71
commit 8937777bcd
5 changed files with 107 additions and 15 deletions
+6
View File
@@ -274,6 +274,12 @@ export function getLinerCryptoEngine(): pkijs.CryptoEngine {
return linerEngine!;
}
/** Get the webcrypto-liner Crypto instance (for importKey with legacy algorithms). */
export function getLinerCrypto(): Crypto {
ensureLiner();
return linerCryptoInstance!;
}
/**
* Run an async operation with the global PKI.js engine set to webcrypto-liner,
* then restore the previous engine afterwards.