This function performs decryption of a PKCS7 encrypted smime msg
varchar
select smime_decrypt (file_to_string ('test.p7m'),
file_to_string ('test.pem'),
file_to_string ('test.key.pem'),
'secret');
_______________________________________________________________________________
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
this is a test
_______________________________________________________________________________