Open microshine opened 3 years ago
EnvelopedData::decrypt imports private key from pkcs8 buffer only. But what to do if CryptoKey is unextractable? We need to extend that function and make decryptionParameters.recipientPrivateKey: ArrayBuffer | CryptoKey https://github.com/PeculiarVentures/PKI.js/blob/8f84d40ee6181d3020239a85f4d923bb13a4d99e/src/EnvelopedData.js#L1446-L1451
EnvelopedData::decrypt
decryptionParameters.recipientPrivateKey: ArrayBuffer | CryptoKey
EnvelopedData::decrypt
imports private key from pkcs8 buffer only. But what to do if CryptoKey is unextractable? We need to extend that function and makedecryptionParameters.recipientPrivateKey: ArrayBuffer | CryptoKey
https://github.com/PeculiarVentures/PKI.js/blob/8f84d40ee6181d3020239a85f4d923bb13a4d99e/src/EnvelopedData.js#L1446-L1451