Custom encryption algorithm for CMSEncoder

Hi,

I wonder if someone succeeded in customising encryption algorithm used by CMSEncoder.

Something similar to CMSEncoderSetSignerAlgorithm but for ContentEncryptionAlgorithm of CMS message. By default macOS uses des-EDE3-CBC and I'd like to use aes256-CBC.

Any feedback is welcome.

Security framework’s CMS support is effectively deprecated [1]. As evidence, consider the fact that it’s not available on iOS. If you need something that it doesn’t do:

  • Write or acquire your own CMS library for this.

  • And please do file an enhancement request for a modern CMS API.

I’d appreciate you posting your bug number here, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] I’m actually surprised it’s not formally deprecated.

Custom encryption algorithm for CMSEncoder
 
 
Q