crypto calls in Xcode

Hi,


Please let me know how to use crypto calls such as CryptSignMessage that are used in windows in xcode.


Best Regards,

j_nadella.

Replies

Alas, I don't know what

CryptSignMessage
does; you will have to ask your question in terms of the behaviour you want. Is it a low-level signing operation? Or a high-level CMS operation?

ps I moved the thread over to Core OS > Security, which is a great home for questions like this.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

According to the Windows documentation, CryptSignMessage hashes a blob of data, signs the resulting hash, and then returns a blob containing both the hash and the original message in PKCS#7 ASN.1 format.


So I think CMS is probably the right equivalent.


https://developer.apple.com/library/mac/documentation/Security/Reference/CryptoMessageRef/