I am trying to use CommonCrypto (with the help of https://github.com/sergejp/CommonCrypto) for the first time with swift. Here is my code:
UnsafeRawPointer(ivData!.withUnsafeBytes
{(pointer) -> UnsafePointer<Any> in
let ivBuffer = pointer
})
The error is:
Cannot convert value of type 'UnsafePointer' to expected argument type 'UnsafePointer<_>'
What does the <_>
signify? What do I need to do? Thanks.