Take a look at the CommonCrypto function from CommonECCryptor.h
CCECCryptorComputeSharedSecret (CCECCryptorRef privateKey, CCECCryptorRef publicKey, void * out, size_t * outLen)
He creates a shared Diffie-Hellman secret with ECC's private and public key. Most of the information they provide is in the header header files. CCECCryptorComputeSharedSecret header here
source share