I am trying to decrypt an SMIME encrypted email as received from an exchange server. The code block that I am using is derived from the example section of this repo -
I am passing the right parameters to rsaDecrypt() method. i.e. the private key and Uint8List representation of mimeContent of the email. I have verified that private key & mimecontent is correct as the same work well for decryption using bouncycastle in java.
But I am unable to decrypt the email using this library in flutter and some garbage values are output. Any clues guys? Or is it like this flutter library is not mature enough to handle SMIME decryption?
I am trying to decrypt an SMIME encrypted email as received from an exchange server. The code block that I am using is derived from the example section of this repo -
I am passing the right parameters to rsaDecrypt() method. i.e. the private key and Uint8List representation of mimeContent of the email. I have verified that private key & mimecontent is correct as the same work well for decryption using bouncycastle in java.
But I am unable to decrypt the email using this library in flutter and some garbage values are output. Any clues guys? Or is it like this flutter library is not mature enough to handle SMIME decryption?